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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user