Fix thaumcraft crash when putting empty phial/jar into drawers

This commit is contained in:
Justin Aquadro committed 2015-03-25 18:42:01 -04:00
1 parent 6378b63fe7
commit cb37788c5a
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ buildscript {
apply plugin: 'forge'
version = "1.7.10-1.3.4"
version = "1.7.10-1.3.5"
group= "com.jaquadro.minecraft.storagedrawers" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "StorageDrawers"
@@ -74,7 +74,11 @@ public class Thaumcraft extends IntegrationModule
}
private void setDrawerAspect (IDrawer drawer, ItemStack itemStack) {
NBTTagList tagAspects = itemStack.getTagCompound().getTagList("Aspects", Constants.NBT.TAG_COMPOUND);
NBTTagCompound tag = itemStack.getTagCompound();
if (tag == null)
return;
NBTTagList tagAspects = tag.getTagList("Aspects", Constants.NBT.TAG_COMPOUND);
if (tagAspects == null || tagAspects.tagCount() == 0)
return;