Small fix

This commit is contained in:
paulevsGitch 2020-12-13 19:17:52 +03:00
parent 3a238bbf9c
commit 1494c1da2d

View file

@ -45,7 +45,7 @@ public class BoneMealItemMixin {
}
else {
BlockPos offseted = blockPos.offset(context.getSide().getOpposite());
if (!world.getBlockState(offseted).isOf(Blocks.WATER) && world.getBiome(offseted).getCategory() == Category.THEEND) {
if (world.getBlockState(offseted).isOf(Blocks.WATER) && world.getBiome(offseted).getCategory() == Category.THEEND) {
consume = beGrowWaterGrass(world, blockPos);
}
else {
@ -62,7 +62,7 @@ public class BoneMealItemMixin {
}
else {
BlockPos offseted = blockPos.offset(context.getSide().getOpposite());
if (!world.getBlockState(offseted).isOf(Blocks.WATER) && world.getBiome(offseted).getCategory() == Category.THEEND) {
if (world.getBlockState(offseted).isOf(Blocks.WATER) && world.getBiome(offseted).getCategory() == Category.THEEND) {
if (beGrowWaterGrass(world, blockPos)) {
if (!context.getPlayer().isCreative())
context.getStack().decrement(1);