mirror of
https://github.com/evennia/evennia.git
synced 2026-03-18 05:46:31 +01:00
Revert to master fork changes
This commit is contained in:
parent
99c9d8aca6
commit
c8dcae06ed
1 changed files with 0 additions and 13 deletions
|
|
@ -714,19 +714,6 @@ class ObjectDB(TypedObject):
|
|||
|
||||
self.delete_iter += 1
|
||||
|
||||
# If this is a character, delete it from the player's playable characters list
|
||||
if _GA(self, 'locks').get("puppet"):
|
||||
# Extract Player id
|
||||
try:
|
||||
pid = _GA(self, "locks").get("puppet")
|
||||
pid = pid[pid.find("pid(")+4:]
|
||||
pid = int(pid[:pid.find(")")])
|
||||
except ValueError:
|
||||
return False
|
||||
players = PlayerDB.objects
|
||||
player = players.get_id(pid)
|
||||
player.db._playable_characters.remove(self)
|
||||
|
||||
# See if we need to kick the player off.
|
||||
|
||||
for session in _GA(self, "sessions"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue