Grab fallen saplings, fix bugs

This commit is contained in:
2020-10-15 01:37:47 -06:00
parent f328f3443a
commit 6c4aaf8d7d
5 changed files with 104 additions and 56 deletions

3
bot.py
View File

@@ -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: