Skip to content

Commit

Permalink
Fixed drop decay gamerules not working properly. (#1612)
Browse files Browse the repository at this point in the history
Fixed drop decay gamerules work exactly the opposite when using optimized tnt.
  • Loading branch information
LagPixelLOL authored Dec 28, 2022
1 parent 4496241 commit ccd6512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/carpet/helpers/OptimizedExplosion.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public static void doExplosionB(Explosion e, boolean spawnParticles)
.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);
Expand Down

0 comments on commit ccd6512

Please sign in to comment.