Correct split client-server code

This commit is contained in:
Andrei Laiff authored and Andrei Antropov committed 2023-12-23 14:39:11 +02:00
1 parent db8aee2c25
commit 6e96cba6fe
7 files changed
+84 -37

No files matched your search

@@ -348,7 +348,8 @@ public class TileLevelMaintainer extends AENetworkTile
}
private ItemStack removeRecursion(ItemStack itemStack) {
if (itemStack.hasTagCompound() && itemStack.getTagCompound().hasKey(TLMTags.Stack.tagName)) {
if (itemStack != null && itemStack.hasTagCompound()
&& itemStack.getTagCompound().hasKey(TLMTags.Stack.tagName)) {
return removeRecursion(loadItemStackFromTag(itemStack));
}
return itemStack;