Fixed wall sign protection

This commit is contained in:
DarkLiKally 2011-02-26 16:54:18 +01:00
parent 987a20b33c
commit dc637d0f2b

View File

@ -129,6 +129,9 @@ public void onPlayerItem(PlayerItemEvent event) {
if (wcfg.useRegions && !event.isBlock() && block != null) {
Vector pt = toVector(block.getRelative(event.getBlockFace()));
if (block.getType() == Material.WALL_SIGN) {
pt = pt.subtract(0, 1, 0);
}
if (!cfg.canBuild(player, pt)) {
player.sendMessage(ChatColor.DARK_RED