home · contact · privacy
TCE: Fix AI bug.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 13 Mar 2016 20:29:53 +0000 (21:29 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 13 Mar 2016 20:29:53 +0000 (21:29 +0100)
plugins/server/TheCrawlingEater.py

index e2de2e6f55d1aa8de92e6643c5cfd9e763bce629..b7bbee56d07f3632822dc66e734279454ce67ffe 100644 (file)
@@ -820,7 +820,7 @@ def ai(t):
                         world_db["terrain_fullness"](t["pos"]) <= 3:
                     t["T_COMMAND"] = thing_action_id("drop")
                     return
-                elif world_db["get_dir_to_target"](t, "crack"):
+                elif world_db["get_dir_to_target"](t, "crack")[0]:
                     return
             if need[0] in {"fluid_certain", "fluid_potential"}:
                 if standing_on_fluid(t):