diff options
| author | shedaniel <daniel@shedaniel.me> | 2021-03-29 00:29:50 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2021-03-29 00:29:50 +0800 |
| commit | 096a01c606f491f2bb7a07c3df8ac83f6d313086 (patch) | |
| tree | b8f788dd6ed087ef76a5c81d3b3378bc3b1cf7b3 /default-plugin | |
| parent | 7b44adc2bd4e1ef21cd229f5b52d3ddae58a8b20 (diff) | |
| download | RoughlyEnoughItems-096a01c606f491f2bb7a07c3df8ac83f6d313086.tar.gz RoughlyEnoughItems-096a01c606f491f2bb7a07c3df8ac83f6d313086.tar.bz2 RoughlyEnoughItems-096a01c606f491f2bb7a07c3df8ac83f6d313086.zip | |
Use long for hashing the EntryStack
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'default-plugin')
2 files changed, 2 insertions, 2 deletions
diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/favorites/GameModeFavoriteEntry.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/favorites/GameModeFavoriteEntry.java index 1e45f89fd..d3d00d752 100644 --- a/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/favorites/GameModeFavoriteEntry.java +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/favorites/GameModeFavoriteEntry.java @@ -164,7 +164,7 @@ public class GameModeFavoriteEntry extends FavoriteEntry { } @Override - public int hashIgnoreAmount() { + public long hashIgnoreAmount() { return gameMode == null ? -1 : gameMode.ordinal(); } diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/favorites/WeatherFavoriteEntry.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/favorites/WeatherFavoriteEntry.java index 13c66e1b0..c48e8501a 100644 --- a/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/favorites/WeatherFavoriteEntry.java +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/client/favorites/WeatherFavoriteEntry.java @@ -170,7 +170,7 @@ public class WeatherFavoriteEntry extends FavoriteEntry { } @Override - public int hashIgnoreAmount() { + public long hashIgnoreAmount() { return weather == null ? -1 : weather.ordinal(); } |
