mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Update BlockStateUpgrader.php
This commit is contained in:
parent
d01203d7c4
commit
c0b74b0341
@ -157,9 +157,8 @@ final class BlockStateUpgrader{
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user