fixed SPAS using wrong config for alt fire

This commit is contained in:
Bob 2022-03-13 20:09:06 +01:00
parent 05fb9f5919
commit 6782663205

View File

@ -218,7 +218,9 @@ public class ItemGunBase extends Item implements IHoldableWeapon, IItemHUD {
if(altConfig == null)
return;
BulletConfiguration config = getBeltCfg(player, stack, false);
BulletConfiguration config = altConfig.reloadType == altConfig.RELOAD_NONE ? getBeltCfg(player, stack, false) : BulletConfigSyncingUtil.pullConfig(altConfig.config.get(getMagType(stack)));
//System.out.println(config.ammo.getUnlocalizedName());
int bullets = config.bulletsMin;