about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-12-27 02:01:51 +0100
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-12-27 02:01:51 +0100
commitb7e485d74b4f263c7f1f519622ca8118b9ee16c2 (patch)
tree2744dd1a0170ba70d32d38bed560eb7c146d1df9
parentab7f9185854e50aaf27153cf05ce48f53b379498 (diff)
fix(Grav2ty.Protocol): emit correct id in messageUpdateClient
-rw-r--r--lib/Grav2ty/Protocol.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Grav2ty/Protocol.hs b/lib/Grav2ty/Protocol.hs
index f6b737b..09272ce 100644
--- a/lib/Grav2ty/Protocol.hs
+++ b/lib/Grav2ty/Protocol.hs
@@ -151,7 +151,7 @@ messageUpdateClient _ (NewWorld t w) = [GC.SetTick t, GC.SetWorld w]
 messageUpdateClient current (NewObject t i o) =
  if t < current
    then []
-   else GC.UpdateObject t o : clientTickUpdate current t
+   else GC.UpdateObject i o : clientTickUpdate current t
 messageUpdateClient current (UpdateMod t m mf) =
   if t < current
     then []