Skip to content

Commit

Permalink
Reset custom use duration timer on start
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Feb 8, 2024
1 parent 0e41f85 commit b4fe335
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ public static void initItemUseMaps()
UniversalTweaks.LOGGER.info("Item use duration map initialized");
}

@SubscribeEvent(priority = EventPriority.HIGHEST)
public static void utCustomUseDurationStart(LivingEntityUseItemEvent.Start event)
{
used = 0;
}

@SubscribeEvent(priority = EventPriority.HIGHEST)
public static void utCustomUseDurationTick(LivingEntityUseItemEvent.Tick event)
{
Expand Down

0 comments on commit b4fe335

Please sign in to comment.