Current modification
This commit is contained in:
parent
3ffbe2ad03
commit
8624934d26
2 changed files with 5 additions and 3 deletions
|
@ -121,6 +121,6 @@ public class RiftRegistry {
|
|||
}
|
||||
|
||||
public void teleportEntityToRift(Entity entity, int pairedRiftID) {
|
||||
TeleportHelper.teleport(entity, getRiftLocation(pairedRiftID));
|
||||
TeleportHelper.teleport(entity, ((DDTileEntityBase) getRiftLocation(pairedRiftID).getTileEntity()).getTeleportTarget());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package com.zixiken.dimdoors.tileentities;
|
||||
|
||||
import com.zixiken.dimdoors.blocks.BlockDimDoor;
|
||||
import com.zixiken.dimdoors.shared.Location;
|
||||
import com.zixiken.dimdoors.shared.RiftRegistry;
|
||||
import java.util.Random;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
@ -57,12 +59,12 @@ public class TileEntityDimDoor extends DDTileEntityBase {
|
|||
return rgbaColor;
|
||||
}
|
||||
|
||||
/*@Override
|
||||
@Override
|
||||
public Location getTeleportTarget() {
|
||||
EnumFacing facing = getWorld().getBlockState(getPos()).getValue(BlockDimDoor.FACING);
|
||||
|
||||
return new Location(world, pos.offset(facing));
|
||||
}*/
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean tryTeleport(Entity entity) {
|
||||
|
|
Loading…
Reference in a new issue