diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitWorld.java b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitWorld.java index 75bca02ee..38a343780 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitWorld.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitWorld.java @@ -97,7 +97,7 @@ public class BukkitWorld implements World { @Override public int hashCode() { - return Objects.hash(world); + return world.hashCode(); } /** diff --git a/Core/src/main/java/com/plotsquared/core/plot/PlotWorld.java b/Core/src/main/java/com/plotsquared/core/plot/PlotWorld.java index 8afb4f649..dc78223f3 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotWorld.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotWorld.java @@ -119,7 +119,7 @@ public abstract class PlotWorld { @Override public int hashCode() { - return Objects.hash(world); + return world.hashCode(); } /** diff --git a/Core/src/main/java/com/plotsquared/core/plot/flag/FlagContainer.java b/Core/src/main/java/com/plotsquared/core/plot/flag/FlagContainer.java index d03b77982..654acbe0a 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/flag/FlagContainer.java +++ b/Core/src/main/java/com/plotsquared/core/plot/flag/FlagContainer.java @@ -385,7 +385,7 @@ public class FlagContainer { @Override public int hashCode() { - return Objects.hash(flagMap); + return flagMap.hashCode(); } /** diff --git a/Core/src/main/java/com/plotsquared/core/plot/flag/PlotFlag.java b/Core/src/main/java/com/plotsquared/core/plot/flag/PlotFlag.java index 65878ae19..c9cf5b1dc 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/flag/PlotFlag.java +++ b/Core/src/main/java/com/plotsquared/core/plot/flag/PlotFlag.java @@ -215,7 +215,7 @@ public abstract class PlotFlag> { @Override public int hashCode() { - return Objects.hash(value); + return value.hashCode(); } /**