painting wont be placed if there is a painting already

This commit is contained in:
GameHerobrine 2024-11-28 04:41:55 +03:00
parent d1121e862e
commit 0963f09ea1
5 changed files with 35 additions and 16 deletions

View file

@ -178,6 +178,7 @@ class Entity extends Position
break;
case ENTITY_OBJECT:
if($this->type == OBJECT_PAINTING) break;
$this->x = $this->data["TileX"] ?? $this->x;
$this->y = $this->data["TileY"] ?? $this->y;
$this->z = $this->data["TileZ"] ?? $this->z;