mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-27 00:49:44 +00:00
[trunk] Unlimited: Don't run on canceled place.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1115 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
9c96ad9065
commit
4dbf568cf8
1 changed files with 1 additions and 0 deletions
|
@ -155,6 +155,7 @@ public class EssentialsBlockListener extends BlockListener
|
||||||
@Override
|
@Override
|
||||||
public void onBlockPlace(BlockPlaceEvent event)
|
public void onBlockPlace(BlockPlaceEvent event)
|
||||||
{
|
{
|
||||||
|
if (event.isCancelled()) return;
|
||||||
Block signBlock = event.getBlockAgainst();
|
Block signBlock = event.getBlockAgainst();
|
||||||
if (signBlock.getType() == Material.WALL_SIGN || signBlock.getType() == Material.SIGN_POST)
|
if (signBlock.getType() == Material.WALL_SIGN || signBlock.getType() == Material.SIGN_POST)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue