diff --git a/src/main/java/xyz/nucleoid/plasmid/game/rule/GameRuleType.java b/src/main/java/xyz/nucleoid/plasmid/game/rule/GameRuleType.java index b3da0a7f..a5433935 100644 --- a/src/main/java/xyz/nucleoid/plasmid/game/rule/GameRuleType.java +++ b/src/main/java/xyz/nucleoid/plasmid/game/rule/GameRuleType.java @@ -99,7 +99,7 @@ public final class GameRuleType { public static final GameRuleType UNSTABLE_TNT = GameRuleType.create() .enforces(BlockPlaceEvent.AFTER, result -> (player, world, pos, state) -> { if (result != ActionResult.FAIL && state.getBlock() == Blocks.TNT) { - TntBlock.primeTnt(player.getWorld(), pos); + TntBlock.primeTnt(player.getWorld(), pos, player); player.getWorld().setBlockState(pos, Blocks.AIR.getDefaultState()); } }); diff --git a/src/main/resources/plasmid.accesswidener b/src/main/resources/plasmid.accesswidener index 2f65b698..41564fdc 100644 --- a/src/main/resources/plasmid.accesswidener +++ b/src/main/resources/plasmid.accesswidener @@ -16,3 +16,5 @@ accessible field net/minecraft/world/GameRules$IntRule value I accessible method net/minecraft/entity/Entity unsetRemoved ()V accessible method net/minecraft/server/network/ServerPlayerInteractionManager setGameMode (Lnet/minecraft/world/GameMode;Lnet/minecraft/world/GameMode;)V + +accessible method net/minecraft/block/TntBlock primeTnt (Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/LivingEntity;)V