1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-22 14:23:09 +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 60235d0da4
commit 6c9a57d4b3

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)