From f4e9896dbc7986951dcfe6477c833b58e49f6053 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 15 Aug 2023 09:14:19 -0400 Subject: [PATCH] Unused variable removal. --- src/engine/net/client/msg/ManageNPCMsg.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/net/client/msg/ManageNPCMsg.java b/src/engine/net/client/msg/ManageNPCMsg.java index a0eb76db..64df0293 100644 --- a/src/engine/net/client/msg/ManageNPCMsg.java +++ b/src/engine/net/client/msg/ManageNPCMsg.java @@ -452,8 +452,7 @@ public class ManageNPCMsg extends ClientNetMsg { writer.putInt(0); writer.putInt(i.getItemBaseID()); writer.putInt(ib.getBaseValue()); - long curTime = System.currentTimeMillis() / 1000; - long upgradeTime = i.getDateToUpgrade() / 1000; + long timeLife = i.getDateToUpgrade() - System.currentTimeMillis(); timeLife /= 1000;