mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
25 lines
687 B
Java
25 lines
687 B
Java
package com.hbm.items.weapon;
|
|
|
|
import com.hbm.handler.GunConfiguration;
|
|
import com.hbm.lib.Library;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.world.World;
|
|
|
|
public class ItemGunShotty extends ItemGunBase {
|
|
|
|
public ItemGunShotty(GunConfiguration config) {
|
|
super(config);
|
|
}
|
|
|
|
|
|
protected void updateServer(ItemStack stack, World world, EntityPlayer player, int slot, boolean isCurrentItem) {
|
|
super.updateServer(stack, world, player, slot, isCurrentItem);
|
|
|
|
if(player.getUniqueID().toString().equals(Library.Dr_Nostalgia) && this.getDelay(stack) < this.mainConfig.rateOfFire * 0.9)
|
|
this.setDelay(stack, 0);
|
|
}
|
|
|
|
}
|