diff options
author | makamys <makamys@outlook.com> | 2022-06-25 10:21:30 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-25 10:21:30 +0200 |
commit | 9f04b25593607bc051b03168b9f25933aa0a29b4 (patch) | |
tree | 80717f3eec0b626213f78282b9bd808106c08993 /src/main/java/makamys/neodymium/mixin | |
parent | 1e100f6142424e1f96c4a4d00d58b44f8c95d047 (diff) | |
download | Neodymium-9f04b25593607bc051b03168b9f25933aa0a29b4.tar.gz Neodymium-9f04b25593607bc051b03168b9f25933aa0a29b4.tar.bz2 Neodymium-9f04b25593607bc051b03168b9f25933aa0a29b4.zip |
Replace 'OpenGL 1.2!' splash with 'OpenGL 3.3!'
Diffstat (limited to 'src/main/java/makamys/neodymium/mixin')
-rw-r--r-- | src/main/java/makamys/neodymium/mixin/MixinGuiMainMenu.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/makamys/neodymium/mixin/MixinGuiMainMenu.java b/src/main/java/makamys/neodymium/mixin/MixinGuiMainMenu.java new file mode 100644 index 0000000..27f6b07 --- /dev/null +++ b/src/main/java/makamys/neodymium/mixin/MixinGuiMainMenu.java @@ -0,0 +1,23 @@ +package makamys.neodymium.mixin; + +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.Shadow; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; + +import makamys.neodymium.Neodymium; +import net.minecraft.client.gui.GuiMainMenu; + +@Mixin(GuiMainMenu.class) +abstract class MixinGuiMainMenu { + + @Shadow + private String splashText; + + @Inject(method = "<init>*", at = @At("RETURN")) + private void postConstructor(CallbackInfo ci) { + splashText = Neodymium.modifySplash(splashText); + } + +} |