Fixed water being misplaced

This commit is contained in:
Sollace 2022-10-08 14:45:06 +02:00
parent 743ecd9cc2
commit 06db6e6247

View file

@ -63,6 +63,7 @@ public class HydrophobicSpell extends AbstractSpell {
}); });
area.getBlockPositions().forEach(pos -> { area.getBlockPositions().forEach(pos -> {
pos = new BlockPos(pos);
BlockState state = world.getBlockState(pos); BlockState state = world.getBlockState(pos);
if (state.getFluidState().isIn(affectedFluid)) { if (state.getFluidState().isIn(affectedFluid)) {