This might break other things but it definitely fixes Ernest :pepega:

This commit is contained in:
Ceikry
2021-06-24 07:50:28 -05:00
parent 86ea038559
commit 600a164732
2 changed files with 2 additions and 2 deletions
@@ -2,6 +2,7 @@ package core.cache.def.impl;
import core.cache.Cache;
import core.game.node.entity.player.Player;
import rs09.game.system.SystemLogger;
import rs09.game.world.GameWorld;
import java.nio.ByteBuffer;
@@ -122,7 +123,7 @@ public final class VarbitDefinition {
int size = BITS[bitSize - bitShift];
int bitValue = player.varpManager.get(getConfigId()).getBitRangeValue(getBitShift(), getBitShift() + (bitSize - bitShift));
if(bitValue != 0){
return bitValue >>> bitShift;
return size & (bitValue >>> bitShift);
}
return size & (player.getConfigManager().get(configId) >>> bitShift);
}