mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 19:07:40 +01:00
Fix tripwires (#11790)
This commit is contained in:
parent
793d36106d
commit
c76809973b
@ -71,7 +71,7 @@
|
|||||||
}
|
}
|
||||||
+
|
+
|
||||||
+ // CraftBukkit start - Call interact even when triggering connected tripwire
|
+ // 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.World bworld = level.getWorld();
|
||||||
+ org.bukkit.plugin.PluginManager manager = level.getCraftServer().getPluginManager();
|
+ org.bukkit.plugin.PluginManager manager = level.getCraftServer().getPluginManager();
|
||||||
+ org.bukkit.block.Block block = bworld.getBlockAt(pos.getX(), pos.getY(), pos.getZ());
|
+ org.bukkit.block.Block block = bworld.getBlockAt(pos.getX(), pos.getY(), pos.getZ());
|
||||||
|
Loading…
Reference in New Issue
Block a user