From 26fc38bbfec7c5d467eefa4c7fcac823762c2f65 Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Fri, 17 Jul 2020 10:51:27 -0500 Subject: [PATCH] Render spinning ghost cubes off-screen --- .../botania/api/subtile/TileEntitySpecialFlower.java | 2 +- .../vazkii/botania/client/core/helper/RenderHelper.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/vazkii/botania/api/subtile/TileEntitySpecialFlower.java b/src/main/java/vazkii/botania/api/subtile/TileEntitySpecialFlower.java index 6fa2a48c5..edbad39ee 100644 --- a/src/main/java/vazkii/botania/api/subtile/TileEntitySpecialFlower.java +++ b/src/main/java/vazkii/botania/api/subtile/TileEntitySpecialFlower.java @@ -272,7 +272,7 @@ public class TileEntitySpecialFlower extends TileEntity implements ITickableTile /** * Returns a descriptor for the radius of this sub tile. This is called while a player - * is looking at the block with a Manaseer Monocle (IBurstViewerBauble). + * is looking at the block with a Manaseer Monocle. */ @OnlyIn(Dist.CLIENT) public RadiusDescriptor getRadius() { diff --git a/src/main/java/vazkii/botania/client/core/helper/RenderHelper.java b/src/main/java/vazkii/botania/client/core/helper/RenderHelper.java index dd081991b..8667c3000 100644 --- a/src/main/java/vazkii/botania/client/core/helper/RenderHelper.java +++ b/src/main/java/vazkii/botania/client/core/helper/RenderHelper.java @@ -134,7 +134,12 @@ public final class RenderHelper { glState = RenderType.State.getBuilder().texture(new RenderState.TextureState()).diffuseLighting(enableDiffuse).build(false); SPINNING_CUBE = RenderType.makeType(LibResources.PREFIX_MOD + "spinning_cube", DefaultVertexFormats.ENTITY, GL11.GL_QUADS, 64, glState); - glState = RenderType.State.getBuilder().texture(new RenderState.TextureState()).diffuseLighting(enableDiffuse).transparency(TRANSLUCENT_TRANSPARENCY).build(false); + glState = RenderType.State.getBuilder() + .texture(new RenderState.TextureState()) + .diffuseLighting(enableDiffuse) + .transparency(TRANSLUCENT_TRANSPARENCY) + .target(itemTarget) + .build(false); SPINNING_CUBE_GHOST = RenderType.makeType(LibResources.PREFIX_MOD + "spinning_cube_ghost", DefaultVertexFormats.ENTITY, GL11.GL_QUADS, 64, glState); glState = RenderType.State.getBuilder().texture(mipmapBlockAtlasTexture)