Skip to content
Permalink
Browse files

Fixed XP Storer block checks.

  • Loading branch information...
me4502 committed Oct 19, 2016
1 parent 6480d3b commit 721e01aecbdcf334af02ee12ce2b26d6017c2154
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/sk89q/craftbook/mechanics/XPStorer.java
@@ -148,7 +148,7 @@ public void onSignChange(SignChangeEvent event) {
if (!autonomousMode) return;
if(!EventUtil.passesFilter(event)) return;

if (!event.getLine(1).equalsIgnoreCase("[XP]")) return;
if (!event.getLine(1).equalsIgnoreCase("[XP]") || !block.isSame(SignUtil.getBackBlock(event.getBlock()))) return;

LocalPlayer player = CraftBookPlugin.inst().wrapPlayer(event.getPlayer());

@@ -178,7 +178,7 @@ public void onPing(SelfTriggerPingEvent event) {
if (!autonomousMode) return;
if(!EventUtil.passesFilter(event)) return;

if(!SignUtil.isSign(event.getBlock()) && block.isSame(SignUtil.getBackBlock(event.getBlock()))) return;
if(!SignUtil.isSign(event.getBlock()) || !block.isSame(SignUtil.getBackBlock(event.getBlock()))) return;

ChangedSign sign = BukkitUtil.toChangedSign(event.getBlock());

0 comments on commit 721e01a

Please sign in to comment.
You can’t perform that action at this time.