Remove tesr double checks because vanilla does it now

This commit is contained in:
Vincent Lee committed 2020-07-17 12:16:16 -05:00
1 parent 4a9976aa91
commit 6c243bf81e
6 files changed
+1 -28

No files matched your search

@@ -38,10 +38,6 @@ public class RenderTileAltar extends TileEntityRenderer<TileAltar> {
@Override
public void render(@Nonnull TileAltar altar, float pticks, MatrixStack ms, IRenderTypeBuffer buffers, int light, int overlay) {
if (!altar.getWorld().isBlockLoaded(altar.getPos())) {
return;
}
ms.push();
ms.translate(0.5, 1.5, 0.5);
@@ -47,13 +47,6 @@ public class RenderTileAvatar extends TileEntityRenderer<TileAvatar> {
@Override
public void render(@Nullable TileAvatar avatar, float pticks, MatrixStack ms, IRenderTypeBuffer buffers, int light, int overlay) {
if (avatar != null) {
if (!avatar.getWorld().isBlockLoaded(avatar.getPos())
|| avatar.getBlockState().getBlock() != ModBlocks.avatar) {
return;
}
}
ms.push();
Direction facing = avatar != null && avatar.getWorld() != null ? avatar.getBlockState().get(BlockStateProperties.HORIZONTAL_FACING) : Direction.SOUTH;
@@ -34,7 +34,7 @@ import java.util.Map;
public class RenderTileLightRelay extends TileEntityRenderer<TileLightRelay> {
private static Map<LuminizerVariant, TextureAtlasSprite> sprites = new EnumMap<>(LuminizerVariant.class);
private static final Map<LuminizerVariant, TextureAtlasSprite> sprites = new EnumMap<>(LuminizerVariant.class);
public RenderTileLightRelay(TileEntityRendererDispatcher manager) {
super(manager);
@@ -43,9 +43,6 @@ public class RenderTileLightRelay extends TileEntityRenderer<TileLightRelay> {
@Override
public void render(@Nonnull TileLightRelay tile, float pticks, MatrixStack ms, IRenderTypeBuffer buffers, int light, int overlay) {
BlockState state = tile.getBlockState();
if (!(state.getBlock() instanceof BlockLightRelay)) {
return;
}
Minecraft mc = Minecraft.getInstance();
if (sprites.isEmpty()) {
@@ -46,11 +46,6 @@ public class RenderTilePool extends TileEntityRenderer<TilePool> {
@Override
public void render(@Nullable TilePool pool, float f, MatrixStack ms, IRenderTypeBuffer buffers, int light, int overlay) {
if (pool != null && (!pool.getWorld().isBlockLoaded(pool.getPos())
|| !(pool.getBlockState().getBlock() instanceof BlockPool))) {
return;
}
ms.push();
boolean fab = pool != null && ((BlockPool) pool.getBlockState().getBlock()).variant == BlockPool.Variant.FABULOUS;
@@ -58,10 +58,6 @@ public class RenderTilePylon extends TileEntityRenderer<TilePylon> {
@Override
public void render(@Nonnull TilePylon pylon, float pticks, MatrixStack ms, IRenderTypeBuffer buffers, int light, int overlay) {
if (!pylon.getWorld().isBlockLoaded(pylon.getPos()) || !(pylon.getBlockState().getBlock() instanceof BlockPylon)) {
return;
}
renderPylon(pylon, pticks, ms, buffers, light, overlay);
}
@@ -104,10 +104,6 @@ public class RenderTileTinyPotato extends TileEntityRenderer<TileTinyPotato> {
@Override
public void render(@Nonnull TileTinyPotato potato, float partialTicks, MatrixStack ms, IRenderTypeBuffer buffers, int light, int overlay) {
if (potato.getBlockState().getBlock() != ModBlocks.tinyPotato) {
return;
}
ms.push();
String name = potato.name.getString().toLowerCase().trim();