Fix stacksize overflow when overlaying recipe (#167)

This commit is contained in:
miozune authored and GitHub committed 2023-10-25 23:01:56 +09:00
1 parent bd0e7fabca
commit 1efa92adad
4 files changed
+18 -10

No files matched your search

@@ -180,8 +180,7 @@ public class TileFluidAutoFiller extends AENetworkInvTile
protected NBTBase createItemTag(final ItemStack i) {
final NBTTagCompound c = new NBTTagCompound();
if (i != null) {
i.writeToNBT(c);
c.setInteger("Count", i.stackSize);
Util.writeItemStackToNBT(i, c);
}
return c;
}