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
|
# 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):
|
def onHeldEvent(event):
|
||||||
player = event.getPlayer()
|
player = event.getPlayer()
|
||||||
prev_slot = event.getPreviousSlot()
|
prev_slot = event.getPreviousSlot()
|
||||||
|
|||||||
Reference in New Issue
Block a user