1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 12:01:20 +02:00

Don't place a block, if interacting with a sign.

This commit is contained in:
snowleo
2011-06-30 22:57:39 +02:00
parent ae88f3a1f3
commit 7818753d96

View File

@@ -105,6 +105,13 @@ public class SignBlockListener extends BlockListener
return; return;
} }
final Block against = event.getBlockAgainst();
if (against.getType() == Material.WALL_SIGN
|| against.getType() == Material.SIGN_POST)
{
event.setCancelled(true);
return;
}
final Block block = event.getBlock(); final Block block = event.getBlock();
if (block.getType() == Material.WALL_SIGN if (block.getType() == Material.WALL_SIGN
|| block.getType() == Material.SIGN_POST) || block.getType() == Material.SIGN_POST)