Skip to content

Commit

Permalink
Prep fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Apr 18, 2024
1 parent 2b1a45b commit 6bad887
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
3 changes: 1 addition & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ object Constants {
const val IS_SHARED_BETA: Boolean = false
const val ACTIVATE_RENDERDOC: Boolean = false
const val BETA_TAG: String = "DH Support"
const val BETA_VERSION = 2
const val BETA_VERSION = 4

const val SODIUM_VERSION: String = "mc1.20.4-0.5.8"
}
Expand Down Expand Up @@ -153,7 +153,6 @@ dependencies {
modRuntimeOnly(fabricApi.module("fabric-rendering-data-attachment-v1", Constants.FABRIC_API_VERSION))
modRuntimeOnly(fabricApi.module("fabric-resource-loader-v0", Constants.FABRIC_API_VERSION))
modRuntimeOnly(fabricApi.module("fabric-block-view-api-v2", Constants.FABRIC_API_VERSION))
modRuntimeOnly(fabricApi.module("fabric-block-view-api-v2", Constants.FABRIC_API_VERSION))

modCompileOnly(files(projectDir.resolve("DHApi.jar")))

Expand Down
7 changes: 0 additions & 7 deletions src/main/java/net/irisshaders/iris/Iris.java
Original file line number Diff line number Diff line change
Expand Up @@ -530,13 +530,6 @@ public static void reload() throws IOException {
if (Minecraft.getInstance().level != null) {
Iris.getPipelineManager().preparePipeline(Iris.getCurrentDimension());
}

if (loadedIncompatiblePack() && Minecraft.getInstance().player != null) {
Minecraft.getInstance().gui.setTimes(10, 70, 140);
Iris.logger.warn("Incompatible pack for DH!");
Minecraft.getInstance().gui.setTitle(Component.literal("This pack doesn't have DH support").withStyle(ChatFormatting.BOLD, ChatFormatting.RED));
Minecraft.getInstance().gui.setSubtitle(Component.literal("Distant Horizons (DH) chunks won't show up. This isn't a bug, get another shader.").withStyle(ChatFormatting.RED));
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ public static IrisLodRenderProgram createProgram(String name, boolean isShadowPa
// Noise Uniforms

public int tryGetUniformLocation2(CharSequence name) {
int i = GL32.glGetUniformLocation(this.id, name);
if (i == -1) Iris.logger.warn("Couldn't find " + name);
return i;
return GL32.glGetUniformLocation(this.id, name);
}

public void setUniform(int index, Matrix4f matrix) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ public void print() {
return !FilenameUtils.getExtension(s.toString()).contains("properties");
})) {
stream.forEach(path -> {
Iris.logger.warn(path.toString());

try {
Files.delete(path);
} catch (IOException e) {
Expand Down

0 comments on commit 6bad887

Please sign in to comment.