diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-12-11 20:01:09 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-12-11 20:01:09 +0800 |
| commit | 7da94ad55ba766a88b413f3320023bebd1529a6a (patch) | |
| tree | 453c22fdcd184be98f2afcc775187ee2ea5668c4 /RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java | |
| parent | abdad58b34f38571a6395db0af6f9eec4e831add (diff) | |
| download | RoughlyEnoughItems-7da94ad55ba766a88b413f3320023bebd1529a6a.tar.gz RoughlyEnoughItems-7da94ad55ba766a88b413f3320023bebd1529a6a.tar.bz2 RoughlyEnoughItems-7da94ad55ba766a88b413f3320023bebd1529a6a.zip | |
Update to 20w49a
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java')
| -rw-r--r-- | RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java index 76f586b68..5fefe3beb 100644 --- a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java +++ b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/FluidEntryStack.java @@ -24,10 +24,7 @@ package me.shedaniel.rei.impl; import com.google.common.collect.Lists; -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.*; import com.mojang.math.Matrix4f; import it.unimi.dsi.fastutil.shorts.Short2ObjectMap; import me.shedaniel.math.Point; @@ -222,7 +219,7 @@ public class FluidEntryStack extends AbstractEntryStack { Tesselator tess = Tesselator.getInstance(); BufferBuilder bb = tess.getBuilder(); Matrix4f matrix = matrices.last().pose(); - bb.begin(7, DefaultVertexFormat.POSITION_TEX_COLOR); + bb.begin(VertexFormat.Mode.QUADS, DefaultVertexFormat.POSITION_TEX_COLOR); bb.vertex(matrix, bounds.getMaxX(), bounds.y, getZ()).uv(sprite.getU1(), sprite.getV0()).color(r, g, b, a).endVertex(); bb.vertex(matrix, bounds.x, bounds.y, getZ()).uv(sprite.getU0(), sprite.getV0()).color(r, g, b, a).endVertex(); bb.vertex(matrix, bounds.x, bounds.getMaxY(), getZ()).uv(sprite.getU0(), sprite.getV1()).color(r, g, b, a).endVertex(); |
