This commit is contained in:
@ -35,14 +35,12 @@ public abstract class BlockMixin {
|
||||
Block seedBlock = state.getBlock();
|
||||
List<ItemStack> drops = Block.getDroppedStacks(state, (ServerWorld) world, pos, null, player, mainHand);
|
||||
if (removeIfAvailable(drops, seedItem)) {
|
||||
if(player.getGameMode() != GameMode.CREATIVE) {
|
||||
if (player.getGameMode() != GameMode.CREATIVE) {
|
||||
for (ItemStack drop : drops) {
|
||||
Block.dropStack(world, pos, drop);
|
||||
}
|
||||
}
|
||||
world.getServer().executeSync(() -> {
|
||||
world.setBlockState(pos, seedBlock.getDefaultState());
|
||||
});
|
||||
world.getServer().executeSync(() -> world.setBlockState(pos, seedBlock.getDefaultState()));
|
||||
player.incrementStat(Stats.USED.getOrCreateStat(seedItem));
|
||||
cir.cancel();
|
||||
}
|
||||
|
Reference in New Issue
Block a user