Merge pull request #1370 from BigJMoney/WildernessChanges2

Fix for #1364 - Wilderness.py contrib
This commit is contained in:
Griatch 2017-08-08 17:56:55 +02:00 committed by GitHub
commit 29fce64488

View file

@ -513,7 +513,7 @@ class WildernessRoom(DefaultRoom):
moved_obj (Object): The object moved into this one.
source_location (Object): Where `moved_obj` came from.
"""
if moved_obj.destination and moved_obj.destination == moved_obj.location:
if isinstance(moved_obj, WildernessExit):
# Ignore exits looping back to themselves: those are the regular
# n, ne, ... exits.
return