summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-27 22:19:32 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-27 22:19:32 +0200
commitf47aea76992f2e8c465e0bca515010d8ed00cca6 (patch)
tree140d51f9603e5c4b0c00cca00c8528461e74fa9f /server/src
parentc0cf224cc7e0aa252e01e4a310b68e7b6fa49174 (diff)
downloadhurrycurry-f47aea76992f2e8c465e0bca515010d8ed00cca6.tar
hurrycurry-f47aea76992f2e8c465e0bca515010d8ed00cca6.tar.bz2
hurrycurry-f47aea76992f2e8c465e0bca515010d8ed00cca6.tar.zst
remove old hack where additional set progress packets were sent; fixes #183
Diffstat (limited to 'server/src')
-rw-r--r--server/src/interaction.rs10
1 files changed, 0 insertions, 10 deletions
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<PlayerID>,
this_had_item: bool,
other_had_item: bool,
this: &Option<Item>,
@@ -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,