mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
SPIGOT-6350: Fix wrong portal block place order
This commit is contained in:
parent
6f55b5b888
commit
95544a2da8
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue