Config Overhaul

This commit is contained in:
KAMKEEL committed 2023-01-07 00:21:08 -05:00
1 parent b4cb69000e
commit 6e92f08851
51 files changed
+764 -395

No files matched your search

@@ -7,6 +7,7 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import noppes.npcs.CustomItems;
import noppes.npcs.CustomNpcs;
import noppes.npcs.config.ConfigMain;
import noppes.npcs.entity.EntityProjectile;
import org.lwjgl.opengl.GL11;
@@ -54,14 +55,14 @@ public class ItemMachineGun extends ItemNpcInterface{
}
int shotsleft = stack.stackTagCompound.getInteger("ShotsLeft") - ticks/6;
if(!player.capabilities.isCreativeMode || !CustomNpcs.GunsEnabled){
if(!player.capabilities.isCreativeMode || !ConfigMain.GunsEnabled){
if(stack.stackTagCompound.getBoolean("Reloading2") && hasItem(player, CustomItems.bulletBlack)){
if(ticks > 0 && ticks <= 24){
player.worldObj.playSoundAtEntity(player, "customnpcs:gun.ak47.load", 1.0F,1);
}
return;
}
else if((shotsleft <= 0 || !hasItem(player, CustomItems.bulletBlack)) || !CustomNpcs.GunsEnabled)
else if((shotsleft <= 0 || !hasItem(player, CustomItems.bulletBlack)) || !ConfigMain.GunsEnabled)
{
player.worldObj.playSoundAtEntity(player, "customnpcs:gun.empty", 1.0F,1);
return;