mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Removed warning on OoB block modification
This commit is contained in:
parent
e7c8702b44
commit
024ed9eac8
@ -314,9 +314,7 @@ impl State {
|
|||||||
.blocks
|
.blocks
|
||||||
.iter()
|
.iter()
|
||||||
.for_each(|(pos, block)| {
|
.for_each(|(pos, block)| {
|
||||||
if terrain.set(*pos, *block).is_err() {
|
let _ = terrain.set(*pos, *block);
|
||||||
warn!("Tried to modify block outside of terrain at {:?}", pos);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
std::mem::swap(
|
std::mem::swap(
|
||||||
&mut self.ecs.write_resource::<BlockChange>().blocks,
|
&mut self.ecs.write_resource::<BlockChange>().blocks,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user