Fixed BlockMixin for 1.21.4
All checks were successful
build / build (push) Successful in 1m16s

This commit is contained in:
2025-05-20 12:15:16 +02:00
parent d2fd497f26
commit dd50ff0376

View File

@ -37,7 +37,7 @@ 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.isCreative()) {
for (ItemStack drop : drops) {
Block.dropStack(world, pos, drop);
}