Only check damage values for non stairs.

This commit is contained in:
cnaude 2013-07-08 22:06:40 -07:00
parent 86dfae9f80
commit c3e86c67d8
2 changed files with 3 additions and 3 deletions

View File

@ -162,8 +162,8 @@ public class EventListener implements Listener {
} }
for (ChairBlock cb : plugin.allowedBlocks) { for (ChairBlock cb : plugin.allowedBlocks) {
plugin.logInfo("Comparing: (" + cb.getMat().name() + " ? " + block.getType().name() + ") (" //plugin.logInfo("Comparing: (" + cb.getMat().name() + " ? " + block.getType().name() + ") ("
+ cb.getDamage() + " ? " + block.getData() + ")"); // + cb.getDamage() + " ? " + block.getData() + ")");
if (cb.getMat().toString().contains("STAIRS")) { if (cb.getMat().toString().contains("STAIRS")) {
if (cb.getMat().equals(block.getType())) { if (cb.getMat().equals(block.getType())) {
blockOkay = true; blockOkay = true;

View File

@ -1,5 +1,5 @@
name: Chairs name: Chairs
version: 2.1.4b version: 2.1.4c
description: Let players sit on blocks. description: Let players sit on blocks.
website: http://dev.bukkit.org/bukkit-plugins/chairsreloaded/ website: http://dev.bukkit.org/bukkit-plugins/chairsreloaded/
authors: authors: