From f05b2f8560df7d79465f12714edd2f4e17109215 Mon Sep 17 00:00:00 2001 From: troido Date: Sat, 26 Sep 2020 14:44:19 +0200 Subject: don't send null as a direction --- asciifarmclient/commandhandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asciifarmclient/commandhandler.py') 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]) -- cgit