cancer settings
This commit is contained in:
parent
e0ae5f2826
commit
4b4611d332
Binary file not shown.
BIN
.gradle/7.3.1/checksums/md5-checksums.bin
Normal file
BIN
.gradle/7.3.1/checksums/md5-checksums.bin
Normal file
Binary file not shown.
BIN
.gradle/7.3.1/checksums/sha1-checksums.bin
Normal file
BIN
.gradle/7.3.1/checksums/sha1-checksums.bin
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
132923
javascript/classes.js
132923
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user