mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 06:50:12 +01:00
Fix tripwires (#11790)
This commit is contained in:
parent
793d36106d
commit
c76809973b
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue