fix a bunch of bugs

This commit is contained in:
Dylan K. Taylor
2022-06-23 19:34:08 +01:00
parent 5ed75731f2
commit 6964012464
6 changed files with 51 additions and 12 deletions

View File

@ -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;
}
}