Skip to content

Commit

Permalink
fix(docs/GameRendererMixin): this posts Render3D events, not Render2D…
Browse files Browse the repository at this point in the history
… events
  • Loading branch information
DataM0del committed Dec 23, 2024
1 parent 5804493 commit d4f1d75
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/info/opensigma/mixin/GameRendererMixin.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
package info.opensigma.mixin;

import info.opensigma.OpenSigma;
import info.opensigma.event.impl.render.Render2DEvent;
import info.opensigma.event.impl.render.Render3DEvent;
import net.minecraft.client.render.GameRenderer;
import net.minecraft.client.render.RenderTickCounter;
import net.minecraft.client.util.math.MatrixStack;
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;

/**
* Hooks [{@link GameRenderer#renderWorld(RenderTickCounter)}] to post [{@link Render2DEvent}] events.
* Hooks [{@link GameRenderer#renderWorld(RenderTickCounter)}] to post [{@link Render3DEvent}] events.
* We aren't hooking [{@link GameRenderer#render(RenderTickCounter, boolean)}
* because something else could call this, & we wouldn't send the event when we should've,
* even though it doesn't really matter.
Expand Down

0 comments on commit d4f1d75

Please sign in to comment.