This commit is contained in:
@ -2,7 +2,9 @@ package wtf.hak.survivalfabric.mixin;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.block.CropBlock;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.HoeItem;
|
||||
import net.minecraft.item.Item;
|
||||
@ -39,9 +41,11 @@ public abstract class BlockMixin {
|
||||
for (ItemStack drop : drops) {
|
||||
Block.dropStack(world, pos, drop);
|
||||
}
|
||||
player.incrementStat(Stats.USED.getOrCreateStat(seedItem));
|
||||
mainHand.damage(1, player, EquipmentSlot.MAINHAND);
|
||||
}
|
||||
world.getServer().executeSync(() -> world.setBlockState(pos, seedBlock.getDefaultState()));
|
||||
player.incrementStat(Stats.USED.getOrCreateStat(seedItem));
|
||||
cir.setReturnValue(Blocks.AIR.getDefaultState());
|
||||
cir.cancel();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user