This commit is contained in:
kirillsaint 2023-06-28 20:58:23 +06:00
parent cd44999f7c
commit 8f0d75142d
6 changed files with 47 additions and 1 deletions

20
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Run Gradle on PRs
on: [push
jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew setupDecompWorkspace clean build

View File

@ -21,7 +21,7 @@ apply plugin: 'net.minecraftforge.gradle.tweaker-client'
apply plugin: 'org.spongepowered.mixin' apply plugin: 'org.spongepowered.mixin'
apply plugin: 'java' apply plugin: 'java'
version = "1.0" version = "2.0.0"
group= "net.silentclient" // http://maven.apache.org/guides/mini/guide-naming-conventions.html group= "net.silentclient" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "client" archivesBaseName = "client"
@ -60,6 +60,7 @@ dependencies {
} }
compile('org.spongepowered:mixin:0.7.11-SNAPSHOT') compile('org.spongepowered:mixin:0.7.11-SNAPSHOT')
embed fileTree(include: ['*.jar'], dir: './libs')
} }
mixin { mixin {

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,24 @@
package net.silentclient.client.mixin.mixins;
import net.minecraft.client.gui.GuiIngame;
import net.minecraft.client.renderer.GlStateManager;
import net.silentclient.client.event.impl.RenderEvent;
import org.lwjgl.opengl.GL11;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(GuiIngame.class)
public abstract class GuiInGameMixin {
@Inject(method = "renderGameOverlay", at = @At("RETURN"))
public void renderEvent(float partialTicks, CallbackInfo ci) {
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
GlStateManager.disableLighting();
new RenderEvent().call();
GL11.glColor4f(1, 1, 1, 1);
GlStateManager.enableTexture2D();
GlStateManager.disableBlend();
GlStateManager.disableAlpha();
}
}

View File

@ -22,5 +22,6 @@
"mixins.EffectRendererMixin", "mixins.EffectRendererMixin",
"accessors.RenderManagerAccessor", "accessors.RenderManagerAccessor",
"mixins.RenderPlayerMixin", "mixins.RenderPlayerMixin",
"mixins.GuiInGameMixin"
] ]
} }