1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-11-22 01:58:54 +00:00

remove err tip...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092 2015-10-05 04:33:38 +08:00
parent ebf4d99e72
commit e87cfc9a6b
2 changed files with 3 additions and 6 deletions

View File

@ -662,8 +662,9 @@ public class ContainerShop implements Shop {
try { try {
plugin.getDB().execute(q, this.getOwner(), Util.serialize(this.getItem()), unlimited, shopType.toID(), this.getPrice(), x, y, z, world); plugin.getDB().execute(q, this.getOwner(), Util.serialize(this.getItem()), unlimited, shopType.toID(), this.getPrice(), x, y, z, world);
} catch (final Exception e) { } catch (final Exception e) {
plugin.getLogger().warning("无法保存商店到数据库!!!");
plugin.getLogger().warning("错误信息: " + e.getMessage());
e.printStackTrace(); e.printStackTrace();
System.out.println("Could not update shop in database! Changes will revert after a reboot!");
} }
} }

View File

@ -113,15 +113,11 @@ public class DisplayItem {
try { try {
this.item = shop.getLocation().getWorld().dropItem(dispLoc, this.iStack); this.item = shop.getLocation().getWorld().dropItem(dispLoc, this.iStack);
this.item.setVelocity(new Vector(0, 0.1, 0)); this.item.setVelocity(new Vector(0, 0.1, 0));
NMS.safeGuard(this.item);
} catch (final Exception e) { } catch (final Exception e) {
} }
if (QuickShop.debug) { if (QuickShop.debug) {
System.out.println("Spawned item. Safeguarding."); System.out.println("Spawned item. Safeguarding.");
} }
try {
NMS.safeGuard(this.item);
} catch (final Exception e) {
System.out.println("QuickShop version mismatch! This version of QuickShop is incompatible with this version of bukkit! Try update?");
}
} }
} }