add null check to allow duplicate apatite removal

This commit is contained in:
chochem committed 2024-09-11 17:58:27 +01:00
1 parent c2cafd4a98
commit 05476997e1
1 file changed
+3 -1
@@ -638,9 +638,11 @@ public class ThaumcraftHelper implements IModHelper {
new ItemStack(item.getItem(), 1, ForestryHelper.BlockResource.APATITE.ordinal()),
list.copy());
item = ItemInterface.getItemStack(ForestryHelper.Name, "apatite");
ThaumcraftApi.registerObjectTag(
if(item != null) {
ThaumcraftApi.registerObjectTag(
new ItemStack(item.getItem(), 1, item.getItemDamage()),
list.copy().add(Aspect.CRYSTAL, 2));
}
list = new AspectList().add(Aspect.MOTION, 2).add(Aspect.FLIGHT, 1);
item = ItemInterface.getItemStack("beeDroneGE");