changed inventory event to player event
This commit is contained in:
2
misc.py
2
misc.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user