1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 01:25:26 +02:00
Use assigned variable in protect BlockListener
Cleanup imports
This commit is contained in:
ementalo
2012-10-11 15:06:25 +01:00
parent 5e663508ce
commit a00ca1fd52
3 changed files with 8 additions and 4 deletions

View File

@@ -23,8 +23,8 @@ public class EssentialsProtectBlockListener implements Listener
{
final ProtectHolder settings = prot.getSettings();
final Block block = event.getBlock();
if (event.getBlock().getType() == Material.OBSIDIAN
|| event.getBlock().getRelative(BlockFace.DOWN).getType() == Material.OBSIDIAN)
if (block.getType() == Material.OBSIDIAN
|| block.getRelative(BlockFace.DOWN).getType() == Material.OBSIDIAN)
{
event.setCancelled(settings.getData().getPrevent().isPortalCreation());
return;