Fixed drop decay gamerules not working properly. (#1612)

Fixed drop decay gamerules work exactly the opposite when using optimized tnt.
This commit is contained in:
v2ray authored and GitHub committed 2022-12-28 14:42:44 +01:00
1 parent 4496241524
commit ccd6512401
1 file changed
+1 -1
@@ -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);