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:
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);
|
||||
|
||||
Reference in new issue
Block a user