Skip to content

Commit

Permalink
3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
qouteall committed Jul 16, 2023
1 parent 430e127 commit b9b0386
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 77 deletions.
70 changes: 4 additions & 66 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ allprojects {
url = "https://maven.parchmentmc.org"
}

// for cardinal components that fusions gravity api uses
// for cardinal components that gravity api uses
maven {
name = 'Ladysnake Mods'
url = 'https://ladysnake.jfrog.io/artifactory/mods'
name = 'Ladysnake'
url = 'https://maven.ladysnake.org/releases'
}

// geckolib, for testing with portal gun
Expand Down Expand Up @@ -150,16 +150,11 @@ allprojects {
// implementation 'io.github.douira:glsl-transformer:2.0.0-pre13' // for iris
// implementation 'org.antlr:antlr4-runtime:4.11.1' // for iris

modImplementation("com.github.qouteall:GravityChanger:74c7676f") {
modImplementation("com.github.qouteall:GravityChanger:v1.0.2-mc1.20.1") {
transitive = false
exclude(group: "net.fabricmc.fabric-api")
}

// modImplementation("qouteall:Gravity-Api:1.0.2-mc1.20.1") {
// transitive = false
// exclude(group: "net.fabricmc.fabric-api")
// }

modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-base:5.2.1"
modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-entity:5.2.1"
modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-world:5.2.1"
Expand Down Expand Up @@ -310,61 +305,4 @@ task printClasspath {
}
}

//task additionalCopy(type: Copy) {
// dependsOn(remapJar)
// from file("${project.buildDir}/libs/$archivesBaseName-${version}-mc${project.minecraft_version}-fabric.jar")
// into file("${project.buildDir}/to_upload")
// rename { n -> "$archivesBaseName-${version}-mc${project.minecraft_version}-fabric.jar" }
//}


// modrinth

//modrinth {
// token = System.getenv("MODRINTH")
// // This is the default. Remember to have the MODRINTH_TOKEN environment variable set or else this will fail, or set it to whatever you want - just make sure it stays private!
// projectId = "zJpHMkdD"
// versionNumber = "${project.version}-${project.minecraft_version}"
// // You don't need to set this manually. Will fail if Modrinth has this version already
// versionType = "alpha" // This is the default -- can also be `beta` or `alpha`
// uploadFile = remapJar
// gameVersions = ["${project.minecraft_version}"] // Must be an array, even with only one version
// loaders = ["fabric"] // Must also be an array - no need to specify this if you're using Loom or ForgeGradle
// dependencies { // A special DSL for creating dependencies
// // scope.type
// // The scope can be `required`, `optional`, or `incompatible`
// // The type can either be `project` or `version`
// required.project "P7dR8mSH" // Creates a new required dependency on Fabric API
// }
//}

//curseforge {
// if (System.getenv().CURSEFORGE_API_KEY) {
// apiKey = System.getenv().CURSEFORGE_API_KEY
//// System.out.println("Curseforge api key found")
// } else {
//// System.out.println("Curseforge api key not found")
// }
//
// project {
// id = "332273"
// changelog = "No changelog provided"
// releaseType = "beta"
// addGameVersion "1.19.4"
// addGameVersion "Fabric"
//
// mainArtifact(remapJar) {
// displayName = "${project.version}-mc${project.minecraft_version}"
// }
//
// afterEvaluate {
// uploadTask.dependsOn("remapJar")
// }
// }
//
// options {
// forgeGradleIntegration = false
// }
//}

// Enable ZGC: -XX:+UseZGC
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx2G
org.gradle.parallel=false

# Mod Properties
mod_version=3.1.0
mod_version=3.1.1
maven_group=qouteall
archives_base_name=immersive-portals

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ public class RenderStates {

public static Camera originalCamera;

public static int originalCameraLightPacked;

public static String debugText;

public static boolean isLaggy = false;
Expand Down Expand Up @@ -108,9 +106,6 @@ public static void updatePreRenderInfo(
basicProjectionMatrix = null;
originalCamera = MyRenderHelper.client.gameRenderer.getMainCamera();

originalCameraLightPacked = MyRenderHelper.client.getEntityRenderDispatcher()
.getPackedLightCoords(MyRenderHelper.client.cameraEntity, getPartialTick());

updateIsLaggy();

debugText = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ else if (selectsVerticalEdge) {
);
}
else {
Component planeText = Component.translatable("imm_ptl.wand.on_plane", planeInfo.getSecond());
Component planeText = Component.translatable(
"imm_ptl.wand.on_plane", planeInfo.getSecond().withStyle(ChatFormatting.GOLD)
);

ImmPtlCustomOverlay.putText(
Component.translatable(
Expand Down Expand Up @@ -530,7 +532,7 @@ else if (sphere != null) {
Component.literal("") :
Component.translatable(
"imm_ptl.wand.on_plane",
draggingContext.planeText().withStyle(ChatFormatting.GOLD)
draggingContext.planeText()
);

MutableComponent undoPrompt = Component.literal("\n").append(Component.translatable(
Expand Down Expand Up @@ -662,7 +664,7 @@ private static void startDragging() {
plane,
null,
draggingInfo,
info.getSecond(),
info.getSecond().withStyle(ChatFormatting.GOLD),
portal.getPortalState()
);
}
Expand Down Expand Up @@ -975,7 +977,7 @@ public static void renderRect(
}

private static double getLockExtraScale(UnilateralPortalState rect) {
return Math.sqrt(rect.width() * rect.height()) * 0.1;
return Math.sqrt(rect.width() * rect.height()) * 0.2;
}

private static void renderWidthHeightLock(
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"depends": {
"fabricloader": ">=0.7.4",
"fabric-api": ">=0.28.1",
"minecraft": "1.20.1",
"minecraft": ["1.20.1", "1.20"],
"imm_ptl_core": "*",
"q_misc_util": "*"
},
Expand Down

0 comments on commit b9b0386

Please sign in to comment.