Merge branch 'zesterer/small-fixes' into 'master'

Removed warning on OoB block modification

See merge request veloren/veloren!348
This commit is contained in:
Joshua Barretto 2019-07-20 18:13:24 +00:00
commit e8aa654f01

View File

@ -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,