Fix large stack counts in bookmark pulls (#71)

This commit is contained in:
Kogepan229 authored and GitHub committed 2026-06-19 11:58:36 +02:00
1 parent 2ad0303c55
commit 7d9e40d0ef
1 file changed
+2 -1
@@ -11,6 +11,7 @@ import net.minecraft.nbt.NBTTagCompound;
import com.github.vfyjxf.nee.network.NEENetworkHandler;
import com.github.vfyjxf.nee.network.packet.PacketNEIBookmark;
import com.github.vfyjxf.nee.utils.GuiUtils;
import com.github.vfyjxf.nee.utils.ItemUtils;
import codechicken.nei.api.IBookmarkContainerHandler;
@@ -38,6 +39,6 @@ public class NEETerminalBookmarkContainerHandler implements IBookmarkContainerHa
}
private NBTTagCompound packBookmarkItem(ItemStack bookmarkItem) {
return bookmarkItem.writeToNBT(new NBTTagCompound());
return ItemUtils.writeItemStackToNBT(bookmarkItem, bookmarkItem.stackSize);
}
}