mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Fix nullpointer
Former-commit-id: dd5ff2974561d0b1d99deb84bc973463d1b239e7 [formerly 85a4370c88650ad4bb54d46206a2580c70285401] Former-commit-id: 056883fa7860060a19f4f82bba5fe3c6735f4bcf
This commit is contained in:
1 parent
5155c40f65
commit
54fd6de8a9
1 file changed
+5
-1
@@ -589,8 +589,12 @@ public class ShopManager {
|
||||
// allow-shop-without-space-for-sign check
|
||||
if (plugin.getConfig().getBoolean("shop.auto-sign")
|
||||
&& !plugin.getConfig().getBoolean("allow-shop-without-space-for-sign")) {
|
||||
if(info.getSignBlock() == null) {
|
||||
p.sendMessage(MsgUtil.getMessage("failed-to-put-sign"));
|
||||
return;
|
||||
}
|
||||
Material signType = info.getSignBlock().getType();
|
||||
if (info.getSignBlock() == null && signType != Material.AIR && signType != Material.CAVE_AIR
|
||||
if (signType != Material.AIR && signType != Material.CAVE_AIR
|
||||
&& signType != Material.VOID_AIR && signType != Material.WATER) {
|
||||
p.sendMessage(MsgUtil.getMessage("failed-to-put-sign"));
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user