Various Updates #128
@@ -74,7 +74,10 @@ public class EventHookContainer
|
|||||||
RiftRegenerator.regenerateRiftsInAllWorlds();
|
RiftRegenerator.regenerateRiftsInAllWorlds();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.playMusicForDim(event.world);
|
if(event.world!=null)
|
||||||
|
{
|
||||||
|
this.playMusicForDim(event.world);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ForgeSubscribe
|
@ForgeSubscribe
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -73,9 +73,9 @@ public class TileEntityDimDoorGold extends TileEntityDimDoor implements IChunkLo
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
for(int chunkX = -1; chunkX<2;chunkX++)
|
for(int chunkX = -2; chunkX<3;chunkX++)
|
||||||
{
|
{
|
||||||
for(int chunkZ = -1; chunkZ<2;chunkZ++)
|
for(int chunkZ = -2; chunkZ<3;chunkZ++)
|
||||||
{
|
{
|
||||||
ForgeChunkManager.forceChunk(chunkTicket, new ChunkCoordIntPair((origin.getX()+xOffset >> 4)+chunkX, (origin.getZ()+zOffset >> 4)+chunkZ));
|
ForgeChunkManager.forceChunk(chunkTicket, new ChunkCoordIntPair((origin.getX()+xOffset >> 4)+chunkX, (origin.getZ()+zOffset >> 4)+chunkZ));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 4.0 KiB |