Changed name and fixed block update issues when setting door rotation

Also improved random rift code

Signed-off-by: StevenRS11 <stevenrs11@aol.com>
This commit is contained in:
StevenRS11
2013-04-01 16:45:16 -04:00
parent d3123a33f2
commit 19b099479f
38 changed files with 64 additions and 51 deletions

View File

@@ -228,34 +228,27 @@ public class DimData implements Serializable
public ArrayList<LinkData> printAllLinkData()
{
ArrayList links = new ArrayList();
Iterator itr= this.linksInThisDim.keySet().iterator();
while (itr.hasNext())
if(this.linksInThisDim==null)
{
HashMap first = this.linksInThisDim.get((Integer)itr.next());
Iterator itrfirst= first.keySet().iterator();
while (itrfirst.hasNext())
{
HashMap second = (HashMap) first.get((Integer)itrfirst.next());
Iterator itrsecond= second.keySet().iterator();
while (itrsecond.hasNext())
{
//TODO make a for(each : in) loops, and make it so that it returns the links instead of printing them
LinkData link = (LinkData) second.get((Integer)itrsecond.next());
links.add(link);
}
}
return links;
}
for(HashMap<Integer, HashMap<Integer, LinkData>> first : this.linksInThisDim.values())
{
for(HashMap<Integer, LinkData> second : first.values())
{
for(LinkData linkData :second.values())
{
links.add(linkData);
}
}
}
return links;
}