mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Fixed invalid metadata and updated weak references on PluginManager
This commit is contained in:
@ -25,8 +25,10 @@ use pocketmine\level\Level;
|
||||
|
||||
class LevelMetadataStore extends MetadataStore{
|
||||
|
||||
/** @noinspection PhpHierarchyChecksInspection */
|
||||
public function disambiguate(Level $level, $metadataKey){
|
||||
public function disambiguate(Metadatable $level, $metadataKey){
|
||||
if(!($level instanceof Level)){
|
||||
throw new \InvalidArgumentException("Argument must be a Level instance");
|
||||
}
|
||||
return strtolower($level->getName()) . ":" . $metadataKey;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user