diff --git a/common/src/main/java/com/unlikepaladin/pfm/blocks/blockentities/BathtubBlockEntity.java b/common/src/main/java/com/unlikepaladin/pfm/blocks/blockentities/BathtubBlockEntity.java index 69d2bad59..225075635 100644 --- a/common/src/main/java/com/unlikepaladin/pfm/blocks/blockentities/BathtubBlockEntity.java +++ b/common/src/main/java/com/unlikepaladin/pfm/blocks/blockentities/BathtubBlockEntity.java @@ -17,15 +17,13 @@ import net.minecraft.world.World; public class BathtubBlockEntity extends BedBlockEntity { - private final BlockEntityType type; public BathtubBlockEntity(BlockPos pos, BlockState state) { super(pos, state, DyeColor.WHITE); - this.type = BlockEntities.BATHTUB_BLOCK_ENTITY; } @Override public BlockEntityType getType() { - return type; + return BlockEntities.BATHTUB_BLOCK_ENTITY; } private int fillTimer = 0; diff --git a/common/src/main/java/com/unlikepaladin/pfm/blocks/blockentities/PFMBedBlockEntity.java b/common/src/main/java/com/unlikepaladin/pfm/blocks/blockentities/PFMBedBlockEntity.java index 42f1ac809..be958cf38 100644 --- a/common/src/main/java/com/unlikepaladin/pfm/blocks/blockentities/PFMBedBlockEntity.java +++ b/common/src/main/java/com/unlikepaladin/pfm/blocks/blockentities/PFMBedBlockEntity.java @@ -10,15 +10,12 @@ import net.minecraft.util.math.BlockPos; public class PFMBedBlockEntity extends BedBlockEntity implements DyeableFurnitureBlockEntity { - private final BlockEntityType type; public PFMBedBlockEntity(BlockPos pos, BlockState state, DyeColor color) { super(pos, state, color); - type = BlockEntities.BED_BLOCK_ENTITY; } public PFMBedBlockEntity(BlockPos pos, BlockState state) { super(pos, state); - type = BlockEntities.BED_BLOCK_ENTITY; } @Override @@ -44,6 +41,6 @@ public PFMBedBlockEntity getEntity() { @Override public BlockEntityType getType() { - return type; + return BlockEntities.BED_BLOCK_ENTITY; } }