lava hoarder server bugfix
This commit is contained in:
parent
0e52a495a0
commit
4dd73c0e78
@ -34,7 +34,7 @@ public class EmptyLavaHoarderBlockEntity extends BlockEntity implements Tickable
|
|||||||
private boolean suckLava(World world, BlockPos pos) {
|
private boolean suckLava(World world, BlockPos pos) {
|
||||||
if (world == null) {
|
if (world == null) {
|
||||||
return false;
|
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());
|
world.setBlockState(pos, Blocks.AIR.getDefaultState());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user