From b0e452ed1d34bf419abb1e33fcdf7b21bb148a0f Mon Sep 17 00:00:00 2001 From: Andrzej Pomirski Date: Sat, 12 Apr 2014 13:28:13 +0200 Subject: [PATCH] Refactoring --- .../Acrobot/ChestShop/Listeners/Block/Break/SignBreak.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/Block/Break/SignBreak.java b/src/main/java/com/Acrobot/ChestShop/Listeners/Block/Break/SignBreak.java index 63c4f46..c2ef842 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/Block/Break/SignBreak.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/Block/Break/SignBreak.java @@ -33,7 +33,7 @@ import java.util.Arrays; import java.util.LinkedList; import java.util.List; -import static com.Acrobot.Breeze.Utils.BlockUtil.getAttachedFace; +import static com.Acrobot.Breeze.Utils.BlockUtil.getAttachedBlock; import static com.Acrobot.Breeze.Utils.BlockUtil.isSign; import static com.Acrobot.ChestShop.Permission.ADMIN; import static com.Acrobot.ChestShop.Permission.MOD; @@ -56,7 +56,7 @@ public class SignBreak implements Listener { } Sign sign = (Sign) block.getState(); - Block attachedBlock = BlockUtil.getAttachedFace(sign); + Block attachedBlock = BlockUtil.getAttachedBlock(sign); if (attachedBlock.getType() == Material.AIR && ChestShopSign.isValid(sign)) { List values = block.getMetadata(METADATA_NAME); @@ -183,7 +183,7 @@ public class SignBreak implements Listener { Sign sign = (Sign) relative.getState(); - if (getAttachedFace(sign).equals(block)) { + if (getAttachedBlock(sign).equals(block)) { attachedSigns.add(sign); } }