uncomment the comments

"i commented out the particle stuff for testing something
 uh you can revert that" -IMS
This commit is contained in:
IThundxr 2024-08-10 10:32:46 -04:00
parent 475b1d8d7d
commit f2c0b79085
Failed to generate hash of commit

View file

@ -14,10 +14,6 @@ import org.spongepowered.asm.mixin.injection.Group;
import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import com.llamalad7.mixinextras.sugar.Share;
import com.llamalad7.mixinextras.sugar.ref.LocalRef;
import com.mojang.blaze3d.vertex.PoseStack;
import dev.engine_room.flywheel.api.visualization.VisualizationManager; import dev.engine_room.flywheel.api.visualization.VisualizationManager;
import dev.engine_room.flywheel.impl.FlwImplXplat; import dev.engine_room.flywheel.impl.FlwImplXplat;
import dev.engine_room.flywheel.impl.event.RenderContextImpl; import dev.engine_room.flywheel.impl.event.RenderContextImpl;
@ -113,8 +109,8 @@ abstract class LevelRendererMixin {
} }
} }
//@Group(name = "afterParticles") @Group(name = "afterParticles")
//@Inject(method = "renderLevel", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/particle/ParticleEngine;render(Lnet/minecraft/client/renderer/LightTexture;Lnet/minecraft/client/Camera;FLnet/minecraft/client/renderer/culling/Frustum;Ljava/util/function/Predicate;)V", shift = Shift.AFTER)) @Inject(method = "renderLevel", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/particle/ParticleEngine;render(Lnet/minecraft/client/renderer/LightTexture;Lnet/minecraft/client/Camera;FLnet/minecraft/client/renderer/culling/Frustum;Ljava/util/function/Predicate;)V", shift = Shift.AFTER))
private void flywheel$afterParticles$forge(CallbackInfo ci) { private void flywheel$afterParticles$forge(CallbackInfo ci) {
if (flywheel$renderContext != null) { if (flywheel$renderContext != null) {
VisualizationManager manager = VisualizationManager.get(level); VisualizationManager manager = VisualizationManager.get(level);