null check the stack before stripping
This commit is contained in:
@@ -290,7 +290,7 @@ public class CraftingPattern implements ICraftingPattern {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static ItemStack stripTags(ItemStack stack) {
|
private static ItemStack stripTags(ItemStack stack) {
|
||||||
if (stack.hasTagCompound()) {
|
if (stack != null && !stack.isEmpty() && stack.hasTagCompound()) {
|
||||||
switch (stack.getItem().getRegistryName().getResourceDomain()) {
|
switch (stack.getItem().getRegistryName().getResourceDomain()) {
|
||||||
case "mekanism":
|
case "mekanism":
|
||||||
stack.getTagCompound().removeTag("mekData");
|
stack.getTagCompound().removeTag("mekData");
|
||||||
|
|||||||
Reference in New Issue
Block a user