Revert "world: attempt to hardcode maximum light"

This reverts commit bdf580767a.
This commit is contained in:
ice_iix 2022-07-31 18:48:56 -07:00
parent bdf580767a
commit f83197ec39
2 changed files with 0 additions and 10 deletions

View File

@ -41,10 +41,4 @@ impl Array {
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;
}
}
}

View File

@ -1212,10 +1212,6 @@ impl World {
let _bits = LenPrefixed::<VarInt, u64>::read_from(&mut data)?.data;
} else if self.protocol_version >= 451 {
// 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 {
data.read_exact(&mut section.block_light.data)?;
data.read_exact(&mut section.sky_light.data)?;