More handler updates

Minor review in some handlers with regards to multiple MapleCharacter fetching in their contents. Changed to fetch from a variable containing the target character.
This commit is contained in:
ronancpl
2018-01-13 02:08:01 -02:00
parent c4c3f58f41
commit 346d39c03a
13 changed files with 291 additions and 293 deletions
+2 -2
View File
@@ -253,12 +253,12 @@ public class MapleStorageInventory {
if(dst > this.getSlotLimit()) {
return;
}
MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
Item source = this.getItem(src);
if (source == null) {
return;
}
short slotMax = ii.getSlotMax(c, source.getItemId());
short slotMax = MapleItemInformationProvider.getInstance().getSlotMax(c, source.getItemId());
this.move(src, dst, slotMax);
}