April 29, 20196 yr 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!
April 29, 20196 yr 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.
April 29, 20196 yr Author 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, 20196 yr by Zummy
April 29, 20196 yr 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
April 29, 20196 yr Author 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(); }
Create an account or sign in to comment