Zummy Posted April 29, 2019 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!
Token Posted April 29, 2019 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.
Zummy Posted April 29, 2019 Author 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
Token Posted April 29, 2019 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
Zummy Posted April 29, 2019 Author 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(); }