Skip to content

Commit

Permalink
Remove the stickhelmet (#25)
Browse files Browse the repository at this point in the history
* remove cursed helmet sticks

* and restrict oredict registration
  • Loading branch information
chochem authored Oct 4, 2024
1 parent c32b0dc commit a1ff81e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/main/java/mods/natura/common/NContent.java
Original file line number Diff line number Diff line change
Expand Up @@ -1737,10 +1737,14 @@ public void addOredictSupport() {

if (!Loader.isModLoaded("ExtraTiC")) {
// Wooden Planks
OreDictionary.registerOre("plankWood", new ItemStack(planks, 1, OreDictionary.WILDCARD_VALUE));
for (int i = 0; i < Planks.textureNames.length; i++) {
OreDictionary.registerOre("plankWood", new ItemStack(planks, 1, i));
}

// Wooden Sticks
OreDictionary.registerOre("stickWood", new ItemStack(stickItem, 1, OreDictionary.WILDCARD_VALUE));
for (int i = 0; i < StickItem.textureNames.length; i++) {
OreDictionary.registerOre("stickWood", new ItemStack(stickItem, 1, i));
}
} else {
int[] toRegister = { 0, 1, 3, 5, 6, 7, 8, 9, 10 };
for (int i : toRegister) {
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/mods/natura/items/StickItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
Expand All @@ -26,7 +25,6 @@ public StickItem() {
@SideOnly(Side.CLIENT)
@Override
public IIcon getIconFromDamage(int meta) {
if (meta >= textureNames.length) return Items.leather_helmet.getIconFromDamage(meta);
return icons[meta];
}

Expand Down

0 comments on commit a1ff81e

Please sign in to comment.