Skip to content

Commit

Permalink
Update BlockStateUpgrader.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps authored Nov 3, 2024
1 parent d01203d commit c0b74b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/data/bedrock/block/upgrade/BlockStateUpgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@ private function applyStateRemapped(BlockStateUpgradeSchema $schema, BlockStateD
if(is_string($remap->newName)){
$newName = $remap->newName;
}else{
//yes, overwriting $oldState here is intentional, although we probably don't actually need it anyway
//it shouldn't make any difference unless the flattened property appears in copiedState for some reason
[$newName, $oldState] = $this->applyPropertyFlattened($remap->newName, $oldName, $oldState);
//discard flatten modifications to state - the remap newState and copiedState will take care of it
[$newName, ] = $this->applyPropertyFlattened($remap->newName, $oldName, $oldState);
}

$newState = $remap->newState;
Expand Down

0 comments on commit c0b74b0

Please sign in to comment.