From 22a033c4d3a58a6c55ad32c3e9c2e4760d24ce41 Mon Sep 17 00:00:00 2001 From: Charles445 Date: Fri, 7 Feb 2020 19:29:16 -0600 Subject: [PATCH] 0.2.4 Crash Fix for Servers (oops) I guess this mod never worked on servers for the longest time. That's what I get for assuming annotations work like I expect. Come to think of it that's probably what happened, the annotation removed the field, but the assignment to the variable did not get removed as it'd get transferred over to the static {} area god --- build.gradle | 2 +- .../com/charles445/simpledifficulty/SimpleDifficulty.java | 2 +- .../config/compat/CFGServerCompatibility.java | 2 +- .../charles445/simpledifficulty/item/ItemThermometer.java | 8 +++++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index f7cf194..0c83e88 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ buildscript { apply plugin: 'net.minecraftforge.gradle.forge' -version = "1.12.2-0.2.3" +version = "1.12.2-0.2.4" group = "com.charles445.simpledifficulty" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "SimpleDifficulty" diff --git a/src/main/java/com/charles445/simpledifficulty/SimpleDifficulty.java b/src/main/java/com/charles445/simpledifficulty/SimpleDifficulty.java index 413b15f..c2e0d0b 100644 --- a/src/main/java/com/charles445/simpledifficulty/SimpleDifficulty.java +++ b/src/main/java/com/charles445/simpledifficulty/SimpleDifficulty.java @@ -32,7 +32,7 @@ public class SimpleDifficulty { public static final String MODID = "simpledifficulty"; public static final String NAME = "SimpleDifficulty"; - public static final String VERSION = "0.2.3"; + public static final String VERSION = "0.2.4"; @Mod.Instance(SimpleDifficulty.MODID) public static SimpleDifficulty instance; diff --git a/src/main/java/com/charles445/simpledifficulty/config/compat/CFGServerCompatibility.java b/src/main/java/com/charles445/simpledifficulty/config/compat/CFGServerCompatibility.java index 6cd12b2..c388625 100644 --- a/src/main/java/com/charles445/simpledifficulty/config/compat/CFGServerCompatibility.java +++ b/src/main/java/com/charles445/simpledifficulty/config/compat/CFGServerCompatibility.java @@ -60,7 +60,7 @@ public static class SDCFG_Toggles @Config.Name("EnableSimpleCampfire") public boolean simpleCampfire = true; - @Config.Comment("Enable Tinker's Construct - Built-In Compatibility") + @Config.Comment("Enable Tinkers' Construct - Built-In Compatibility") @Config.Name("EnableTinkersConstruct") public boolean tinkersconstruct = true; diff --git a/src/main/java/com/charles445/simpledifficulty/item/ItemThermometer.java b/src/main/java/com/charles445/simpledifficulty/item/ItemThermometer.java index f20aa99..16786a7 100644 --- a/src/main/java/com/charles445/simpledifficulty/item/ItemThermometer.java +++ b/src/main/java/com/charles445/simpledifficulty/item/ItemThermometer.java @@ -29,13 +29,15 @@ public class ItemThermometer extends Item { - @SideOnly(Side.CLIENT) + //Turns out running @SideOnly(Side.CLIENT) on these variables causes a NoSuchFieldError. Great. + + //Only used by clients protected static Map hashAge = new HashMap(); - @SideOnly(Side.CLIENT) + //Only used by clients protected static Map hashTemp = new HashMap(); - @SideOnly(Side.CLIENT) + //Only used by clients protected static long lastAudit = 0L; @SideOnly(Side.CLIENT)