Create inventory.js

InventoryAPI
This commit is contained in:
F6CF 2015-09-08 16:26:08 +05:00 committed by Romain Beaumont
parent dd4e56ab1d
commit 23126e1c69

View file

@ -0,0 +1,11 @@
module.exports=inject;
function inject(serv, player)
{
heldItemSlot=0;
player._client.on("held_item_slot", function (packet) {
heldItemSlot = packet.slotId;
});
player.heldItemSlot = heldItemSlot;
}