Skip to content

Commit

Permalink
Fix tripwires (#11790)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulu13022002 authored Dec 23, 2024
1 parent 793d361 commit c768099
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
}
+
+ // CraftBukkit start - Call interact even when triggering connected tripwire
+ if (flag != poweredValue && poweredValue && blockState.getValue(TripWireBlock.ATTACHED)) {
+ if (poweredValue != flag && flag && blockState.getValue(TripWireBlock.ATTACHED)) {
+ org.bukkit.World bworld = level.getWorld();
+ org.bukkit.plugin.PluginManager manager = level.getCraftServer().getPluginManager();
+ org.bukkit.block.Block block = bworld.getBlockAt(pos.getX(), pos.getY(), pos.getZ());
Expand Down

0 comments on commit c768099

Please sign in to comment.