mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
ItemIdMetaUpgrader: consistency of API method naming
This commit is contained in:
parent
50b8d39aba
commit
2feb9ca903
@ -45,11 +45,11 @@ final class ItemIdMetaUpgrader{
|
||||
array $idMetaUpgradeSchemas,
|
||||
){
|
||||
foreach($idMetaUpgradeSchemas as $schema){
|
||||
$this->addIdMetaUpgradeSchema($schema);
|
||||
$this->addSchema($schema);
|
||||
}
|
||||
}
|
||||
|
||||
public function addIdMetaUpgradeSchema(ItemIdMetaUpgradeSchema $schema) : void{
|
||||
public function addSchema(ItemIdMetaUpgradeSchema $schema) : void{
|
||||
if(isset($this->idMetaUpgradeSchemas[$schema->getSchemaId()])){
|
||||
throw new \InvalidArgumentException("Already have a schema with priority " . $schema->getSchemaId());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user