allow phase change to revert temp ice blocks if they were previously water

This commit is contained in:
PhanaticD 2019-01-09 12:16:16 -05:00
parent 3bfb203c8c
commit e7f2d5ce5d

View file

@ -382,6 +382,10 @@ public class PhaseChange extends IceAbility {
}
}
}
if (isIce(tb.getBlock()) && ElementalAbility.isWater(tb.getState().getBlockData().getMaterial())) {
tb.revertBlock();
}
} else if (isWater(b)) {
// Figure out what to do here also.
} else if (isIce(b)) {