Slight rendering optimization to the Fluid Hopper TESR
This commit is contained in:
parent
01b3ac1318
commit
90544b1ea8
|
@ -20,7 +20,7 @@ import org.lwjgl.opengl.GL11
|
||||||
object TESRFluidHopper: TileEntitySpecialRenderer<TileEntityFluidHopper>() {
|
object TESRFluidHopper: TileEntitySpecialRenderer<TileEntityFluidHopper>() {
|
||||||
|
|
||||||
override fun renderTileEntityAt(te: TileEntityFluidHopper, x: Double, y: Double, z: Double, partialTicks: Float, destroyStage: Int) {
|
override fun renderTileEntityAt(te: TileEntityFluidHopper, x: Double, y: Double, z: Double, partialTicks: Float, destroyStage: Int) {
|
||||||
if (te.tank.fluid != null) {
|
if (te.tank.fluid != null && !te.world.getBlockState(te.pos.up()).isSideSolid(te.world, te.pos.up(), EnumFacing.DOWN)) {
|
||||||
val fluid = te.tank.fluid
|
val fluid = te.tank.fluid
|
||||||
|
|
||||||
val tessellator = Tessellator.getInstance()
|
val tessellator = Tessellator.getInstance()
|
||||||
|
|
Loading…
Reference in New Issue