mirror of
https://github.com/elyby/mojang-api.git
synced 2024-12-22 08:09:48 +05:30
Refix for properties factory
This commit is contained in:
parent
0b0ca2c445
commit
1d57f8dafe
@ -12,7 +12,7 @@ class Factory {
|
|||||||
public static function createFromProp(array $prop): Property {
|
public static function createFromProp(array $prop): Property {
|
||||||
$name = $prop['name'];
|
$name = $prop['name'];
|
||||||
if (isset(self::$MAP[$name])) {
|
if (isset(self::$MAP[$name])) {
|
||||||
$className = static::$MAP[$name];
|
$className = self::$MAP[$name];
|
||||||
return new $className($prop);
|
return new $className($prop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user