mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 02:07:37 +01:00
SPIGOT-6350: Fix wrong portal block place order
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
parent
642814c419
commit
31ba2167bd
@ -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…
Reference in New Issue
Block a user