Skip to content

Commit

Permalink
Fix dagger potion tooltip.
Browse files Browse the repository at this point in the history
The only affects the tooltip, the gameplay aspect always worked normally.
  • Loading branch information
Provismet committed Apr 30, 2024
1 parent ee2c961 commit e92de18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.20.4+build.3
loader_version=0.15.6

# Mod Properties
mod_version=1.0.1
mod_version=1.0.2
maven_group=com.provismet
archives_base_name=additional-armoury
modid=additional-armoury
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public ItemStack getDefaultStack () {

@Override
public void appendTooltip (ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) {
PotionUtil.buildTooltip(stack, tooltip, POTION_DURATION_MOD, attackDamage);
PotionUtil.buildTooltip(stack, tooltip, POTION_DURATION_MOD, world == null ? 20.0f : world.getTickManager().getTickRate());

if (EnchantmentHelper.getLevel(AAEnchantments.ADHESIVE, stack) == 0 && PotionUtil.getPotion(stack) != Potions.EMPTY)
tooltip.add(Text.translatable("tooltip.additional-armoury.dagger_uses", this.getCurrentPotionUses(stack)));
Expand Down

0 comments on commit e92de18

Please sign in to comment.