Reorder check_descend pathfinding functions

This commit is contained in:
2020-09-15 21:50:13 -06:00
parent 2f9a918431
commit a509f5d1ef
3 changed files with 19 additions and 14 deletions
+3 -1
View File
@@ -10,6 +10,8 @@ import utils
importlib.reload(utils)
import path
importlib.reload(path)
import blocks
importlib.reload(blocks)
def handle_join_game(packet, g):
print('Connected.')
@@ -19,7 +21,7 @@ def handle_join_game(packet, g):
def handle_block_change(packet, g):
l = g.local_state
if packet.block_state_id == 3887:
if packet.block_state_id == blocks.SOUL_TORCH:
try:
l.goal = LPoint3f(x=packet.location[0], y=packet.location[1], z=packet.location[2])
print('new waypoint:', l.goal)