Permalink
Browse files

Wooden buttons should turn on for 30 ticks, not 20.

  • Loading branch information...
me4502 committed Nov 24, 2016
1 parent 0d467eb commit efb36f0988143bc58989154313697745949ea2c6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/sk89q/craftbook/mechanics/HiddenSwitch.java
@@ -174,7 +174,7 @@ public void run() {
checkBlock.setData((byte) (checkBlock.getData() & ~0x8));
}
};
- Bukkit.getScheduler().runTaskLater(CraftBookPlugin.inst(), turnOff, 20L);
+ Bukkit.getScheduler().runTaskLater(CraftBookPlugin.inst(), turnOff, checkBlock.getType() == Material.STONE_BUTTON ? 20L : 30L);
}
}
}

0 comments on commit efb36f0

Please sign in to comment.