Skip to content

Commit f81f0d6

Browse files
fix missing case
1 parent 65bdc37 commit f81f0d6

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/java/net/pufferlab/primal/client/renderer/blocks/BlockAxleRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public void renderInventoryBlock(Block block, int metadata, int modelId, RenderB
2424
@Override
2525
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
2626
RenderBlocks renderer) {
27-
TileEntity te = world.getTileEntity(x, y, z);
2827
Tessellator tess = Tessellator.instance;
2928
dumpVertices(tess, x, y, z);
29+
TileEntity te = world.getTileEntity(x, y, z);
3030
if (te instanceof TileEntityAxle tef) {
3131
if (tef.hasBracket) {
3232
modelBracket.setFacingFromAxis(tef.facingMeta, tef.axisMeta);

src/main/java/net/pufferlab/primal/client/renderer/blocks/BlockBarrelRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public void renderInventoryBlock(Block block, int metadata, int modelId, RenderB
3232
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
3333
RenderBlocks renderer) {
3434
Tessellator tess = Tessellator.instance;
35-
TileEntity te = world.getTileEntity(x, y, z);
3635
dumpVertices(tess, x, y, z);
36+
TileEntity te = world.getTileEntity(x, y, z);
3737
if (te instanceof TileEntityBarrel tef) {
3838
int renderPass = ForgeHooksClient.getWorldRenderPass();
3939
FluidStack stack = tef.getFluidStack();

src/main/java/net/pufferlab/primal/client/renderer/blocks/BlockCastRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ public void renderInventoryBlock(Block block, int metadata, int modelId, RenderB
3333
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
3434
RenderBlocks renderer) {
3535
Tessellator tess = Tessellator.instance;
36+
dumpVertices(tess, x, y, z);
3637
TileEntity te = world.getTileEntity(x, y, z);
3738
int renderPass = ForgeHooksClient.getWorldRenderPass();
3839
if (te instanceof TileEntityCast tef) {
3940
FluidStack stack = tef.getFluidStack();
4041
float height = tef.getFillLevel(0.0625F, 0.125F);
41-
modelFluid.dumpVertices(tess, x, y, z);
4242
if (renderPass == 1) {
4343
modelFluid.render(
4444
renderer,

src/main/java/net/pufferlab/primal/client/renderer/blocks/BlockCrucibleRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public void renderInventoryBlock(Block block, int metadata, int modelId, RenderB
2727
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
2828
RenderBlocks renderer) {
2929
Tessellator tess = Tessellator.instance;
30+
dumpVertices(tess, x, y, z);
3031
TileEntity te = world.getTileEntity(x, y, z);
3132
int renderPass = ForgeHooksClient.getWorldRenderPass();
32-
modelFluid.dumpVertices(tess, x, y, z);
3333
if (te instanceof TileEntityCrucible tef) {
3434
Block blockBelow = tef.getWorldObj()
3535
.getBlock(tef.xCoord, tef.yCoord - 1, tef.zCoord);

src/main/java/net/pufferlab/primal/client/renderer/blocks/BlockFaucetRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public void renderInventoryBlock(Block block, int metadata, int modelId, RenderB
3333
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
3434
RenderBlocks renderer) {
3535
Tessellator tess = Tessellator.instance;
36-
int renderPass = ForgeHooksClient.getWorldRenderPass();
3736
dumpVertices(tess, x, y, z);
37+
int renderPass = ForgeHooksClient.getWorldRenderPass();
3838
TileEntity te = world.getTileEntity(x, y, z);
3939
if (te instanceof TileEntityFaucet tef) {
4040
int meta = tef.facingMeta;

0 commit comments

Comments
 (0)