mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
14 lines
431 B
Rust
14 lines
431 B
Rust
use specs::Component;
|
|
use specs_idvs::IdvStorage;
|
|
use vek::Vec2;
|
|
|
|
/// This component exists in order to fix a bug that caused entitites
|
|
/// such as campfires to duplicate because the chunk was double-loaded.
|
|
/// See https://gitlab.com/veloren/veloren/-/merge_requests/1543
|
|
#[derive(Copy, Clone, Default, Debug, PartialEq)]
|
|
pub struct HomeChunk(pub Vec2<i32>);
|
|
|
|
impl Component for HomeChunk {
|
|
type Storage = IdvStorage<Self>;
|
|
}
|