Current modification

This commit is contained in:
Waterpicker 2017-01-19 00:51:22 -06:00
parent 3ffbe2ad03
commit 8624934d26
2 changed files with 5 additions and 3 deletions
src/main/java/com/zixiken/dimdoors

View file

@ -121,6 +121,6 @@ public class RiftRegistry {
} }
public void teleportEntityToRift(Entity entity, int pairedRiftID) { public void teleportEntityToRift(Entity entity, int pairedRiftID) {
TeleportHelper.teleport(entity, getRiftLocation(pairedRiftID)); TeleportHelper.teleport(entity, ((DDTileEntityBase) getRiftLocation(pairedRiftID).getTileEntity()).getTeleportTarget());
} }
} }

View file

@ -1,5 +1,7 @@
package com.zixiken.dimdoors.tileentities; package com.zixiken.dimdoors.tileentities;
import com.zixiken.dimdoors.blocks.BlockDimDoor;
import com.zixiken.dimdoors.shared.Location;
import com.zixiken.dimdoors.shared.RiftRegistry; import com.zixiken.dimdoors.shared.RiftRegistry;
import java.util.Random; import java.util.Random;
import net.minecraft.entity.Entity; import net.minecraft.entity.Entity;
@ -57,12 +59,12 @@ public class TileEntityDimDoor extends DDTileEntityBase {
return rgbaColor; return rgbaColor;
} }
/*@Override @Override
public Location getTeleportTarget() { public Location getTeleportTarget() {
EnumFacing facing = getWorld().getBlockState(getPos()).getValue(BlockDimDoor.FACING); EnumFacing facing = getWorld().getBlockState(getPos()).getValue(BlockDimDoor.FACING);
return new Location(world, pos.offset(facing)); return new Location(world, pos.offset(facing));
}*/ }
@Override @Override
public boolean tryTeleport(Entity entity) { public boolean tryTeleport(Entity entity) {