diff --git a/.gitignore b/.gitignore index 9d1ee4bda..a8bc3a134 100644 --- a/.gitignore +++ b/.gitignore @@ -85,4 +85,7 @@ world/ # project's binary configurations configuration.toml -features.toml \ No newline at end of file +features.toml + + +*.local.nbt \ No newline at end of file diff --git a/pumpkin-protocol/src/bytebuf/mod.rs b/pumpkin-protocol/src/bytebuf/mod.rs index fa275bb15..11d304223 100644 --- a/pumpkin-protocol/src/bytebuf/mod.rs +++ b/pumpkin-protocol/src/bytebuf/mod.rs @@ -168,7 +168,9 @@ impl ByteBuffer { /// some, then it also calls the `write` closure. pub fn put_option(&mut self, val: &Option, write: impl FnOnce(&mut Self, &T)) { self.put_bool(val.is_some()); - if let Some(v) = val { write(self, v) } + if let Some(v) = val { + write(self, v) + } } pub fn get_list(&mut self, val: impl Fn(&mut Self) -> T) -> Vec {