From 678a32be304bcffe457cf869ba6c5d57bdc1b2e1 Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Fri, 14 Sep 2018 13:47:51 +1000 Subject: $ Fixed the XP Convertor. % Rewrote base tile entity system. % Added hashCode() to Pair.java. % Changed some calculations on Materials. % Made Rocket Engines produce heavy pollution. --- src/Java/gtPlusPlus/api/objects/data/Pair.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Java/gtPlusPlus/api/objects/data') diff --git a/src/Java/gtPlusPlus/api/objects/data/Pair.java b/src/Java/gtPlusPlus/api/objects/data/Pair.java index 6ab781cf1e..e1d23e6b43 100644 --- a/src/Java/gtPlusPlus/api/objects/data/Pair.java +++ b/src/Java/gtPlusPlus/api/objects/data/Pair.java @@ -2,6 +2,8 @@ package gtPlusPlus.api.objects.data; import java.io.Serializable; +import com.google.common.base.Objects; + public class Pair implements Serializable { /** @@ -24,4 +26,10 @@ public class Pair implements Serializable { return this.value; } + @Override + public int hashCode() { + Integer aCode = Objects.hashCode(getKey(), getValue()); + return aCode != null ? aCode : super.hashCode(); + } + } \ No newline at end of file -- cgit