Skip to content

Commit 9575c85

Browse files
committed
Selected proper datatype for some metadata.
Fixup for the previous 2 commits.
1 parent d301d21 commit 9575c85

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/com/laytonsmith/core/ObjectGenerator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ public Construct itemMeta(MCItemStack is, Target t) {
402402
ma.set("spawntype", mccs.getSpawnedType().name());
403403
} else if(bs instanceof MCBrewingStand) {
404404
MCBrewingStand brewStand = (MCBrewingStand) bs;
405-
ma.set("brewtime", new CString(Integer.toString(brewStand.getBrewingTime()), t), t);
406-
ma.set("fuel", new CString(Integer.toString(brewStand.getFuelLevel()), t), t);
405+
ma.set("brewtime", new CInt(brewStand.getBrewingTime(), t), t);
406+
ma.set("fuel", new CInt(brewStand.getFuelLevel(), t), t);
407407
MCBrewerInventory inv = brewStand.getInventory();
408408
CArray invData = CArray.GetAssociativeArray(t);
409409
if(inv.getFuel() != null) {
@@ -415,8 +415,8 @@ public Construct itemMeta(MCItemStack is, Target t) {
415415
ma.set("inventory", invData, t);
416416
} else if(bs instanceof MCFurnace) {
417417
MCFurnace furnace = (MCFurnace) bs;
418-
ma.set("burntime", new CString(Short.toString(furnace.getBurnTime()), t), t);
419-
ma.set("cooktime", new CString(Short.toString(furnace.getCookTime()), t), t);
418+
ma.set("burntime", new CInt(furnace.getBurnTime(), t), t);
419+
ma.set("cooktime", new CInt(furnace.getCookTime(), t), t);
420420
MCFurnaceInventory inv = furnace.getInventory();
421421
CArray invData = CArray.GetAssociativeArray(t);
422422
if(inv.getResult() != null) {

0 commit comments

Comments
 (0)