mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 08:19:45 +00:00
RegistryTrait: fixing use of method that doesn't belong to the trait
This commit is contained in:
parent
a91e895781
commit
e96b082a54
@ -92,7 +92,7 @@ trait RegistryTrait{
|
||||
throw new \ArgumentCountError("Expected exactly 0 arguments, " . count($arguments) . " passed");
|
||||
}
|
||||
try{
|
||||
return self::fromString($name);
|
||||
return self::_registryFromString($name);
|
||||
}catch(\InvalidArgumentException $e){
|
||||
throw new \Error($e->getMessage(), 0, $e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user