mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-06-25 22:04:44 +02:00
THEN WHO WAS BLOCK?!
This commit is contained in:
parent
cd13f1ce8f
commit
45fa6d5c75
|
@ -8,6 +8,7 @@ import com.Acrobot.ChestShop.Permission;
|
||||||
import com.Acrobot.ChestShop.Signs.ChestShopSign;
|
import com.Acrobot.ChestShop.Signs.ChestShopSign;
|
||||||
import com.Acrobot.ChestShop.Utils.uBlock;
|
import com.Acrobot.ChestShop.Utils.uBlock;
|
||||||
import com.Acrobot.ChestShop.Utils.uName;
|
import com.Acrobot.ChestShop.Utils.uName;
|
||||||
|
import com.google.common.collect.Lists;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
|
@ -136,6 +137,10 @@ public class SignBreak implements Listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static List<Sign> getAttachedSigns(Block block) {
|
private static List<Sign> getAttachedSigns(Block block) {
|
||||||
|
if (block == null) {
|
||||||
|
return Lists.newArrayList();
|
||||||
|
}
|
||||||
|
|
||||||
if (isSign(block)) {
|
if (isSign(block)) {
|
||||||
return Arrays.asList((Sign) block.getState());
|
return Arrays.asList((Sign) block.getState());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user