Core: fix place_locked_item not setting location back-reference (#344)

This commit is contained in:
Fabian Dill 2022-03-25 22:57:00 +01:00 committed by GitHub
parent cb024b00d9
commit 902472be32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1053,6 +1053,7 @@ class Location:
if self.item:
raise Exception(f"Location {self} already filled.")
self.item = item
item.location = self
self.event = item.advancement
self.item.world = self.parent_region.world
self.locked = True