From f696b55b9555e5c718f8a1865e5ba17e63bc93fe Mon Sep 17 00:00:00 2001 From: Buuz135 Date: Sun, 19 May 2024 12:11:45 +0200 Subject: [PATCH] Fixed black hole units losing the nbt of items when stored in controllers, closes #1435 --- CHANGELOG.md | 6 ++++++ .../industrial/capability/BLHBlockItemHandlerItemStack.java | 1 + 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4395fe8d..6923aabe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# Version 3.5.17 + +* Fix bug where Black Hole Units could transmute items (by notcake) +* Fix FireworkGeneratorCategory not showing up in JEI (by Christofmeg) +* Fixed black hole units losing the nbt of items when stored in controllers, closes #1435 + # Version 3.5.16 * Fixed Shiny versions of tools not being added to Infinity Tools diff --git a/src/main/java/com/buuz135/industrial/capability/BLHBlockItemHandlerItemStack.java b/src/main/java/com/buuz135/industrial/capability/BLHBlockItemHandlerItemStack.java index 8567d100..31342909 100644 --- a/src/main/java/com/buuz135/industrial/capability/BLHBlockItemHandlerItemStack.java +++ b/src/main/java/com/buuz135/industrial/capability/BLHBlockItemHandlerItemStack.java @@ -152,6 +152,7 @@ private void setStack(ItemStack stack) { stack = ItemHandlerHelper.copyStackWithSize(stack, 1); } this.stack.getTag().getCompound("BlockEntityTag").put("blStack", stack.serializeNBT()); + this.stack.getTag().getCompound("BlockEntityTag").putBoolean("hasNBT", stack.hasTag()); } private CompoundTag getTag() {