mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Finalizing the breakage!
This commit is contained in:
1 parent
7d1849567a
commit
499d44763d
4 files changed
+4
-4
No files matched your search
@@ -170,7 +170,7 @@ public class BlockButton extends Block {
|
||||
//Allow the lever to change the current
|
||||
int old = (j1 != 8) ? 1 : 0;
|
||||
int current = (j1 == 8) ? 1 : 0;
|
||||
BlockRedstoneEvent eventRedstone = new BlockRedstoneEvent(block, BlockFace.SELF, old, current);
|
||||
BlockRedstoneEvent eventRedstone = new BlockRedstoneEvent(block, old, current);
|
||||
server.getPluginManager().callEvent(eventRedstone);
|
||||
if ((eventRedstone.getNewCurrent() > 0) == (j1 == 8)) {
|
||||
world.c(i, j, k, i1 + j1);
|
||||
|
||||
Reference in new issue
Block a user