lava hoarder server bugfix

This commit is contained in:
Jörg Henke 2020-11-01 21:46:26 +01:00
parent 0e52a495a0
commit 4dd73c0e78

View File

@ -34,7 +34,7 @@ public class EmptyLavaHoarderBlockEntity extends BlockEntity implements Tickable
private boolean suckLava(World world, BlockPos pos) {
if (world == null) {
return false;
} else if (Blocks.LAVA.getName().equals(world.getBlockState(pos).getBlock().getName())) {
} else if (Blocks.LAVA.equals(world.getBlockState(pos).getBlock())) {
world.setBlockState(pos, Blocks.AIR.getDefaultState());
return true;
}