aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-09-21 15:28:36 +0200
committermakamys <makamys@outlook.com>2022-09-21 15:32:01 +0200
commita7294e0628800cee4a56e2b90d3f27d8f4039a22 (patch)
tree1e7c6ab4031854bde5af742c3c285d4a340a10c6 /src
parent175f7c740382663a3bfd164be30d0736f9d6e292 (diff)
downloadNeodymium-a7294e0628800cee4a56e2b90d3f27d8f4039a22.tar.gz
Neodymium-a7294e0628800cee4a56e2b90d3f27d8f4039a22.tar.bz2
Neodymium-a7294e0628800cee4a56e2b90d3f27d8f4039a22.zip
Give some methods in MixinRenderGlobal clearer names
Diffstat (limited to 'src')
-rw-r--r--src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java b/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java
index 3eed7b2..f3a4301 100644
--- a/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java
+++ b/src/main/java/makamys/neodymium/mixin/MixinRenderGlobal.java
@@ -24,7 +24,7 @@ abstract class MixinRenderGlobal {
private boolean nd$isInsideUpdateRenderers;
@Inject(method = "renderAllRenderLists", at = @At(value = "HEAD"), cancellable = true)
- private void preRenderAllRenderLists(int p1, double p2, CallbackInfo ci) {
+ private void blockVanillaChunkRendering(int p1, double p2, CallbackInfo ci) {
if(!Neodymium.shouldRenderVanillaWorld()) {
ci.cancel();
}
@@ -43,7 +43,7 @@ abstract class MixinRenderGlobal {
}
@Inject(method = "updateRenderers", at = @At(value = "RETURN"))
- public void postUpdateRenderers(EntityLivingBase entity, boolean flag, CallbackInfoReturnable<Boolean> cir) {
+ public void speedUpChunkUpdatesForDebug(EntityLivingBase entity, boolean flag, CallbackInfoReturnable<Boolean> cir) {
if(Neodymium.isActive() && !nd$isInsideUpdateRenderers) {
nd$isInsideUpdateRenderers = true;
for(int i = 0; i < Neodymium.renderer.rendererSpeedup; i++) {