Only check damage values for non stairs.
This commit is contained in:
parent
86dfae9f80
commit
c3e86c67d8
@ -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;
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user