Skip to content

Commit

Permalink
dont attempt to load BufferBuilder on server
Browse files Browse the repository at this point in the history
VertexConsumer is a client only class
  • Loading branch information
RogueLogix committed Feb 19, 2024
1 parent 077a68f commit a87a513
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import me.jellysquid.mods.sodium.client.render.vertex.VertexConsumerTracker;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.roguelogix.phosphophyllite.registry.ClientOnly;
import net.roguelogix.phosphophyllite.registry.OnModLoad;
import net.roguelogix.phosphophyllite.util.NonnullDefault;
import net.roguelogix.quartz.Mesh;
Expand Down Expand Up @@ -75,6 +76,7 @@ private static class Vertex {
int lightmapU = 0, lightmapV = 0;
}

@ClientOnly
private static class BufferBuilder implements VertexConsumer {

@OnModLoad
Expand Down

0 comments on commit a87a513

Please sign in to comment.