Another fixes?

Former-commit-id: cd4640c948371354ff3bf26606f3f8cc285bae51 [formerly 1c4283865bafdfc039909048e1c2d3bbe81df95d]
Former-commit-id: 5ba45c355d0c718e34115103dadd7857540b6ea8
This commit is contained in:
Ghost_chu committed 2019-11-23 13:36:37 +08:00
1 parent 337867163b
commit f3c2fcf049
2 files changed
+5 -9

No files matched your search

@@ -102,16 +102,15 @@ public class Util {
*/
public static boolean canBeShop(@NotNull Block b) {
BlockState bs = b.getState();
if (b.getType() == Material.ENDER_CHEST) {
if (plugin.getOpenInvPlugin() == null) {
return false;
}
}else{
if (b.getType() != Material.ENDER_CHEST) {
if (!(bs instanceof InventoryHolder)) {
return false;
}
}else{
if (plugin.getOpenInvPlugin() == null) {
return false;
}
}
if (!isShoppables(b.getType())) {
return false;
}