添加道具bug
parent
fee1e82d74
commit
38dee193ec
|
@ -8,6 +8,7 @@ import com.ljsd.jieling.handler.map.MapManager;
|
||||||
import com.ljsd.jieling.handler.map.TemporaryItems;
|
import com.ljsd.jieling.handler.map.TemporaryItems;
|
||||||
import com.ljsd.jieling.logic.dao.*;
|
import com.ljsd.jieling.logic.dao.*;
|
||||||
import com.ljsd.jieling.logic.dao.root.User;
|
import com.ljsd.jieling.logic.dao.root.User;
|
||||||
|
import com.ljsd.jieling.logic.item.ItemLogic;
|
||||||
import com.ljsd.jieling.protocols.CommonProto;
|
import com.ljsd.jieling.protocols.CommonProto;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -320,6 +321,8 @@ public class ItemUtil {
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
Item temporaryItem = entry.getValue();
|
Item temporaryItem = entry.getValue();
|
||||||
item.setItemNum(item.getItemNum() + temporaryItem.getItemNum());
|
item.setItemNum(item.getItemNum() + temporaryItem.getItemNum());
|
||||||
|
} else {
|
||||||
|
item = entry.getValue();
|
||||||
}
|
}
|
||||||
itemMap.put(entry.getKey(), item) ;
|
itemMap.put(entry.getKey(), item) ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue