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

修复箱子的标题为Null是产生的报错...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2016-02-14 14:44:20 +08:00
parent 9669c6cc8e
commit 82f6c99c01
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.maxgamer</groupId> <groupId>org.maxgamer</groupId>
<artifactId>QuickShop</artifactId> <artifactId>QuickShop</artifactId>
<version>1.8.1</version> <version>1.8.2</version>
<description>快捷商店重置版本...</description> <description>快捷商店重置版本...</description>
<build> <build>
<finalName>${project.name}</finalName> <finalName>${project.name}</finalName>
@ -56,7 +56,7 @@
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url> <jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
<env.GIT_COMMIT>DEBUG</env.GIT_COMMIT> <env.GIT_COMMIT>DEBUG</env.GIT_COMMIT>
<update.description>&amp;a全新版本 &amp;c虚拟悬浮物(橙子提供 对 就是那个汉化COI的逗比) &amp;e7老板修复逗比BUG...</update.description> <update.description>&amp;a全新版本 &amp;c虚拟悬浮物(橙子提供 对 就是那个汉化COI的逗比) &amp;e7老板修复逗比BUG...</update.description>
<update.changes>&amp;c修复PlayerInteractEvent错误参数导致GuiShopManager的报错...</update.changes> <update.changes>&amp;c修复PlayerInteractEvent错误参数导致GuiShopManager的报错...;&amp;c修复箱子的标题为Null是产生的报错...</update.changes>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<repositories> <repositories>

View File

@ -84,7 +84,7 @@ public class ProtectListener implements Listener {
final Inventory inv = e.getInventory(); final Inventory inv = e.getInventory();
final int solt = e.getSlot(); final int solt = e.getSlot();
if (inv.getType() != InventoryType.PLAYER && inv.getType() != InventoryType.HOPPER) { if (inv.getType() != InventoryType.PLAYER && inv.getType() != InventoryType.HOPPER) {
if (inv.getTitle().equalsIgnoreCase(plugin.getConfigManager().getGuiTitle())) { if (inv.getTitle() != null && inv.getTitle().equalsIgnoreCase(plugin.getConfigManager().getGuiTitle())) {
e.setCancelled(true); e.setCancelled(true);
p.closeInventory(); p.closeInventory();
} }