Rename and clean up MapleInventoryManipulator
This commit is contained in:
@@ -24,7 +24,7 @@ package net.server.channel.handlers;
|
||||
import client.MapleClient;
|
||||
import client.inventory.InventoryType;
|
||||
import client.inventory.Item;
|
||||
import client.inventory.manipulator.MapleInventoryManipulator;
|
||||
import client.inventory.manipulator.InventoryManipulator;
|
||||
import net.AbstractPacketHandler;
|
||||
import net.packet.InPacket;
|
||||
import server.MapleItemInformationProvider;
|
||||
@@ -50,7 +50,7 @@ public final class UseSummonBagHandler extends AbstractPacketHandler {
|
||||
int itemId = p.readInt();
|
||||
Item toUse = c.getPlayer().getInventory(InventoryType.USE).getItem(slot);
|
||||
if (toUse != null && toUse.getQuantity() > 0 && toUse.getItemId() == itemId) {
|
||||
MapleInventoryManipulator.removeFromSlot(c, InventoryType.USE, slot, (short) 1, false);
|
||||
InventoryManipulator.removeFromSlot(c, InventoryType.USE, slot, (short) 1, false);
|
||||
int[][] toSpawn = MapleItemInformationProvider.getInstance().getSummonMobs(itemId);
|
||||
for (int[] toSpawnChild : toSpawn) {
|
||||
if (Randomizer.nextInt(100) < toSpawnChild[1]) {
|
||||
|
||||
Reference in New Issue
Block a user