mirror of
https://github.com/italicsjenga/valence.git
synced 2025-01-10 06:41:30 +11:00
Fix examples, but for real this time
This commit is contained in:
parent
4e302ca09f
commit
aeea435a7e
|
@ -265,7 +265,10 @@ impl Config for Game {
|
|||
|
||||
for chunk_x in 0..Integer::div_ceil(&SIZE_X, &16) {
|
||||
for chunk_z in 0..Integer::div_ceil(&SIZE_Z, &16) {
|
||||
let chunk = world.chunks.get_mut([chunk_x, chunk_z]).unwrap();
|
||||
let chunk = world
|
||||
.chunks
|
||||
.get_mut([chunk_x as i32, chunk_z as i32])
|
||||
.unwrap();
|
||||
for x in 0..16 {
|
||||
for z in 0..16 {
|
||||
let cell_x = chunk_x * 16 + x;
|
||||
|
|
|
@ -87,7 +87,10 @@ impl Config for Game {
|
|||
// initialize blocks in the chunks
|
||||
for chunk_x in 0..Integer::div_ceil(&SIZE_X, &16) {
|
||||
for chunk_z in 0..Integer::div_ceil(&SIZE_Z, &16) {
|
||||
let chunk = world.chunks.get_mut([chunk_x, chunk_z]).unwrap();
|
||||
let chunk = world
|
||||
.chunks
|
||||
.get_mut([chunk_x as i32, chunk_z as i32])
|
||||
.unwrap();
|
||||
for x in 0..16 {
|
||||
for z in 0..16 {
|
||||
let cell_x = chunk_x * 16 + x;
|
||||
|
|
Loading…
Reference in a new issue