Fix tile entitys
Dieser Commit ist enthalten in:
Ursprung
2cb4565567
Commit
e4a7164dd3
@ -46,12 +46,13 @@ public class Region_15 {
|
|||||||
BlockPosition blockPos = new BlockPosition(X, Y, Z);
|
BlockPosition blockPos = new BlockPosition(X, Y, Z);
|
||||||
BaseBlock fullBlock = clipboard.getFullBlock(BlockVector3.at(X, Y, Z).subtract(v).add(clipboard.getRegion().getMinimumPoint()));
|
BaseBlock fullBlock = clipboard.getFullBlock(BlockVector3.at(X, Y, Z).subtract(v).add(clipboard.getRegion().getMinimumPoint()));
|
||||||
Material replaceTo = BukkitAdapter.adapt(fullBlock.getBlockType());
|
Material replaceTo = BukkitAdapter.adapt(fullBlock.getBlockType());
|
||||||
|
world.removeTileEntity(blockPos);
|
||||||
if(replaceTo == null)
|
if(replaceTo == null)
|
||||||
world.setTypeAndData(blockPos, ((CraftBlockData)Material.AIR.createBlockData()).getState(), 1042);
|
world.setTypeAndData(blockPos, ((CraftBlockData)Material.AIR.createBlockData()).getState(), 1042);
|
||||||
else
|
else
|
||||||
world.setTypeAndData(new BlockPosition(X, Y, Z), ((CraftBlockData)replaceTo.createBlockData()).getState(), 1042);
|
world.setTypeAndData(new BlockPosition(X, Y, Z), ((CraftBlockData)replaceTo.createBlockData()).getState(), 1042);
|
||||||
|
|
||||||
world.getChunkProvider().flagDirty(blockPos);
|
world.getChunkProvider().flagDirty(blockPos);
|
||||||
//world.getChunkProvider().getLightEngine().a(blockPos); //TODO: Fix lightning issues without preventing shutdown
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren