From ddae8877b70fec64e6528e1047f298e99bcf551d Mon Sep 17 00:00:00 2001 From: Jikoo Date: Sun, 12 Nov 2023 12:17:39 -0500 Subject: [PATCH] 2AM brain --- .../com/lishid/openinv/internal/v1_19_R3/OpenPlayer.java | 6 +++--- .../com/lishid/openinv/internal/v1_20_R1/OpenPlayer.java | 6 +++--- .../com/lishid/openinv/internal/v1_20_R2/OpenPlayer.java | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/internal/v1_19_R3/src/main/java/com/lishid/openinv/internal/v1_19_R3/OpenPlayer.java b/internal/v1_19_R3/src/main/java/com/lishid/openinv/internal/v1_19_R3/OpenPlayer.java index a7b5a534..5a394b59 100644 --- a/internal/v1_19_R3/src/main/java/com/lishid/openinv/internal/v1_19_R3/OpenPlayer.java +++ b/internal/v1_19_R3/src/main/java/com/lishid/openinv/internal/v1_19_R3/OpenPlayer.java @@ -95,9 +95,9 @@ private void revertSpecialValues(@NotNull CompoundTag newData, @Nullable Compoun } // Revert automatic updates to play timestamps. - copyValue(newData, oldData, "bukkit", "lastPlayed", NumericTag.class); - copyValue(newData, oldData, "Paper", "LastSeen", NumericTag.class); - copyValue(newData, oldData, "Paper", "LastLogin", NumericTag.class); + copyValue(oldData, newData, "bukkit", "lastPlayed", NumericTag.class); + copyValue(oldData, newData, "Paper", "LastSeen", NumericTag.class); + copyValue(oldData, newData, "Paper", "LastLogin", NumericTag.class); } private void copyValue( diff --git a/internal/v1_20_R1/src/main/java/com/lishid/openinv/internal/v1_20_R1/OpenPlayer.java b/internal/v1_20_R1/src/main/java/com/lishid/openinv/internal/v1_20_R1/OpenPlayer.java index 4d3f05d5..6d70e3db 100644 --- a/internal/v1_20_R1/src/main/java/com/lishid/openinv/internal/v1_20_R1/OpenPlayer.java +++ b/internal/v1_20_R1/src/main/java/com/lishid/openinv/internal/v1_20_R1/OpenPlayer.java @@ -95,9 +95,9 @@ private void revertSpecialValues(@NotNull CompoundTag newData, @Nullable Compoun } // Revert automatic updates to play timestamps. - copyValue(newData, oldData, "bukkit", "lastPlayed", NumericTag.class); - copyValue(newData, oldData, "Paper", "LastSeen", NumericTag.class); - copyValue(newData, oldData, "Paper", "LastLogin", NumericTag.class); + copyValue(oldData, newData, "bukkit", "lastPlayed", NumericTag.class); + copyValue(oldData, newData, "Paper", "LastSeen", NumericTag.class); + copyValue(oldData, newData, "Paper", "LastLogin", NumericTag.class); } private void copyValue( diff --git a/internal/v1_20_R2/src/main/java/com/lishid/openinv/internal/v1_20_R2/OpenPlayer.java b/internal/v1_20_R2/src/main/java/com/lishid/openinv/internal/v1_20_R2/OpenPlayer.java index e54d9572..cdd6b28c 100644 --- a/internal/v1_20_R2/src/main/java/com/lishid/openinv/internal/v1_20_R2/OpenPlayer.java +++ b/internal/v1_20_R2/src/main/java/com/lishid/openinv/internal/v1_20_R2/OpenPlayer.java @@ -95,9 +95,9 @@ private void revertSpecialValues(@NotNull CompoundTag newData, @Nullable Compoun } // Revert automatic updates to play timestamps. - copyValue(newData, oldData, "bukkit", "lastPlayed", NumericTag.class); - copyValue(newData, oldData, "Paper", "LastSeen", NumericTag.class); - copyValue(newData, oldData, "Paper", "LastLogin", NumericTag.class); + copyValue(oldData, newData, "bukkit", "lastPlayed", NumericTag.class); + copyValue(oldData, newData, "Paper", "LastSeen", NumericTag.class); + copyValue(oldData, newData, "Paper", "LastLogin", NumericTag.class); } private void copyValue(