Fixed freight withdraw issues.

This commit is contained in:
MobiusDev
2018-08-29 18:21:28 +00:00
parent 9d805745b5
commit 3ed319e431
22 changed files with 57 additions and 28 deletions

View File

@@ -56,10 +56,6 @@ public class BypassHandler implements IHandler<IBypassHandler, String>
{
command = command.substring(0, command.indexOf(" "));
}
else if (command.contains("_"))
{
command = command.substring(0, command.indexOf("_"));
}
return _datatable.get(command.toLowerCase());
}

View File

@@ -20,6 +20,7 @@ import java.util.logging.Level;
import com.l2jmobius.Config;
import com.l2jmobius.commons.network.PacketReader;
import com.l2jmobius.gameserver.model.L2World;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.holders.ItemHolder;
@@ -195,6 +196,10 @@ public class RequestPackageSend implements IClientIncomingPacket
playerIU.addRemovedItem(oldItem);
}
}
// Remove item objects from the world.
L2World.getInstance().removeObject(oldItem);
L2World.getInstance().removeObject(newItem);
}
warehouse.deleteMe();