Skip to content

Commit 0051bdf

Browse files
committed
Fixing issue with deathlink
1 parent 296031f commit 0051bdf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/io/github/archipelagomw/bounce/DeathLinkHandler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@ public void handle(BouncedPacket packet) {
4242

4343
public void sendDeathLink(String source, String cause)
4444
{
45-
lastDeath.set((double)System.currentTimeMillis() / 1000D);
45+
double time = (double)System.currentTimeMillis() / 1000D;
46+
lastDeath.set(time);
4647

4748
BouncePacket deathLinkPacket = new BouncePacket();
4849
deathLinkPacket.tags = new String[]{DEATHLINK_TAG};
4950

5051
HashMap<String, Object> data = new HashMap<>();
5152
data.put("cause",cause);
52-
data.put("time", lastDeath);
53+
data.put("time", time);
5354
data.put("source",source);
5455
deathLinkPacket.setData(data);
5556

0 commit comments

Comments
 (0)