Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Desoroxxx committed Jun 19, 2023
1 parent 761f33b commit 8f6a2c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(EntityRenderer.class)
public class MixinEntityRenderer {
public class EntityRendererMixin {

@Inject(method = "renderWorldPass(IFJ)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/particle/ParticleManager;renderParticles(Lnet/minecraft/entity/Entity;F)V", shift = Shift.AFTER))
@Inject(method = "renderWorldPass", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/particle/ParticleManager;renderParticles(Lnet/minecraft/entity/Entity;F)V", shift = Shift.AFTER))
private void afterParticlesRendered(int pass, float partialTicks, long finishTimeNano, CallbackInfo info) {
CubeBatchRenderer.endAllBatches();
}
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/mixins.fbp.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"package": "io.redstudioragnarok.fbp.mixin",
"compatibilityLevel": "JAVA_8",
"refmap": "mixins.fbp.refmap.json",
"client": ["MixinEntityRenderer"],
"client": [
"EntityRendererMixin"
],
"injectors": {
"defaultRequire": 1
}
Expand Down

0 comments on commit 8f6a2c0

Please sign in to comment.