aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-23 00:13:23 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:31:11 +0200
commit2eaa2593a74e2d82da3a814d6f2544802fdb0d6b (patch)
treeb0a1c5ac506b4f4eec0cff2716bc7e2fbdfe4e86
parente165bdd15b04bca58ac3bc93bdd935bdc32e8786 (diff)
downloadhurrycurry-2eaa2593a74e2d82da3a814d6f2544802fdb0d6b.tar
hurrycurry-2eaa2593a74e2d82da3a814d6f2544802fdb0d6b.tar.bz2
hurrycurry-2eaa2593a74e2d82da3a814d6f2544802fdb0d6b.tar.zst
send setactive for finished products
-rw-r--r--server/src/game.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/game.rs b/server/src/game.rs
index a8ea9991..e2245895 100644
--- a/server/src/game.rs
+++ b/server/src/game.rs
@@ -217,6 +217,11 @@ impl Game {
}),
InteractEffect::Produce => {
if tile_had_item {
+ self.packet_out.push_back(PacketC::SetActive {
+ tile: pos,
+ progress: None,
+ warn: false,
+ });
self.packet_out.push_back(PacketC::SetTileItem {
tile: pos,
item: None,