mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
clean up
This commit is contained in:
1 parent
071d3f3be6
commit
3ffd3f3358
2 files changed
+2
-4
No files matched your search
@@ -702,8 +702,7 @@ public class ContainerShop implements Shop {
|
||||
try {
|
||||
plugin.getDatabaseHelper().updateShop(ShopModerator.serialize(this.moderator.clone()), this.getItem(), unlimited, shopType.toID(), this.getPrice(), x, y, z, world, this.saveExtraToJson());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
plugin.getLogger().log(Level.WARNING, "Could not update a shop in the database! Changes will revert after a reboot!");
|
||||
plugin.getLogger().log(Level.WARNING, "Could not update a shop in the database! Changes will revert after a reboot!", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1173,7 +1172,7 @@ public class ContainerShop implements Shop {
|
||||
if (this.item.hasItemMeta() && this.item.getItemMeta().hasEnchants()) {
|
||||
return Objects.requireNonNull(this.item.getItemMeta()).getEnchants();
|
||||
}
|
||||
return new HashMap<>();
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -245,7 +245,6 @@ public class RealDisplayItem extends DisplayItem {
|
||||
|
||||
@Override
|
||||
public boolean isSpawned() {
|
||||
Util.ensureThread(false);
|
||||
if (this.item == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user