mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2024-11-22 01:58:54 +00:00
修复错误 拦截Error...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
0284355c87
commit
f8888f5c9f
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.maxgamer</groupId>
|
||||
<artifactId>QuickShop</artifactId>
|
||||
<version>1.8</version>
|
||||
<version>1.8.1</version>
|
||||
<description>快捷商店重置版本...</description>
|
||||
<build>
|
||||
<finalName>${project.name}</finalName>
|
||||
|
@ -89,7 +89,7 @@ public class ConfigManager {
|
||||
FakeItem.register(plugin);
|
||||
plugin.getLogger().info("虚拟悬浮物功能测试正常...");
|
||||
fakeItem = true;
|
||||
} catch (final Exception e) {
|
||||
} catch (final Error | Exception e) {
|
||||
plugin.getLogger().warning("+=========================================");
|
||||
plugin.getLogger().warning("| 警告: 虚拟物品启动失败 使用原版悬浮物品...");
|
||||
plugin.getLogger().warning("+=========================================");
|
||||
|
@ -702,9 +702,6 @@ public class ContainerShop implements Shop {
|
||||
disItem.remove();
|
||||
return;
|
||||
}
|
||||
if (disItem instanceof FakeItem) {
|
||||
return;
|
||||
}
|
||||
if (disItem.getItem() == null) {
|
||||
disItem.removeDupe();
|
||||
disItem.spawn();
|
||||
|
@ -122,13 +122,7 @@ public class FakeItem implements DisplayItem {
|
||||
|
||||
public FakeItem(final ContainerShop containerShop, final ItemStack item) {
|
||||
this.itemStack = item;
|
||||
this.location = containerShop.getLocation().clone().add(0.5, 1.2, 0.5);
|
||||
this.eid = getFakeEntityId();
|
||||
}
|
||||
|
||||
public FakeItem(final ItemStack itemStack, final Location loc) {
|
||||
this.itemStack = itemStack;
|
||||
this.location = loc;
|
||||
this.location = containerShop.getLocation().clone().add(0.5, 1, 0.5);
|
||||
this.eid = getFakeEntityId();
|
||||
}
|
||||
|
||||
|
@ -304,11 +304,9 @@ public class ShopManager {
|
||||
final BlockFace bf = info.getLocation().getBlock().getFace(info.getSignBlock());
|
||||
bs.setType(Material.WALL_SIGN);
|
||||
final Sign sign = (Sign) bs.getData();
|
||||
if (sign != null && bf != null) {
|
||||
sign.setFacingDirection(bf);
|
||||
bs.update(true);
|
||||
shop.setSignText();
|
||||
}
|
||||
sign.setFacingDirection(bf);
|
||||
bs.update(true);
|
||||
shop.setSignText();
|
||||
}
|
||||
if (shop instanceof ContainerShop) {
|
||||
final ContainerShop cs = (ContainerShop) shop;
|
||||
|
Loading…
Reference in New Issue
Block a user