summaryrefslogtreecommitdiff
path: root/misc.py
diff options
context:
space:
mode:
authorshillingp <p.shilling.ps@gmail.com>2014-06-23 23:09:55 +0000
committershillingp <p.shilling.ps@gmail.com>2014-06-23 23:09:55 +0000
commit23fb4d6644a5966c591949a7495fa947f616e38a (patch)
treea328681443c595dace0bcca0b42717ca0b891b93 /misc.py
parent53c9118755f2364a6633d73d475b96d953a237d1 (diff)
misc.py edited online with Bitbucket
Diffstat (limited to 'misc.py')
-rw-r--r--misc.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/misc.py b/misc.py
index aab30c4..20ab860 100644
--- a/misc.py
+++ b/misc.py
@@ -95,20 +95,20 @@ def onPlayerInteractEntity(event):
#
# Cycling around the item bar will switch between rows of the inventory
#
-@hook.event("player.PlayerItemHeldEvent", "normal")
-def onHeldEvent(event):
- player = event.getPlayer()
- prev_slot = event.getPreviousSlot()
- new_slot = event.getNewSlot()
- if (prev_slot == 0 and new_slot == 8):
- doCycle(player, 27)
- elif (prev_slot == 8 and new_slot == 0):
- doCycle(player, 9)
-
-def doCycle(player, e):
- inv = player.getInventory()
- for x in range (0, 9):
- inv[x], inv[x+e] = inv[x+e], inv[x]
+#@hook.event("player.PlayerItemHeldEvent", "normal")
+#def onHeldEvent(event):
+# player = event.getPlayer()
+# prev_slot = event.getPreviousSlot()
+# new_slot = event.getNewSlot()
+# if (prev_slot == 0 and new_slot == 8):
+# doCycle(player, 27)
+# elif (prev_slot == 8 and new_slot == 0):
+# doCycle(player, 9)
+#
+#def doCycle(player, e):
+# inv = player.getInventory()
+# for x in range (0, 9):
+# inv[x], inv[x+e] = inv[x+e], inv[x]
#