This commit is contained in:
Runemoro 2017-12-29 20:59:18 -05:00
commit 90d86f8e03
2 changed files with 3 additions and 3 deletions

View file

@ -141,7 +141,7 @@ public class TileEntityFloatingRiftRenderer extends TileEntitySpecialRenderer<Ti
new Vector4f(0.5f,0.5f,-0.5f,0.5f)
};
private static double angle = 0;
private double angle = 0;
/**
* Renders the rift.
@ -177,7 +177,7 @@ public class TileEntityFloatingRiftRenderer extends TileEntitySpecialRenderer<Ti
}
private double update(float partialTicks) {
angle = (angle + 3 * partialTicks) % 360;
angle = (angle + 1 * partialTicks) % 360;
return angle;
}

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();