Small fix
This commit is contained in:
parent
8b53764e92
commit
3c1f518f22
1 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue