Slight rendering optimization to the Fluid Hopper TESR

This commit is contained in:
Shadowfacts 2017-01-14 19:13:41 -05:00
parent 01b3ac1318
commit 90544b1ea8
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ import org.lwjgl.opengl.GL11
object TESRFluidHopper: TileEntitySpecialRenderer<TileEntityFluidHopper>() {
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 tessellator = Tessellator.getInstance()