Skip to content

Commit

Permalink
Temporarily disable camera thing because it's a bit broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jun 3, 2023
1 parent 3c81c68 commit 7b8509f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ dependencies {

modCompileOnly("dev.lambdaurora:lambdynamiclights:2.2.0+1.19.2")

modCompileOnly("com.github.Virtuoel:Pehkui:3.6.3", {
modCompileOnly("com.github.Virtuoel:Pehkui:3.6.3") {
exclude(group = "net.fabricmc.fabric-api")
})
}

modCompileOnly("dev.lazurite:rayon-fabric:1.6.1")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import com.fusionflux.portalcubed.packet.PortalCubedServerPackets;
import com.fusionflux.portalcubed.sound.PortalCubedSounds;
import com.fusionflux.portalcubed.util.PortalCubedComponents;
import com.fusionflux.portalcubed.util.PortalDirectionUtils;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.*;
import com.unascribed.lib39.recoil.api.RecoilEvents;
Expand Down Expand Up @@ -65,7 +64,6 @@
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.Matrix4f;
import net.minecraft.util.math.Vec3d;
import org.jetbrains.annotations.Nullable;
import org.lwjgl.opengl.GL11;
import org.quiltmc.loader.api.ModContainer;
Expand Down Expand Up @@ -415,14 +413,14 @@ Items.LIGHT, new Identifier("level")
}
});

RecoilEvents.CAMERA_SETUP.register((camera, cameraEntity, perspective, tickDelta, ctrl) -> {
final Vec3d startPos = cameraEntity.getLerpedPos(tickDelta);
final Vec3d endPos = ctrl.getPos();
final Vec3d transformed = PortalDirectionUtils.simpleTransformPassingVector(cameraEntity, startPos, endPos);
if (transformed != null) {
ctrl.setPos(transformed);
}
});
// RecoilEvents.CAMERA_SETUP.register((camera, cameraEntity, perspective, tickDelta, ctrl) -> {
// final Vec3d startPos = cameraEntity.getLerpedPos(tickDelta);
// final Vec3d endPos = ctrl.getPos();
// final Vec3d transformed = PortalDirectionUtils.simpleTransformPassingVector(cameraEntity, startPos, endPos);
// if (transformed != null) {
// ctrl.setPos(transformed);
// }
// });

try {
final NbtCompound compound = NbtIo.readCompressed(GLOBAL_ADVANCEMENTS_FILE);
Expand Down

0 comments on commit 7b8509f

Please sign in to comment.