Fixing the ritual diviner.

This commit is contained in:
WayofTime 2015-05-11 21:46:51 -04:00
parent 4470eb3178
commit 61cb569ffb

View file

@ -323,8 +323,10 @@ public class ItemRitualDiviner extends EnergyItems implements IRitualDiviner
NBTTagCompound tag = stack.getTagCompound(); NBTTagCompound tag = stack.getTagCompound();
if(tag == null || !tag.hasKey("location")) if(tag == null || !tag.hasKey("location"))
{ {
tag = new NBTTagCompound(); // tag = new NBTTagCompound();
stack.setTagCompound(tag); // stack.setTagCompound(tag);
this.setStoredLocation(stack, new Int3(0,0,0));
return;
} }
NBTTagCompound locTag = (NBTTagCompound)tag.getTag("location"); NBTTagCompound locTag = (NBTTagCompound)tag.getTag("location");