From 024ed9eac899408b5750f7ce74785202ec64eb04 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Sat, 20 Jul 2019 19:08:28 +0100 Subject: [PATCH] Removed warning on OoB block modification --- common/src/state.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/src/state.rs b/common/src/state.rs index 10b46ad890..103c70cb5e 100644 --- a/common/src/state.rs +++ b/common/src/state.rs @@ -314,9 +314,7 @@ impl State { .blocks .iter() .for_each(|(pos, block)| { - if terrain.set(*pos, *block).is_err() { - warn!("Tried to modify block outside of terrain at {:?}", pos); - } + let _ = terrain.set(*pos, *block); }); std::mem::swap( &mut self.ecs.write_resource::().blocks,