mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
changed item type from item id to 64
This commit is contained in:
parent
eab6573b84
commit
5208611d38
8 changed files with 24 additions and 19 deletions
|
|
@ -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 = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue