Ralith / hypermine

A hyperbolic voxel game
Apache License 2.0
160 stars 20 forks source link

Don't crash when placing blocks with gameplay enabled #430

Closed patowen closed 1 month ago

patowen commented 1 month ago

This fixes a bug I introduced in PR #414 that likely only wasn't noticed because, in the current state of the game, entities are rarely destroyed.

Error:

thread '<unnamed>' panicked at server\src\sim.rs:407:64: 
called `Result::unwrap()` on an `Err` value: NoSuchEntity