Update BlockStateUpgrader.php

This commit is contained in:
Dylan T. 2024-11-03 14:05:46 +00:00 committed by GitHub
parent d01203d7c4
commit c0b74b0341
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,9 +157,8 @@ final class BlockStateUpgrader{
if(is_string($remap->newName)){ if(is_string($remap->newName)){
$newName = $remap->newName; $newName = $remap->newName;
}else{ }else{
//yes, overwriting $oldState here is intentional, although we probably don't actually need it anyway //discard flatten modifications to state - the remap newState and copiedState will take care of it
//it shouldn't make any difference unless the flattened property appears in copiedState for some reason [$newName, ] = $this->applyPropertyFlattened($remap->newName, $oldName, $oldState);
[$newName, $oldState] = $this->applyPropertyFlattened($remap->newName, $oldName, $oldState);
} }
$newState = $remap->newState; $newState = $remap->newState;