Grab fallen saplings, fix bugs
This commit is contained in:
3
bot.py
3
bot.py
@@ -6,6 +6,7 @@ import os
|
||||
import time
|
||||
import importlib
|
||||
from math import floor, ceil
|
||||
from copy import copy
|
||||
|
||||
USERNAME = os.environ['USERNAME']
|
||||
PASSWORD = os.environ['PASSWORD']
|
||||
@@ -61,7 +62,7 @@ def tick(global_state):
|
||||
|
||||
########## object physics ##########
|
||||
|
||||
for eid, obj in g.objects.items():
|
||||
for eid, obj in copy(g.objects).items():
|
||||
start_x = obj.x
|
||||
|
||||
if obj.velocity_x:
|
||||
|
Reference in New Issue
Block a user