Working on rift remover strangeness

This commit is contained in:
StevenRS11
2014-01-19 22:15:12 -05:00
parent 8b108688f1
commit 9fe071368e
22 changed files with 6 additions and 15 deletions

View File

@@ -74,8 +74,11 @@ public class EventHookContainer
RiftRegenerator.regenerateRiftsInAllWorlds(); RiftRegenerator.regenerateRiftsInAllWorlds();
} }
if(event.world!=null)
{
this.playMusicForDim(event.world); this.playMusicForDim(event.world);
} }
}
@ForgeSubscribe @ForgeSubscribe
public void onPlayerFall(LivingFallEvent event) public void onPlayerFall(LivingFallEvent event)

View File

@@ -372,19 +372,7 @@ public abstract class NewDimData
public boolean deleteLink(int x, int y, int z) public boolean deleteLink(int x, int y, int z)
{ {
Point4D location = new Point4D(x, y, z, id); Point4D location = new Point4D(x, y, z, id);
InnerDimLink target = linkMapping.remove(location); return this.deleteLink(this.getLink(location));
if (target != null)
{
linkList.remove(target);
//Raise deletion event
//TODO why is source null here?
if(target.link!=null)
{
linkWatcher.onDeleted(target.link);
}
target.clear();
}
return (target != null);
} }
public DimLink getLink(int x, int y, int z) public DimLink getLink(int x, int y, int z)

View File

@@ -175,7 +175,7 @@ public class TileEntityRift extends TileEntity
private void closeRift() private void closeRift()
{ {
NewDimData dimension = PocketManager.getDimensionData(worldObj); NewDimData dimension = PocketManager.getDimensionData(worldObj);
if (count2 > 20 && count2 < 22) if (count2 == 20)
{ {
ArrayList<DimLink> rifts= dimension.findRiftsInRange(worldObj, 6, xCoord, yCoord, zCoord); ArrayList<DimLink> rifts= dimension.findRiftsInRange(worldObj, 6, xCoord, yCoord, zCoord);
if (rifts.size()>0) if (rifts.size()>0)

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB