summaryrefslogtreecommitdiff
path: root/server/protocol/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/protocol/src')
-rw-r--r--server/protocol/src/lib.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs
index 2fcc5598..02c6d0b1 100644
--- a/server/protocol/src/lib.rs
+++ b/server/protocol/src/lib.rs
@@ -203,7 +203,9 @@ pub enum PacketC {
},
Menu(Menu),
MovementSync,
- UpdateEnvironment(Environment),
+ Environment {
+ effects: HashSet<String>,
+ },
/// For use in replay sessions only
ReplayStart,
@@ -229,13 +231,6 @@ pub struct Score {
pub instant_recipes: usize,
}
-#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode, Default)]
-pub struct Environment {
- pub rain: f32, // 0-1; clear..raining
- pub wind: f32, // 0-1; still..stormy
- pub time: f32, // 0-1; night..morning..noon..evening
-}
-
#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode, Copy, PartialEq, Eq, Hash)]
#[serde(rename_all = "snake_case")]
pub enum ItemLocation {