Partial sync with L2jServer HighFive Nov 6th 2015.
This commit is contained in:
@ -320,6 +320,7 @@ public abstract class ItemContainer
|
||||
item.setOwnerId(getOwnerId());
|
||||
item.setItemLocation(getBaseLocation());
|
||||
item.setLastChange(L2ItemInstance.ADDED);
|
||||
item.setEnchantLevel(template.getDefaultEnchantLevel());
|
||||
|
||||
// Add item in inventory
|
||||
addItem(item);
|
||||
|
@ -556,7 +556,7 @@ public class PcInventory extends Inventory
|
||||
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||
|
||||
// Notify to scripts
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemAdd(actor, item), item.getItem());
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemAdd(actor, item), actor);
|
||||
}
|
||||
}
|
||||
|
||||
@ -611,7 +611,7 @@ public class PcInventory extends Inventory
|
||||
actor.sendPacket(new ExAdenaInvenCount(actor));
|
||||
|
||||
// Notify to scripts
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemAdd(actor, item), item.getItem());
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerItemAdd(actor, item), actor);
|
||||
}
|
||||
|
||||
return item;
|
||||
|
Reference in New Issue
Block a user