Skip to content

Commit

Permalink
Removed the /hunger command (moved it to AppleCore)
Browse files Browse the repository at this point in the history
  • Loading branch information
squeek502 committed Sep 22, 2014
1 parent 055d6dd commit a6ec75b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 74 deletions.
11 changes: 0 additions & 11 deletions src/main/java/iguanaman/hungeroverhaul/HungerOverhaul.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import iguanaman.hungeroverhaul.commands.IguanaCommandHunger;
import iguanaman.hungeroverhaul.food.FoodEventHandler;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
Expand All @@ -26,7 +25,6 @@
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import iguanaman.hungeroverhaul.food.FoodModifier;
import iguanaman.hungeroverhaul.potion.PotionWellFed;
import iguanaman.hungeroverhaul.util.ComponentVillageCustomField;
Expand Down Expand Up @@ -108,13 +106,4 @@ public void postInit(FMLPostInitializationEvent event)
MinecraftForge.EVENT_BUS.register(new IguanaEventHook());
FMLCommonHandler.instance().bus().register(new ModuleRespawnHunger());
}

@EventHandler
public void serverStarting(FMLServerStartingEvent event)
{
if (IguanaConfig.addSetHungerCommand)
{
event.registerServerCommand(new IguanaCommandHunger());
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public class IguanaConfig
public static boolean foodsUnplantable;

// hunger
public static boolean addSetHungerCommand;
public static boolean constantHungerLoss;
public static int damageOnStarve;
public static int respawnHungerValue;
Expand Down Expand Up @@ -373,10 +372,6 @@ public static void reload()
// Hunger
config.getCategory("hunger").setComment("Options related to hunger");

Property addSetHungerCommandProperty = config.get("hunger", "addSetHungerCommand", true);
addSetHungerCommandProperty.comment = "Adds a console command to allow OPs to set a player's hunger level";
addSetHungerCommand = addSetHungerCommandProperty.getBoolean(true);

Property constantHungerLossProperty = config.get("hunger", "constantHungerLoss", true);
constantHungerLossProperty.comment = "You lose hunger (very slowly) at all times";
constantHungerLoss = constantHungerLossProperty.getBoolean(true);
Expand Down

0 comments on commit a6ec75b

Please sign in to comment.