mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-22 05:02:12 +00:00
Fix thaumcraft crash when putting empty phial/jar into drawers
This commit is contained in:
1 parent
6378b63fe7
commit
cb37788c5a
2 files changed
+6
-2
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user