From f47aea76992f2e8c465e0bca515010d8ed00cca6 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 27 Sep 2024 22:19:32 +0200 Subject: remove old hack where additional set progress packets were sent; fixes #183 --- server/src/interaction.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'server/src/interaction.rs') diff --git a/server/src/interaction.rs b/server/src/interaction.rs index 74d31cd8..ce9cb075 100644 --- a/server/src/interaction.rs +++ b/server/src/interaction.rs @@ -58,7 +58,6 @@ pub fn interact( *other = outputs[0].map(|kind| Item { kind, active: None }); *this = outputs[1].map(|kind| Item { kind, active: None }); produce( - player, this_had_item, other_had_item, this, @@ -158,7 +157,6 @@ pub fn interact( score.instant_recipes += 1; *score_changed = true; produce( - player, this_had_item, other_had_item, this, @@ -307,7 +305,6 @@ pub fn tick_slot( #[allow(clippy::too_many_arguments)] fn produce( - player: Option, this_had_item: bool, other_had_item: bool, this: &Option, @@ -320,13 +317,6 @@ fn produce( info!("produce {this_loc} <~ {other_loc}"); *score_changed = true; if this_had_item { - packet_out.push_back(PacketC::SetProgress { - player, - item: this_loc, - position: 1., - speed: 0., - warn: false, - }); packet_out.push_back(PacketC::SetItem { location: this_loc, item: None, -- cgit v1.2.3-70-g09d2