From ccd6512401fd51f617c5768017328ee0106a59ca Mon Sep 17 00:00:00 2001 From: v2ray <60914079+LagPixelLOL@users.noreply.github.com> Date: Wed, 28 Dec 2022 21:42:44 +0800 Subject: [PATCH] Fixed drop decay gamerules not working properly. (#1612) Fixed drop decay gamerules work exactly the opposite when using optimized tnt. --- src/main/java/carpet/helpers/OptimizedExplosion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/carpet/helpers/OptimizedExplosion.java b/src/main/java/carpet/helpers/OptimizedExplosion.java index e63eddc4..4e5f8bfa 100644 --- a/src/main/java/carpet/helpers/OptimizedExplosion.java +++ b/src/main/java/carpet/helpers/OptimizedExplosion.java @@ -254,7 +254,7 @@ public class OptimizedExplosion .withOptionalParameter(LootContextParams.BLOCK_ENTITY, blockEntity) .withOptionalParameter(LootContextParams.THIS_ENTITY, eAccess.getSource()); - if (eAccess.getBlockInteraction() == Explosion.BlockInteraction.DESTROY) + if (eAccess.getBlockInteraction() == Explosion.BlockInteraction.DESTROY_WITH_DECAY) lootBuilder.withParameter(LootContextParams.EXPLOSION_RADIUS, eAccess.getRadius()); state.spawnAfterBreak(serverLevel, blockpos, ItemStack.EMPTY, dropFromExplosions);