Skip to content

Commit

Permalink
fix forge server crash, somehow
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Aug 11, 2024
1 parent b025d24 commit 16bf98a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions platform/forge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ minecraft {
ideaModule("${rootProject.name}.${project.name}.main")

source(sourceSets["main"])
source(sourceSets["api"])
source(sourceSets["plugin"])
rootProject.sourceSets.forEach { source(it) }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import java.util.Objects;

import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.BufferBuilder;
import com.mojang.blaze3d.vertex.DefaultVertexFormat;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.Tesselator;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.mojang.blaze3d.vertex.VertexFormat;
import mcp.mobius.waila.api.ICommonAccessor;
import mcp.mobius.waila.api.IEventListener;
Expand Down Expand Up @@ -110,7 +110,7 @@ public void onAfterTooltipRender(PoseStack matrices, Rectangle rect, ICommonAcce
if (isInDelay) progressDelayTimer -= dt;
}

private void fill(PoseStack matrices, VertexConsumer vertexConsumer, float x1, float y1, float x2, float y2, int color) {
private void fill(PoseStack matrices, BufferBuilder vertexConsumer, float x1, float y1, float x2, float y2, int color) {
var matrix4f = matrices.last().pose();
if (x1 < x2) {
var o = x1;
Expand Down

0 comments on commit 16bf98a

Please sign in to comment.