Electroblob's Wizardry

Electroblob's Wizardry

18M Downloads

Freeze spell no longer freezes liquids

Ghostrider231 opened this issue ยท 1 comments

commented

Minecraft version: 1.12.2
Wizardry version: 4.2.11
Environment: All

Issue details:

Using the freeze spell on the water no longer turns it into ice.
This also applies to lava as well where it no longer turns it into obsidian/cobblestone.

protected boolean onBlockHit(World world, BlockPos pos, EnumFacing side, Vec3d hit, EntityLivingBase caster, Vec3d origin, int ticksInUse, SpellModifiers modifiers){
if(WizardryUtilities.canDamageBlocks(caster, world)){
if(world.getBlockState(pos).getBlock() == Blocks.WATER && !world.isRemote){
world.setBlockState(pos, Blocks.ICE.getDefaultState());
}else if(world.getBlockState(pos).getBlock() == Blocks.LAVA && !world.isRemote){
world.setBlockState(pos, Blocks.OBSIDIAN.getDefaultState());
}else if(world.getBlockState(pos).getBlock() == Blocks.FLOWING_LAVA && !world.isRemote){
world.setBlockState(pos, Blocks.COBBLESTONE.getDefaultState());
}else if(side == EnumFacing.UP && !world.isRemote && world.isSideSolid(pos, EnumFacing.UP)
&& WizardryUtilities.canBlockBeReplaced(world, pos.up())){
world.setBlockState(pos.up(), Blocks.SNOW_LAYER.getDefaultState());
}
}

Other mods involved: N/A

commented

I have also noticed this, it also applies to ice age. I'm looking into it, thanks for reporting.