diff --git a/protocol/src/types/nibble.rs b/protocol/src/types/nibble.rs index 37ccf8c..c1d6e79 100644 --- a/protocol/src/types/nibble.rs +++ b/protocol/src/types/nibble.rs @@ -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; - } - } } diff --git a/src/world/mod.rs b/src/world/mod.rs index f97ab29..ea891d8 100644 --- a/src/world/mod.rs +++ b/src/world/mod.rs @@ -1212,10 +1212,6 @@ impl World { let _bits = LenPrefixed::::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)?;