Skip to content

Commit

Permalink
Register Items
Browse files Browse the repository at this point in the history
Added one line to ItemGeneric to auto-register. Very important.
  • Loading branch information
DillonJettCallis committed Jan 23, 2014
1 parent 59b91c9 commit 84db5c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/redgear/core/item/ItemGeneric.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.Item;
import redgear.core.util.StringHelper;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

Expand All @@ -26,6 +27,7 @@ public class ItemGeneric extends Item {
public ItemGeneric(int Id, String name) {
super(Id);
this.name = name;
GameRegistry.registerItem(this, name);
modName = StringHelper.parseModAsset();
}

Expand Down

0 comments on commit 84db5c2

Please sign in to comment.