mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
the function stringToLegacy gives already null useless to put a default null (#4338)
This commit is contained in:
parent
22c3736d63
commit
1bbf739385
@ -87,7 +87,7 @@ final class RuntimeBlockMapping{
|
||||
$idToStatesMap[$state->getString("name")][] = $k;
|
||||
}
|
||||
foreach($legacyStateMap as $pair){
|
||||
$id = $legacyIdMap->stringToLegacy($pair->getId()) ?? null;
|
||||
$id = $legacyIdMap->stringToLegacy($pair->getId());
|
||||
if($id === null){
|
||||
throw new \RuntimeException("No legacy ID matches " . $pair->getId());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user