Zummy Posted April 29, 2019 Share Posted April 29, 2019 Hey, I sometimes have problems with config not reading the right values. A varbit mask can return a false but when restarting the script it returns true, so I was hoping there is a way to force reload config values or something. Anyone know how to fix this? Thanks! Quote Link to comment Share on other sites More sharing options...
Token Posted April 29, 2019 Share Posted April 29, 2019 I'm pretty sure that's caused by a logical error in the script code, if you open the config debugger you should notice that configs don't change by restarting the script. Post the script code if you need help. Quote Link to comment Share on other sites More sharing options...
Zummy Posted April 29, 2019 Author Share Posted April 29, 2019 (edited) I'm just repeatedly calling this: public boolean isBrotherDead(BarrowsBrothers b){ return getConfigs().get(453 & b.getBitmask()) == b.getBitmask(); } Not sure if that's enough context. Edited April 29, 2019 by Zummy Quote Link to comment Share on other sites More sharing options...
Token Posted April 29, 2019 Share Posted April 29, 2019 33 minutes ago, Zummy said: I'm just repeatedly calling this: public boolean isBrotherDead(BarrowsBrothers b){ return getConfigs().get(453 & b.getBitmask()) == b.getBitmask(); } Not sure if that's enough context. Definitely not enough context Quote Link to comment Share on other sites More sharing options...
Zummy Posted April 29, 2019 Author Share Posted April 29, 2019 6 hours ago, Token said: Definitely not enough context I think I was doing the bitwise operation wrong, should be: public boolean isBrotherDead(BarrowsBrothers b){ return (getConfigs().get(brotherConfig) & b.getBitmask()) == b.getBitmask(); } Quote Link to comment Share on other sites More sharing options...