Swap canSnowAt for canPlaceBlockAt, so it actually works...

This commit is contained in:
Electroblob77
2019-01-04 21:58:45 +00:00
parent 5421372754
commit 86d13d3a6e
@@ -149,7 +149,7 @@ public class IceAge extends Spell {
world.setBlockState(pos.down(), Blocks.OBSIDIAN.getDefaultState());
}else if(world.getBlockState(pos.down()) == Blocks.FLOWING_LAVA.getDefaultState()){
world.setBlockState(pos.down(), Blocks.COBBLESTONE.getDefaultState());
}else if(world.canSnowAt(pos, false)){
}else if(Blocks.SNOW_LAYER.canPlaceBlockAt(world, pos)){
world.setBlockState(pos, Blocks.SNOW_LAYER.getDefaultState());
}
}