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