Prevent ice age from placing snow layers at invalid locations, fixes #64

This commit is contained in:
Electroblob77
2019-01-04 20:05:09 +00:00
parent 98b334e6d7
commit f886ebfd75
@@ -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{
}else if(world.canSnowAt(pos, false)){
world.setBlockState(pos, Blocks.SNOW_LAYER.getDefaultState());
}
}