Skip to content

Commit

Permalink
0.2.4 Crash Fix for Servers (oops)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Charles445 committed Feb 8, 2020
1 parent cde34ad commit 22a033c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Integer, Long> hashAge = new HashMap<Integer, Long>();

@SideOnly(Side.CLIENT)
//Only used by clients
protected static Map<Integer, Float> hashTemp = new HashMap<Integer, Float>();

@SideOnly(Side.CLIENT)
//Only used by clients
protected static long lastAudit = 0L;

@SideOnly(Side.CLIENT)
Expand Down

0 comments on commit 22a033c

Please sign in to comment.