From 421d8ce2c837e3140d8f866e63032c277b31a413 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Mon, 4 Dec 2023 23:42:49 -0600 Subject: Replace Bevy's FixedUpdate with Azalea's GameTick (#119) * replace bevy FixedUpdate with azalea GameTick * Update to Bevy 0.12.1 --- azalea-core/Cargo.toml | 2 +- azalea-core/src/lib.rs | 1 + azalea-core/src/tick.rs | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 azalea-core/src/tick.rs (limited to 'azalea-core') diff --git a/azalea-core/Cargo.toml b/azalea-core/Cargo.toml index 957eaaf5..4d8af3a5 100644 --- a/azalea-core/Cargo.toml +++ b/azalea-core/Cargo.toml @@ -13,7 +13,7 @@ azalea-buf = { path = "../azalea-buf", version = "0.8.0" } azalea-inventory = { version = "0.8.0", path = "../azalea-inventory" } simdnbt = { version = "0.2.1" } azalea-registry = { path = "../azalea-registry", version = "0.8.0" } -bevy_ecs = { version = "0.12.0", default-features = false, optional = true } +bevy_ecs = { version = "0.12.1", default-features = false, optional = true } nohash-hasher = "0.2.0" num-traits = "0.2.17" serde = { version = "^1.0", optional = true } diff --git a/azalea-core/src/lib.rs b/azalea-core/src/lib.rs index cb67da58..511c897b 100755 --- a/azalea-core/src/lib.rs +++ b/azalea-core/src/lib.rs @@ -16,4 +16,5 @@ pub mod particle; pub mod position; pub mod registry_holder; pub mod resource_location; +pub mod tick; pub mod tier; diff --git a/azalea-core/src/tick.rs b/azalea-core/src/tick.rs new file mode 100644 index 00000000..db10d80a --- /dev/null +++ b/azalea-core/src/tick.rs @@ -0,0 +1,4 @@ +use bevy_ecs::schedule::ScheduleLabel; + +#[derive(ScheduleLabel, Hash, Copy, Clone, Debug, Default, Eq, PartialEq)] +pub struct GameTick; -- cgit v1.2.3