Skip to content

Commit

Permalink
Fix Prometheum related method calls
Browse files Browse the repository at this point in the history
Signed-off-by: Noaaan <noaaan@hotmail.com>
  • Loading branch information
Noaaan committed Jun 11, 2024
1 parent 4264417 commit b4fee49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public PrometheumArmorItem(ArmorMaterial material, Type type, Settings settings)

@Override
public void inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected) {
if (!world.isClient()) PrometheumToolSet.tickAutoRepair(stack, world.getRandom());
if (!world.isClient()) PrometheumToolSet.tickAutoRepair(stack, world);
super.inventoryTick(stack, world, entity, slot, selected);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public void inventoryTick(ItemStack stack, World world, Entity entity, int slot,
stack.put(IS_ACTIVE, false);
}
if (hasUpgradeItem(stack, MythicItems.Mats.PROMETHEUM_BOUQUET)) {
PrometheumToolSet.tickAutoRepair(stack, world.getRandom());
PrometheumToolSet.tickAutoRepair(stack, world);
}
}
super.inventoryTick(stack, world, entity, slot, selected);
Expand Down

0 comments on commit b4fee49

Please sign in to comment.