diff options
| author | troido <troido@protonmail.com> | 2020-09-26 14:44:19 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-09-26 14:44:19 +0200 |
| commit | f05b2f8560df7d79465f12714edd2f4e17109215 (patch) | |
| tree | 98360206817378a8c16167c6cbc77502eda58a66 /asciifarmclient/commandhandler.py | |
| parent | 7e265f496d6053bacc2b3ad89140aecc4d454079 (diff) | |
don't send null as a direction
Diffstat (limited to 'asciifarmclient/commandhandler.py')
| -rw-r--r-- | asciifarmclient/commandhandler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asciifarmclient/commandhandler.py b/asciifarmclient/commandhandler.py index 7cb3813..f4c1de1 100644 --- a/asciifarmclient/commandhandler.py +++ b/asciifarmclient/commandhandler.py @@ -77,7 +77,7 @@ class CommandHandler: self.input(["say", text]) def pick(self, option): - self.input(["interact", [None, "north", "south", "east", "west"], option]) + self.input(["interact", ["none", "north", "south", "east", "west"], option]) def chat(self, text): self.client.sendChat( text) @@ -153,5 +153,5 @@ class CommandHandler: self.input(json.loads(text)) def interact(self, arg): - self.input(["interact", [None, "north", "south", "east", "west"], arg]) + self.input(["interact", ["none", "north", "south", "east", "west"], arg]) |
