aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kubatech/loaders
diff options
context:
space:
mode:
authorJakub <53441451+kuba6000@users.noreply.github.com>2024-09-04 21:45:17 +0200
committerGitHub <noreply@github.com>2024-09-04 19:45:17 +0000
commit5b5311ab6cda52d33d60c23effad8a1f811e2f0f (patch)
tree1ac998acc0d1f4b0ac3a6cb8a5ba94ef964c11c4 /src/main/java/kubatech/loaders
parentd00d97c5fd41f8c4751249674452425aaad2d5f7 (diff)
downloadGT5-Unofficial-5b5311ab6cda52d33d60c23effad8a1f811e2f0f.tar.gz
GT5-Unofficial-5b5311ab6cda52d33d60c23effad8a1f811e2f0f.tar.bz2
GT5-Unofficial-5b5311ab6cda52d33d60c23effad8a1f811e2f0f.zip
Remove hard dep on mobs-info (#3053)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/kubatech/loaders')
-rw-r--r--src/main/java/kubatech/loaders/TCLoader.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main/java/kubatech/loaders/TCLoader.java b/src/main/java/kubatech/loaders/TCLoader.java
index 500dab7f3e..75113eccb8 100644
--- a/src/main/java/kubatech/loaders/TCLoader.java
+++ b/src/main/java/kubatech/loaders/TCLoader.java
@@ -32,9 +32,8 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
-import com.kuba6000.mobsinfo.api.utils.ItemID;
-
import cpw.mods.fml.common.registry.GameRegistry;
+import gregtech.api.util.GTUtility.ItemId;
import kubatech.api.enums.ItemList;
import kubatech.loaders.item.items.ItemTeaUltimate;
import thaumcraft.api.ThaumcraftApi;
@@ -84,8 +83,8 @@ public class TCLoader {
ItemList.MilkTea.get(1), ItemList.OolongTea.get(1), ItemList.PeppermintTea.get(1), ItemList.PuerhTea.get(1),
ItemList.WhiteTea.get(1), ItemList.YellowTea.get(1) };
- final HashSet<ItemID> componentsHashed = Arrays.stream(components)
- .map(stack -> ItemID.createNoCopy(stack, true, false, true))
+ final HashSet<ItemId> componentsHashed = Arrays.stream(components)
+ .map(ItemId::createWithoutNBT)
.collect(Collectors.toCollection(HashSet::new));
// noinspection unchecked
@@ -109,8 +108,8 @@ public class TCLoader {
if (!ThaumcraftApiHelper.isResearchComplete(player.getCommandSenderName(), this.research))
return false;
if (componentsHashed.size() > input.size()) return false;
- HashSet<ItemID> hashedInputs = input.stream()
- .map(stack -> ItemID.createNoCopy(stack, true, false, true))
+ HashSet<ItemId> hashedInputs = input.stream()
+ .map(ItemId::createWithoutNBT)
.collect(Collectors.toCollection(HashSet::new));
return hashedInputs.containsAll(componentsHashed);
}