Fixes Rift Signature Logic with only one-sided teleports

This commit is contained in:
ZombieHDGaming 2017-12-29 13:18:37 -05:00
parent 99bb633b64
commit abdf76d9c4

View file

@ -76,7 +76,7 @@ public class ItemRiftSignature extends Item {
World sourceWorld = source.getLocation().getWorld();
sourceWorld.setBlockState(source.location.getPos(), ModBlocks.RIFT.getDefaultState());
TileEntityRift rift2 = (TileEntityRift) source.getLocation().getTileEntity();
rift2.setSingleDestination(new GlobalDestination(source.getLocation()));
rift2.setSingleDestination(new GlobalDestination(rift1.getLocation()));
rift2.setRotation(source.getYaw(), 0);
rift2.register();