mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-16 18:44:42 +00:00
Merge remote-tracking branch 'lordIcocain/pattern-used-stat' into dev
This commit is contained in:
1 file changed
+13
@@ -5,6 +5,7 @@ import java.util.Objects;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import appeng.util.Platform;
|
||||
import net.minecraft.inventory.InventoryCrafting;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
@@ -204,4 +205,16 @@ public class FluidPatternDetails implements ICraftingPatternDetails, Comparable<
|
||||
}
|
||||
return stacks;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void patternJustUsed() {
|
||||
NBTTagCompound tag = Platform.openNbtData(patternStack);
|
||||
tag.setLong("lastUsed", System.currentTimeMillis());
|
||||
}
|
||||
|
||||
@Override
|
||||
public long patternLastUsed() {
|
||||
NBTTagCompound tag = Platform.openNbtData(patternStack);
|
||||
return tag.getLong("lastUsed");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user