diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-09-04 13:29:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-04 07:29:43 -0400 |
commit | 17cfe96255f1ec3ab5609aa153d4abed2075c435 (patch) | |
tree | 5fd414d196140a97492ef25ef4d0ea925e107ac3 /versions/1.12.2-forge/src/main | |
parent | 4c60b452efda24794c0faa5f300fdd830edcd383 (diff) | |
download | OneConfig-17cfe96255f1ec3ab5609aa153d4abed2075c435.tar.gz OneConfig-17cfe96255f1ec3ab5609aa153d4abed2075c435.tar.bz2 OneConfig-17cfe96255f1ec3ab5609aa153d4abed2075c435.zip |
Disable the flashbang feature (#124)
Bang!
I get up, I get down and I'm jumping around
And the rumpus and ruckus are comfortable now
Been a hell of a ride but I'm thinking it's time to grow
Bang! Bang! Bang!
So I got an apartment across from the park
Put quinoa in my fridge, still I'm not feeling grown
Been a hell of a ride but I'm thinking it's time to go
Bang! Bang! Bang!
(Here we go)
So put your best face on everybody
Pretend you know this song
Everybody come hang (come hang)
Let's go out with a bang
Bang! Bang! Bang!
I'm way too young to lie here forever
I'm way too old to try so whatever come hang (come hang)
Let's go out with a bang
Bang! Bang! Bang!
Feel like I'm gonna puke 'cause my taxes are due
Do my password begin with a one or a two?
Been a hell of a ride but I'm thinking it's time to grow
Bang! Bang! Bang!
(Metronome)
Man, I'm up to something (up to something)
Ooh de la de do, thank you all for coming (all for coming)
I hope you like the show
'Cause it's on a budget (on a budget)
So ooh de la de do
Yeah, come on, here we go
Yeah, come on
(Here we go)
So put your best face on everybody
Pretend you know this song
Everybody come hang (come hang)
Let's go out with a bang
Bang! Bang! Bang!
I'm way too young to lie here forever
I'm way too old to try so whatever come hang (come hang)
Let's go out with a bang
Bang! Bang! Bang! (Bang! Bang! Bang! Bang!)
Bang! Bang! Bang! (Bang! Bang! Bang! Bang! Bang! Bang!)
Been a hell of a ride but I'm thinking it's time to go
So put your best face on everybody
Pretend you know this song
Everybody come hang
Let's go out with a bang
Bang! Bang! Bang!
(Here we go)
So put your best face on everybody
Pretend you know this song
Everybody come hang (come hang)
Let's go out with a bang
Bang! Bang! Bang! (Bang! Bang! Bang! Bang! Bang! Bang!)
I'm way too young to lie here forever
I'm way too old to try so whatever come hang (come hang)
Let's go out with a bang
Bang! Bang! Bang!
(Here we go)
Bang! Bang!
Diffstat (limited to 'versions/1.12.2-forge/src/main')
-rw-r--r-- | versions/1.12.2-forge/src/main/java/cc/polyfrost/oneconfig/internal/mixin/HudCachingMixin.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/versions/1.12.2-forge/src/main/java/cc/polyfrost/oneconfig/internal/mixin/HudCachingMixin.java b/versions/1.12.2-forge/src/main/java/cc/polyfrost/oneconfig/internal/mixin/HudCachingMixin.java new file mode 100644 index 0000000..3348aef --- /dev/null +++ b/versions/1.12.2-forge/src/main/java/cc/polyfrost/oneconfig/internal/mixin/HudCachingMixin.java @@ -0,0 +1,50 @@ +/* + * This file is part of OneConfig. + * OneConfig - Next Generation Config Library for Minecraft: Java Edition + * Copyright (C) 2021, 2022 Polyfrost. + * <https://polyfrost.cc> <https://github.com/Polyfrost/> + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * OneConfig is licensed under the terms of version 3 of the GNU Lesser + * General Public License as published by the Free Software Foundation, AND + * under the Additional Terms Applicable to OneConfig, as published by Polyfrost, + * either version 1.0 of the Additional Terms, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License. If not, see <https://www.gnu.org/licenses/>. You should + * have also received a copy of the Additional Terms Applicable + * to OneConfig, as published by Polyfrost. If not, see + * <https://polyfrost.cc/legal/oneconfig/additional-terms> + */ + +//#if MC==11202 +package cc.polyfrost.oneconfig.internal.mixin; + +import net.minecraft.client.shader.Framebuffer; +import org.spongepowered.asm.mixin.Dynamic; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.Pseudo; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; + +@Pseudo +@Mixin(targets = "club.sk1er.patcher.screen.render.caching.HUDCaching", remap = false) +public class HudCachingMixin { + + @Dynamic + @Inject(method = "checkFramebufferSizes", at = @At(value = "RETURN", ordinal = 0), remap = false) + private static void checkFramebufferSizes(Framebuffer framebuffer, int width, int height, CallbackInfoReturnable<Framebuffer> cir) { + if (cir.getReturnValue() != null && !cir.getReturnValue().isStencilEnabled()) { + cir.getReturnValue().enableStencil(); + } + } +} +//#endif
\ No newline at end of file |