cancer settings

This commit is contained in:
ThisIsALegitUsername 2023-01-03 18:58:01 +00:00
parent e0ae5f2826
commit 4b4611d332
13 changed files with 66547 additions and 66641 deletions

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -704,44 +704,6 @@ public class GameSettings {
try { try {
String[] astring = s.split(":"); String[] astring = s.split(":");
for(Mod m : Resent.INSTANCE.modManager.modules){
if(astring[0].equals(m.name)){
m.enabled = astring[1].equals("true");
}
List<RenderModule> rmodules = new ArrayList<>();
if(m instanceof RenderModule){ rmodules.add((RenderModule)m); }
for(RenderModule rmod : rmodules){
if(astring[0].equals(rmod.name+"_x")){
rmod.setX(Integer.parseInt(astring[1]));
}
if(astring[0].equals(rmod.name+"_y")){
rmod.setY(Integer.parseInt(astring[1]));
}
if(astring[0].equals(rmod.name+"_lastx")){
rmod.lastX=Integer.parseInt(astring[1]);
}
if(astring[0].equals(rmod.name+"_lasty")){
rmod.lastY=Integer.parseInt(astring[1]);
}
}
for(Setting se : m.settings){
if(se instanceof ModeSetting){
if(astring[0].equals(m.name+"_modesetting_"+se.name)){
((ModeSetting)se).setValue(astring[1]);
}
}
if(se instanceof BooleanSetting){
if(astring[0].equals(m.name+"_boolsetting_"+se.name)){
((BooleanSetting)se).setValue(astring[1].equals("true"));
}
}
}
}
if (astring[0].equals("mouseSensitivity")) { if (astring[0].equals("mouseSensitivity")) {
this.mouseSensitivity = this.parseFloat(astring[1]); this.mouseSensitivity = this.parseFloat(astring[1]);
} }
@ -1048,6 +1010,45 @@ public class GameSettings {
this.setModelPartEnabled(enumplayermodelparts, astring[1].equals("true")); this.setModelPartEnabled(enumplayermodelparts, astring[1].equals("true"));
} }
} }
for(Mod m : Resent.INSTANCE.modManager.modules){
if(astring[0].equals(m.name)){
m.enabled = astring[1].equals("true");
}
List<RenderModule> rmodules = new ArrayList<>();
if(m instanceof RenderModule){ rmodules.add((RenderModule)m); }
for(RenderModule rmod : rmodules){
if(astring[0].equals(rmod.name+"_x")){
rmod.setX(Integer.parseInt(astring[1]));
}
if(astring[0].equals(rmod.name+"_y")){
rmod.setY(Integer.parseInt(astring[1]));
}
if(astring[0].equals(rmod.name+"_lastx")){
rmod.lastX=Integer.parseInt(astring[1]);
}
if(astring[0].equals(rmod.name+"_lasty")){
rmod.lastY=Integer.parseInt(astring[1]);
}
}
for(Setting se : m.settings){
if(se instanceof ModeSetting){
if(astring[0].equals(m.name+"_modesetting_"+se.name)){
((ModeSetting)se).setValue(astring[1]);
}
}
if(se instanceof BooleanSetting){
if(astring[0].equals(m.name+"_boolsetting_"+se.name)){
((BooleanSetting)se).setValue(astring[1].equals("true"));
}
}
}
}
} catch (Exception var8) { } catch (Exception var8) {
logger.warn("Skipping bad option: " + s); logger.warn("Skipping bad option: " + s);
} }