SniffVillage / Bren

A vanilla-like gun mod for Minecraft
Other
6 stars 3 forks source link

Modified Damage In Config Not Working #15

Open itsDiiMS opened 3 months ago

itsDiiMS commented 3 months ago

I have the mod installed on my server and i changed the damage values in the config, regarless, the guns do the same base damage. I dived into the .jar file and found these errors in the config .class files:

B ¥ Failed to save the Bren config § (Ljava/lang/String;Ljava/lang/Throwable;)V [ © Z ª "Error while saving the Bren config ¬ object Ljava/lang/Object; configValue :Lnl/sniffiandros/bren/common/config/ConfigHelper$Value<>; 7Lnl/sniffiandros/bren/common/config/ConfigHelper$Value; field Ljava/lang/reflect/Field; jsonObject Lcom/google/gson/JsonObject; fileWriter Ljava/io/FileWriter; e Ljava/io/IOException; "Ljava/lang/IllegalAccessException; java/io/FileReader ¼ ½ b fromJson 5(Ljava/io/Reader;Ljava/lang/Class;)Ljava/lang/Object; ¿ À › Á has (Ljava/lang/String;)Z Ã Ä e Å 1(Ljava/lang/String;)Lcom/google/gson/JsonElement; } Ç e È read 1(Lcom/google/gson/JsonElement;)Ljava/lang/Object; Ê Ë

Ì setUnchecked (Ljava/lang/Object;)V Î Ï

Ð ½ ¡ Failed to read the Bren config Ó #Error while reading the Bren config Õ fieldName Ljava/lang/String; jsonElement Lcom/google/gson/JsonElement;

fileReader Ljava/io/FileReader;  config/bren_config.json Þ

Not sure what all of this text is saying but i can clearly see there's an error. Anyway, this mod is a great addition to minecraft and a really good replacement for non-fitting minecraft mod guns! i really appreciate the work for the mod and hope it will get better over time!

SniffVillage commented 3 months ago

i need to rewrite the config stuff anyway