Skip to content

Commit

Permalink
Squash Two Bugs...
Browse files Browse the repository at this point in the history
... with one commit:
- Fixed the missing armor texture when equipped
- Fixed armor items being stackable
  • Loading branch information
EmpressAutumn committed Jul 24, 2024
1 parent a2a77ae commit cfc5aa8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions src/main/java/com/atom596/titanium/item/TitaniumItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
import net.minecraft.util.Rarity;

public class TitaniumItems {
public static final ToolItem TITANIUM_SHOVEL = new ShovelItem(TitaniumToolMaterial.INSTANCE, new Item.Settings());
public static final ToolItem TITANIUM_SWORD = new SwordItem(TitaniumToolMaterial.INSTANCE, new Item.Settings());
public static final ToolItem TITANIUM_PICKAXE = new PickaxeItem(TitaniumToolMaterial.INSTANCE, new Item.Settings());
public static final ToolItem TITANIUM_AXE = new AxeItem(TitaniumToolMaterial.INSTANCE, new Item.Settings());
public static final ToolItem TITANIUM_HOE = new HoeItem(TitaniumToolMaterial.INSTANCE, new Item.Settings());
public static final ArmorItem TITANIUM_HELMET = new ArmorItem(TitaniumArmorMaterial.INSTANCE, ArmorItem.Type.HELMET, new Item.Settings());
public static final ArmorItem TITANIUM_CHESTPLATE = new ArmorItem(TitaniumArmorMaterial.INSTANCE, ArmorItem.Type.CHESTPLATE, new Item.Settings());
public static final ArmorItem TITANIUM_LEGGINGS = new ArmorItem(TitaniumArmorMaterial.INSTANCE, ArmorItem.Type.LEGGINGS, new Item.Settings());
public static final ArmorItem TITANIUM_BOOTS = new ArmorItem(TitaniumArmorMaterial.INSTANCE, ArmorItem.Type.BOOTS, new Item.Settings());
public static final Item TITANIUM_SHOVEL = new ShovelItem(TitaniumToolMaterial.INSTANCE, new Item.Settings());
public static final Item TITANIUM_SWORD = new SwordItem(TitaniumToolMaterial.INSTANCE, new Item.Settings());
public static final Item TITANIUM_PICKAXE = new PickaxeItem(TitaniumToolMaterial.INSTANCE, new Item.Settings());
public static final Item TITANIUM_AXE = new AxeItem(TitaniumToolMaterial.INSTANCE, new Item.Settings());
public static final Item TITANIUM_HOE = new HoeItem(TitaniumToolMaterial.INSTANCE, new Item.Settings());
public static final Item TITANIUM_HELMET = new ArmorItem(TitaniumArmorMaterial.INSTANCE, ArmorItem.Type.HELMET, new Item.Settings().maxCount(1));
public static final Item TITANIUM_CHESTPLATE = new ArmorItem(TitaniumArmorMaterial.INSTANCE, ArmorItem.Type.CHESTPLATE, new Item.Settings().maxCount(1));
public static final Item TITANIUM_LEGGINGS = new ArmorItem(TitaniumArmorMaterial.INSTANCE, ArmorItem.Type.LEGGINGS, new Item.Settings().maxCount(1));
public static final Item TITANIUM_BOOTS = new ArmorItem(TitaniumArmorMaterial.INSTANCE, ArmorItem.Type.BOOTS, new Item.Settings().maxCount(1));
public static final Item RAW_TITANIUM = new Item(new Item.Settings());
public static final Item TITANIUM_INGOT = new Item(new Item.Settings());
public static final Item MUSIC_DISC_AMETHYST = new MusicDiscItem(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
public class TitaniumToolMaterial implements ToolMaterial {
@Override
public int getDurability() {
return 512;
return 768;
}

@Override
public float getMiningSpeedMultiplier() {
return 9.0f;
return 7.2f;
}

@Override
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
}
],
"depends": {
"fabricloader": ">=0.15.6",
"minecraft": "~1.20.4",
"java": ">=17",
"fabricloader": ">=0.15.11",
"minecraft": "1.20.5",
"java": ">=21",
"fabric-api": "*"
}
}

0 comments on commit cfc5aa8

Please sign in to comment.