mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
fix a bunch of bugs
This commit is contained in:
@ -40,10 +40,10 @@ final class ItemIdMetaUpgradeSchema{
|
||||
public function getPriority() : int{ return $this->priority; }
|
||||
|
||||
public function renameId(string $id) : ?string{
|
||||
return $this->renamedIds[$id] ?? null;
|
||||
return $this->renamedIds[mb_strtolower($id, 'US-ASCII')] ?? null;
|
||||
}
|
||||
|
||||
public function remapMeta(string $id, int $meta) : ?string{
|
||||
return $this->remappedMetas[$id][$meta] ?? null;
|
||||
return $this->remappedMetas[mb_strtolower($id, 'US-ASCII')][$meta] ?? null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user