Added fence doors to door logging

This commit is contained in:
Robin Kupper
2011-10-04 16:20:00 +02:00
parent 101a1ce8ca
commit d2fa5f684d
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ public class BlockChange implements LookupCacheElement
msg.append("put in " + ca.itemAmount + "x " + materialName(ca.itemType, ca.itemData));
} else if (type == 23 || type == 54 || type == 61 || type == 62)
msg.append("opened " + materialName(type));
else if (type == 64 || type == 71 || type == 96)
else if (type == 64 || type == 71 || type == 96 || type == 107)
msg.append((data == 0 ? "opened" : "closed") + " " + materialName(type));
else if (type == 69)
msg.append("swiched " + materialName(type));

View File

@@ -43,7 +43,7 @@ class LBPlayerListener extends PlayerListener
final int type = event.getClickedBlock().getTypeId();
if (wcfg.logButtonsAndLevers && (type == 69 || type == 77))
consumer.queueBlock(event.getPlayer().getName(), event.getClickedBlock().getLocation(), type, type, (byte)0);
else if (wcfg.logDoors && (type == 64 || type == 96))
else if (wcfg.logDoors && (type == 64 || type == 96 || type == 107 && event.getAction() == Action.RIGHT_CLICK_BLOCK))
consumer.queueBlock(event.getPlayer().getName(), event.getClickedBlock().getLocation(), type, type, (byte)((event.getClickedBlock().getData() & 4) / 4));
else if (wcfg.logCakes && type == 92 && event.getPlayer().getHealth() < 20)
consumer.queueBlock(event.getPlayer().getName(), event.getClickedBlock().getLocation(), type, type, (byte)0);