mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 22:45:28 +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,
|
array $idMetaUpgradeSchemas,
|
||||||
){
|
){
|
||||||
foreach($idMetaUpgradeSchemas as $schema){
|
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()])){
|
if(isset($this->idMetaUpgradeSchemas[$schema->getSchemaId()])){
|
||||||
throw new \InvalidArgumentException("Already have a schema with priority " . $schema->getSchemaId());
|
throw new \InvalidArgumentException("Already have a schema with priority " . $schema->getSchemaId());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user