fix crash when placing the display case
@@ -101,6 +101,8 @@ public class DisplayCaseBlockEntity extends CustomizableBlockEntity implements I
super.saveAdditional(tag);
tag.put("DisplayedStack", getDisplayedStack().save(new CompoundTag()));
tag.putBoolean("ShouldBeOpen", shouldBeOpen);
+
+ if (passcode != null && !passcode.isEmpty())
tag.putString("Passcode", passcode);
}
