master
AnzeBlaBla 2022-11-18 15:47:43 +01:00
parent e32324ea6b
commit 2c84afa38d
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ def push(data, ws):
db.session.rollback()
raise AssertionError("you can't push objects into wall.")
current = objects[y][x]
if current is not None and current.get("type", None) == "book":
db.session.rollback()
raise AssertionError("you can't push objects into books.")
objects[y][x] = last
if current is None:
ok = True