Fixed a compile issue with accessing something i can't in the code
This commit is contained in:
parent
1aa1a7967c
commit
b515691a20
1 changed files with 3 additions and 3 deletions
|
@ -135,10 +135,10 @@ public class TileNode extends TileBase implements INodeProvider, IRotatable
|
||||||
super.readFromNBT(nbt);
|
super.readFromNBT(nbt);
|
||||||
if (nbt.hasKey("NodeSaves"))
|
if (nbt.hasKey("NodeSaves"))
|
||||||
{
|
{
|
||||||
List list = nbt.getTagList("NodeSaves").tagList;
|
NBTTagList list = nbt.getTagList("NodeSaves");
|
||||||
for (int i = 0; i < list.size(); i++)
|
for (int i = 0; i < list.tagCount(); i++)
|
||||||
{
|
{
|
||||||
Object obj = list.get(i);
|
Object obj = list.tagAt(i);
|
||||||
if (obj instanceof NBTTagCompound)
|
if (obj instanceof NBTTagCompound)
|
||||||
{
|
{
|
||||||
NBTTagCompound tag = (NBTTagCompound) obj;
|
NBTTagCompound tag = (NBTTagCompound) obj;
|
||||||
|
|
Loading…
Reference in a new issue