[O] Optimize render lag
This commit is contained in:
@@ -36,7 +36,6 @@ import net.minecraft.entity.Entity;
|
|||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
import net.minecraft.util.math.AxisAlignedBB;
|
import net.minecraft.util.math.AxisAlignedBB;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.util.math.MathHelper;
|
|
||||||
import net.minecraft.util.math.shapes.VoxelShape;
|
import net.minecraft.util.math.shapes.VoxelShape;
|
||||||
import net.minecraft.util.math.shapes.VoxelShapes;
|
import net.minecraft.util.math.shapes.VoxelShapes;
|
||||||
|
|
||||||
@@ -224,7 +223,7 @@ public final class PathRenderer implements IRenderer, Helper {
|
|||||||
double minZ, maxZ;
|
double minZ, maxZ;
|
||||||
double minY, maxY;
|
double minY, maxY;
|
||||||
double y1, y2;
|
double y1, y2;
|
||||||
double y = MathHelper.cos((float) (((float) ((System.nanoTime() / 100000L) % 20000L)) / 20000F * Math.PI * 2));
|
double y = 1;
|
||||||
if (goal instanceof IGoalRenderPos) {
|
if (goal instanceof IGoalRenderPos) {
|
||||||
BlockPos goalPos = ((IGoalRenderPos) goal).getGoalPos();
|
BlockPos goalPos = ((IGoalRenderPos) goal).getGoalPos();
|
||||||
minX = goalPos.getX() + 0.002 - renderPosX;
|
minX = goalPos.getX() + 0.002 - renderPosX;
|
||||||
|
|||||||
Reference in New Issue
Block a user