Made respawning in limbo much less nice.

Takes entrance coords and THEN adds the spawnFuzz. Its much closer to
how it used to be.
This commit is contained in:
StevenRS11
2013-10-01 16:20:07 -04:00
parent 491dc3b615
commit ca07a38eff
3 changed files with 9 additions and 10 deletions

View File

@@ -79,7 +79,7 @@ public class EventHookContainer
player.inventory.clearInventory(-1, -1);
}
ChunkCoordinates coords = LimboProvider.getLimboSkySpawn(player.worldObj.rand);
Point4D destination = new Point4D(coords.posX, coords.posY, coords.posZ, mod_pocketDim.properties.LimboDimensionID);
Point4D destination = new Point4D((int) (coords.posX+entity.posX), coords.posY, (int) (coords.posZ+entity.posZ ), mod_pocketDim.properties.LimboDimensionID);
DDTeleporter.teleportEntity(player, destination, false);
player.setEntityHealth(player.getMaxHealth());
event.setCanceled(true);