changed item type from item id to 64

This commit is contained in:
GameHerobrine 2024-03-13 06:55:34 +03:00
parent eab6573b84
commit 5208611d38
8 changed files with 24 additions and 19 deletions

View file

@ -8,7 +8,6 @@ class EntityList{
$this->entities[$property->getEntityType()] = $property;
}
public function getEntityFromTypeAndClass($type, $class){
if($class === ENTITY_ITEM) return $this->entities["itemSpecial"];
return isset($this->entities[$type]) && $this->entities[$type]->getEntityClass() === $class ? $this->entities[$type] : 0;
}
private $entities = [];