From 453b0f58ade914057b065358a10af6d087ae062d Mon Sep 17 00:00:00 2001 From: wangyuan Date: Wed, 5 Jun 2019 10:47:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=A3=E9=99=A4=E9=81=93?= =?UTF-8?q?=E5=85=B7=E4=B8=BA0=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- serverlogic/src/main/java/com/ljsd/jieling/util/ItemUtil.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/util/ItemUtil.java b/serverlogic/src/main/java/com/ljsd/jieling/util/ItemUtil.java index a47ec0eee..533e8467d 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/util/ItemUtil.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/util/ItemUtil.java @@ -732,8 +732,12 @@ public class ItemUtil { } Item item = user.getItemManager().getItem(entry.getKey()); if (item == null) { + if(entry.getValue()==0){ + return true; + } return false; } + if (temporaryItem == null && item.getItemNum() < entry.getValue()) { return false; }