Skip to content

Commit

Permalink
Added debug to allow easy texture adding
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Aug 17, 2014
1 parent c849158 commit f8ed3b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/doubledoordev/timber/Timber.java
Expand Up @@ -92,6 +92,7 @@ public void preInit(FMLPreInitializationEvent event)
@Mod.EventHandler
public void init(FMLInitializationEvent event)
{
if (debug) logger.info("Registering all tools");
for (Item.ToolMaterial material : Item.ToolMaterial.values())
{
try
Expand Down
Expand Up @@ -31,6 +31,7 @@
package net.doubledoordev.timber.items;

import cpw.mods.fml.common.registry.GameRegistry;
import net.doubledoordev.timber.Timber;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.EntityLivingBase;
Expand Down Expand Up @@ -71,6 +72,8 @@ public ItemLumberAxe(ToolMaterial toolMaterial)
setUnlocalizedName(name);
GameRegistry.registerItem(this, name);

if (Timber.instance.debug) Timber.instance.logger.info(String.format("ToolMaterial: %s \tTexture string: %s \tItem name: %s", toolMaterial, iconString, name));

try
{
damageVsEntityField.set(this, damageVsEntityField.getFloat(this) + 1);
Expand Down

0 comments on commit f8ed3b0

Please sign in to comment.