Skip to content

Commit

Permalink
Smaller cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Noaaan committed Jan 25, 2025
1 parent 9ea2441 commit 1957bfd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions PATCHNOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ It grants you Beacon Power II, which works like Haste II plus Water Breathing.
- Needs further testing
- Fixed a bug where Branding would not apply
- Fixed Aquarium and Tidesinger Underwater Mining Speed bonuses
- Aquarium Tools now grant +100% underwater mining speeds
- Aquarium Tools now grants +100% underwater mining speed
- Aquarium Helmet now grants +100% underwater mining speed
- Tidesinger Tools now grant +100% underwater mining speeds
- Tidesinger Tools now grants +150% underwater mining speed

# 0.20.2

Expand Down
1 change: 0 additions & 1 deletion src/main/java/nourl/mythicmetals/MythicMetals.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public void onInitialize() {
FieldRegistrationHandler.register(MythicItems.Mats.class, MOD_ID, false);
FieldRegistrationHandler.register(MythicItems.Templates.class, MOD_ID, false);
if (FabricLoader.getInstance().isDevelopmentEnvironment()) {
//FieldRegistrationHandler.register(IndevBlocks.class, MOD_ID, false);
FieldRegistrationHandler.register(MythicItems.ParticleSticks.class, MOD_ID, false);
RegisterPointOfInterests.init();
}
Expand Down
17 changes: 8 additions & 9 deletions src/main/java/nourl/mythicmetals/item/tools/ToolSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ protected HoeItem makeHoe(ToolMaterial material, int damage, float speed, Item.S
return new HoeItem(material, settings.component(DataComponentTypes.ATTRIBUTE_MODIFIERS, createAttributeModifiers(material, damage, speed)));
}

/**
* Returns a set of all the ToolItems that make this toolset
*
* @return List of ToolItems in order: Sword, Axe, Pickaxe, Shovel, Hoe
*/
public List<ToolItem> get() {
return List.of(sword, axe, pickaxe, shovel, hoe);
}

public SwordItem getSword() {
return sword;
Expand All @@ -103,15 +111,6 @@ public List<Float> getAttackSpeed() {
return attackSpeed;
}

/**
* Returns a set of all the ToolItems that make this toolset
*
* @return List of ToolItems in order: Sword, Pickaxe, Axe, Shovel, Hoe
*/
public List<ToolItem> get() {
return List.of(sword, axe, pickaxe, shovel, hoe);
}

public static AttributeModifiersComponent createAttributeModifiers(double damage, float speed) {
if (speed < 0.0f) {
speed = 0;
Expand Down

0 comments on commit 1957bfd

Please sign in to comment.