Small fix

This commit is contained in:
paulevsGitch 2020-12-26 22:27:28 +03:00
parent 8b53764e92
commit 3c1f518f22

View file

@ -48,7 +48,10 @@ public class BoneMealItemMixin {
}
}
else {
if (!world.getFluidState(offseted).isEmpty() && endBiome) {
if (!world.getBlockState(offseted).equals(Blocks.WATER)) {
info.cancel();
}
else if (!world.getFluidState(offseted).isEmpty() && endBiome) {
consume = beGrowWaterGrass(world, blockPos);
}
else {
@ -63,6 +66,9 @@ public class BoneMealItemMixin {
info.cancel();
}
}
else if (!world.getBlockState(offseted).equals(Blocks.WATER)) {
info.cancel();
}
else if (!world.getFluidState(offseted).isEmpty() && endBiome) {
info.setReturnValue(ActionResult.FAIL);
info.cancel();