Skip to content

Commit

Permalink
Fixed black hole units losing the nbt of items when stored in control…
Browse files Browse the repository at this point in the history
…lers, closes #1435
  • Loading branch information
Buuz135 committed May 19, 2024
1 parent 3b22bb5 commit f696b55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f696b55

Please sign in to comment.