Revert "world: attempt to hardcode maximum light"
This reverts commit bdf580767a
.
This commit is contained in:
parent
bdf580767a
commit
f83197ec39
|
@ -41,10 +41,4 @@ impl Array {
|
||||||
self.data[i] = (old & 0x0F) | ((val & 0xF) << 4);
|
self.data[i] = (old & 0x0F) | ((val & 0xF) << 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_all(&mut self) {
|
|
||||||
for i in 0..self.data.len() {
|
|
||||||
self.data[i] = 0xFF;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1212,10 +1212,6 @@ impl World {
|
||||||
let _bits = LenPrefixed::<VarInt, u64>::read_from(&mut data)?.data;
|
let _bits = LenPrefixed::<VarInt, u64>::read_from(&mut data)?.data;
|
||||||
} else if self.protocol_version >= 451 {
|
} else if self.protocol_version >= 451 {
|
||||||
// Skylight in update skylight packet for 1.14+
|
// Skylight in update skylight packet for 1.14+
|
||||||
// TODO: lighting in same packet in 1.18+
|
|
||||||
// fullbright
|
|
||||||
section.block_light.set_all();
|
|
||||||
section.sky_light.set_all();
|
|
||||||
} else {
|
} else {
|
||||||
data.read_exact(&mut section.block_light.data)?;
|
data.read_exact(&mut section.block_light.data)?;
|
||||||
data.read_exact(&mut section.sky_light.data)?;
|
data.read_exact(&mut section.sky_light.data)?;
|
||||||
|
|
Loading…
Reference in New Issue