don't use None as default connection

This commit is contained in:
troido 2020-09-26 00:32:28 +02:00
parent 03b42d69a4
commit 5f78982da9
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class InputController(Component):
directions = [directions]
objects = []
for direction in directions:
if direction is None:
if direction == "" or direction == "none":
objects += self.owner.getNearObjects()
elif isinstance(direction, str) and direction in nearPlaces:
objects += nearPlaces[direction].getObjs()