Skip to content

Commit

Permalink
Fix Lectern Controllers storing ItemStacks from nbt (Creators-of-Crea…
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Nov 14, 2024
1 parent 962ad49 commit 4bf7854
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ private void tryToggleActive() {
}

public void setController(ItemStack newController) {
controllerNbt = newController.getTag();
if (newController != null) {
controllerNbt = newController.getTag();
AllSoundEvents.CONTROLLER_PUT.playOnServer(level, worldPosition);
}
}
Expand Down

0 comments on commit 4bf7854

Please sign in to comment.