changed inventory event to player event

This commit is contained in:
shillingp
2014-06-23 22:59:59 +00:00
parent 09f2bc6e5e
commit 794ff39b50

View File

@@ -95,7 +95,7 @@ def onPlayerInteractEntity(event):
#
# Cycling around the item bar will switch between rows of the inventory
#
@hook.event("inventory.PlayerItemHeldEvent", "normal")
@hook.event("player.PlayerItemHeldEvent", "normal")
def onHeldEvent(event):
player = event.getPlayer()
prev_slot = event.getPreviousSlot()