mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
Work on Formulaic Assemblicator, many fixes
This commit is contained in:
1 parent
f31e32fcf2
commit
6f4e73d15e
12 files changed
+302
-23
No files matched your search
@@ -202,11 +202,6 @@ public class ItemBlockBasic extends ItemBlock implements IEnergizedItem, ITierIt
|
||||
return true;
|
||||
}
|
||||
|
||||
if(stack.stackTagCompound == null || !stack.stackTagCompound.hasKey("newCount"))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -219,9 +214,12 @@ public class ItemBlockBasic extends ItemBlock implements IEnergizedItem, ITierIt
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
int newCount = stack.stackTagCompound.getInteger("newCount");
|
||||
stack.stackTagCompound.removeTag("newCount");
|
||||
|
||||
ItemStack ret = stack.copy();
|
||||
ret.stackTagCompound.setInteger("itemCount", stack.stackTagCompound.getInteger("newCount"));
|
||||
ret.stackTagCompound.setInteger("itemCount", newCount);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user