Skip to content

Commit

Permalink
Reduce fuel gained from the Prometheum Drill Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Noaaan committed Aug 9, 2024
1 parent 86254da commit 29d61b2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import nourl.mythicmetals.data.MythicTags;
import nourl.mythicmetals.item.MythicItems;
import nourl.mythicmetals.misc.RegistryHelper;
import org.joml.Math;

import java.util.List;

Expand Down Expand Up @@ -183,7 +184,9 @@ public void inventoryTick(ItemStack stack, World world, Entity entity, int slot,
if (!stack.contains(MythicDataComponents.PROMETHEUM)) {
stack.set(MythicDataComponents.PROMETHEUM, PrometheumComponent.DEFAULT);
}
stack.set(MythicDataComponents.DRILL, drillComponent.increase(drillComponent.fuel()));
if (Math.floor(world.getTime() % 20) == 0.0) {
stack.set(MythicDataComponents.DRILL, drillComponent.increase(drillComponent.fuel()));
}
PrometheumComponent.tickAutoRepair(stack, world);
}
}
Expand Down

0 comments on commit 29d61b2

Please sign in to comment.