mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Another fixes?
Former-commit-id: cd4640c948371354ff3bf26606f3f8cc285bae51 [formerly 1c4283865bafdfc039909048e1c2d3bbe81df95d] Former-commit-id: 5ba45c355d0c718e34115103dadd7857540b6ea8
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user