Skip to content

Commit

Permalink
apparently that needed to be instanced
Browse files Browse the repository at this point in the history
  • Loading branch information
kineticneticat committed Nov 25, 2024
1 parent cfd9a91 commit 37325e0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.mojang.blaze3d.platform.NativeImage;
import com.mojang.blaze3d.vertex.PoseStack;
import dev.kineticcat.complexhex.entity.LaTeXEntity;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.entity.EntityRenderer;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
Expand All @@ -19,7 +20,7 @@

public class LaTeXRenderer extends EntityRenderer<LaTeXEntity> {

// private DynamicTexture texture;
private Res
protected LaTeXRenderer(EntityRendererProvider.Context context) {
super(context);
}
Expand All @@ -40,7 +41,7 @@ public void render(LaTeXEntity latexEntity, float yaw, float partialTick, PoseSt
for (int x = 0; x < bufImg.getWidth(); x++)
wawa.setPixelRGBA(x, y, bufImg.getRGB(x, y));
DynamicTexture texture = new DynamicTexture(wawa);
ResourceLocation resLoc = TextureManager.register("", texture);
ResourceLocation resLoc = Minecraft.getInstance().getTextureManager().register("latex", texture);
}

}
Expand Down

0 comments on commit 37325e0

Please sign in to comment.