mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
dude why
This commit is contained in:
parent
282228239f
commit
45436906da
@ -134,13 +134,15 @@ public class ItemGunBase extends Item implements IHoldableWeapon, IItemHUD, IEqu
|
||||
setIsMouseDown(stack, false);
|
||||
}
|
||||
|
||||
if(getBurstDuration(stack) > 0) {
|
||||
int burstDuration = getBurstDuration(stack);
|
||||
if(burstDuration > 0) {
|
||||
|
||||
if(altConfig == null) {
|
||||
if (world.getWorldTime() % mainConfig.firingDuration == 0 && tryShoot(stack, world, player, true)) {
|
||||
if (burstDuration % mainConfig.firingDuration == 0 && tryShoot(stack, world, player, true)) {
|
||||
fire(stack, world, player);
|
||||
}
|
||||
} else {
|
||||
boolean canFire = altConfig.firingDuration == 1 || world.getWorldTime() % altConfig.firingDuration == 0;
|
||||
boolean canFire = altConfig.firingDuration == 1 || burstDuration % altConfig.firingDuration == 0;
|
||||
if (canFire && tryShoot(stack, world, player, false)) {
|
||||
altFire(stack, world, player);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user