- 318
- 12
@SubscribeEvent
public void chunkReplaceOnWater(PopulateChunkEvent.Pre event) {
Chunk chunk = event.world.getChunkFromChunkCoords(event.chunkX, event.chunkZ);
ExtendedBlockStorage[] storages = chunk.getBlockStorageArray();
for (int i = 0; i < storages.length; i++) {
if (storages == null) {
storages = new ExtendedBlockStorage(i * 16, true);
}
for (int x = 0; x < 16; ++x) {
for (int y = 0; y < 16; ++y) {
for (int z = 0; z < 16; ++z) {
if (storages.getBlockByExtId(x, y, z) == Blocks.air) {
storages.func_150818_a(x, y, z, Blocks.flowing_water);
}
}
}
}
}
}
Здравствуйте.
Вопрос: Почему не течет вода?
public void chunkReplaceOnWater(PopulateChunkEvent.Pre event) {
Chunk chunk = event.world.getChunkFromChunkCoords(event.chunkX, event.chunkZ);
ExtendedBlockStorage[] storages = chunk.getBlockStorageArray();
for (int i = 0; i < storages.length; i++) {
if (storages == null) {
storages = new ExtendedBlockStorage(i * 16, true);
}
for (int x = 0; x < 16; ++x) {
for (int y = 0; y < 16; ++y) {
for (int z = 0; z < 16; ++z) {
if (storages.getBlockByExtId(x, y, z) == Blocks.air) {
storages.func_150818_a(x, y, z, Blocks.flowing_water);
}
}
}
}
}
}
Здравствуйте.
Вопрос: Почему не течет вода?