SPIGOT-6350: Fix wrong portal block place order

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2021-05-02 18:58:07 +10:00
parent 642814c419
commit 31ba2167bd

View File

@ -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;
}