@@ -62,6 +62,9 @@ public class MythrilDrill extends PickaxeItem {
62
62
* A fully fueled drill should last 30 minutes
63
63
*/
64
64
public static final int MAX_FUEL = 1000 ;
65
+ /**
66
+ * Each piece of Morkite will fuel the drill by this constant worth of units
67
+ */
65
68
public static final int FUEL_CONSTANT = 10 ;
66
69
67
70
public MythrilDrill (ToolMaterial material , int attackDamage , float attackSpeed , Settings settings ) {
@@ -135,7 +138,7 @@ public boolean onClicked(ItemStack drill, ItemStack cursorStack, Slot slot, Clic
135
138
// If right-clicking with Morkite on Drill, try to fuel it
136
139
if (cursorStack .getItem ().equals (MythicItems .Mats .MORKITE )) {
137
140
138
- // Dont bother interacting if the Drills fuel is full
141
+ // Don't bother interacting if the Drills fuel is full
139
142
if (drill .get (FUEL ).equals (MAX_FUEL )) return false ;
140
143
141
144
// Greedily take all the morkite if we can, otherwise calculate how much to take
@@ -217,7 +220,8 @@ public void appendTooltip(ItemStack stack, @Nullable World world, List<Text> too
217
220
218
221
@ Override
219
222
public void inventoryTick (ItemStack stack , World world , Entity entity , int slot , boolean selected ) {
220
- if (!world .isClient && hasFuel (stack ) && isActive (stack ) && MathHelper .floor (world .getTime ()) % (4 * FUEL_CONSTANT ) == 1 ) {
223
+ if (!world .isClient && hasFuel (stack ) && isActive (stack ) && world .getTime () % (4 * FUEL_CONSTANT ) == 1 ) {
224
+ System .out .println (world .getTime ());
221
225
stack .put (FUEL , stack .get (FUEL ) - 1 );
222
226
}
223
227
if (!hasFuel (stack )) {
0 commit comments