SPIGOT-6350: Fix wrong portal block place order
This commit is contained in:
parent
6f55b5b888
commit
95544a2da8
@ -40,7 +40,9 @@ public class BlockStateListPopulator extends DummyGeneratorAccess {
|
||||
public boolean setTypeAndData(BlockPosition position, IBlockData data, int flag) {
|
||||
CraftBlockState state = CraftBlockState.getBlockState(world, position, flag);
|
||||
state.setData(data);
|
||||
list.put(position, state);
|
||||
// remove first to keep insertion order
|
||||
list.remove(position);
|
||||
list.put(position.immutableCopy(), state);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user