Reorder check_descend pathfinding functions
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user