diff --git a/build.gradle b/build.gradle index 87804274..1a6c2333 100644 --- a/build.gradle +++ b/build.gradle @@ -116,8 +116,6 @@ dependencies { compileOnly fg.deobf("mezz.jei:jei-${jei_version}:api") runtimeOnly fg.deobf("mezz.jei:jei-${jei_version}") - runtimeOnly fg.deobf("cpw.mods:cpw_inventorysorter_master:18.0.0") - // You may put jars on which you depend on in ./libs or you may define them like so.. // compile "some.group:artifact:version:classifier" // compile "some.group:artifact:version" diff --git a/src/main/java/com/direwolf20/mininggadgets/client/renderer/RenderMiningLaser2.java b/src/main/java/com/direwolf20/mininggadgets/client/renderer/RenderMiningLaser2.java index 9c23b3be..3d433fe8 100644 --- a/src/main/java/com/direwolf20/mininggadgets/client/renderer/RenderMiningLaser2.java +++ b/src/main/java/com/direwolf20/mininggadgets/client/renderer/RenderMiningLaser2.java @@ -6,7 +6,6 @@ import com.direwolf20.mininggadgets.common.items.upgrade.Upgrade; import com.direwolf20.mininggadgets.common.items.upgrade.UpgradeTools; import com.mojang.blaze3d.matrix.MatrixStack; -import com.mojang.blaze3d.systems.RenderSystem; import com.mojang.blaze3d.vertex.IVertexBuilder; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.player.ClientPlayerEntity; @@ -67,7 +66,7 @@ private static void drawLasers(RenderWorldLastEvent event, Vector3d from, RayTra IVertexBuilder builder; ItemStack stack = player.getHeldItem(activeHand); - double distance = from.subtract(trace.getHitVec()).length(); + double distance = Math.max(1, from.subtract(trace.getHitVec()).length()); long gameTime = player.world.getGameTime(); double v = gameTime * speedModifier; float additiveThickness = (thickness * 3.5f) * calculateLaserFlickerModifier(gameTime); @@ -128,8 +127,8 @@ private static void drawBeam(double xOffset, double yOffset, double zOffset, IVe } float f = (MathHelper.lerp(ticks, player.prevRotationPitch, player.rotationPitch) - MathHelper.lerp(ticks, player.prevRenderArmPitch, player.renderArmPitch)); float f1 = (MathHelper.lerp(ticks, player.prevRotationYaw, player.rotationYaw) - MathHelper.lerp(ticks, player.prevRenderArmYaw, player.renderArmYaw)); - startXOffset = startXOffset + (f1 / 100000000); - startYOffset = startYOffset + (f / 100000000); + startXOffset = startXOffset + (f1 / 750); + startYOffset = startYOffset + (f / 750); Vector4f vec1 = new Vector4f(startXOffset, -thickness + startYOffset, startZOffset, 1.0F); vec1.transform(positionMatrix);