mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'zesterer/small-fixes' into 'master'
Removed warning on OoB block modification See merge request veloren/veloren!348
This commit is contained in:
commit
e8aa654f01
@ -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::<BlockChange>().blocks,
|
||||
|
Loading…
Reference in New Issue
Block a user