Skip to content

Commit

Permalink
the function stringToLegacy gives already null useless to put a defau…
Browse files Browse the repository at this point in the history
…lt null (#4338)
  • Loading branch information
SenseiTarzan authored Jul 31, 2021
1 parent 22c3736 commit 1bbf739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/mcpe/convert/RuntimeBlockMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private function setupLegacyMappings() : void{
$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());
}
Expand Down

0 comments on commit 1bbf739

Please sign in to comment.