Remove unnecessary changes

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-11-12 19:11:50 +01:00
parent b3f1bfdf59
commit 7f8c90ba2d

View File

@ -174,13 +174,11 @@ public final class Registry {
this.air = getBoolean("air", false); this.air = getBoolean("air", false);
this.solid = getBoolean("solid"); this.solid = getBoolean("solid");
this.liquid = getBoolean("liquid", false); this.liquid = getBoolean("liquid", false);
// Block entity
{ {
final Map<String, Object> blockEntityProperties = element("blockEntity"); Map<String, Object> blockEntity = element("blockEntity");
if (blockEntityProperties != null) { if (blockEntity != null) {
this.blockEntity = (String) blockEntityProperties.get("namespace"); this.blockEntity = (String) blockEntity.get("namespace");
this.blockEntityId = ((Number) blockEntityProperties.get("id")).intValue(); this.blockEntityId = ((Number) blockEntity.get("id")).intValue();
} else { } else {
this.blockEntity = null; this.blockEntity = null;
this.blockEntityId = 0; this.blockEntityId = 0;