fix te particles

This commit is contained in:
Sen 2025-07-20 14:29:55 +02:00
parent 828d215048
commit a1fcaa5f67
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
4 changed files with 5 additions and 5 deletions

View file

@ -76,11 +76,11 @@ public class BlockRenderer
{ {
case 1: case 1:
return this.renderFluid(blockAccess, state, pos, worldRendererIn); return this.renderFluid(blockAccess, state, pos, worldRendererIn);
case 2:
return false;
case 3: case 3:
IBakedModel ibakedmodel = this.getModelFromBlockState(state, blockAccess, pos); IBakedModel ibakedmodel = this.getModelFromBlockState(state, blockAccess, pos);
return this.renderBase(blockAccess, ibakedmodel, state, pos, worldRendererIn, !this.gm.xrayActive); return this.renderBase(blockAccess, ibakedmodel, state, pos, worldRendererIn, !this.gm.xrayActive);
default: default:
return false; return false;
} }

View file

@ -93,7 +93,7 @@ public class RenderMinecart<T extends EntityCart> extends Render<T>
int j = entity.getDisplayTileOffset(); int j = entity.getDisplayTileOffset();
State iblockstate = entity.getDisplayTile(); State iblockstate = entity.getDisplayTile();
if (iblockstate.getBlock().getRenderType() != -1) if (iblockstate.getBlock().getRenderType() == 3)
{ {
GL11.glPushMatrix(); GL11.glPushMatrix();
this.bindTexture(TextureMap.BLOCKS); this.bindTexture(TextureMap.BLOCKS);

View file

@ -76,7 +76,7 @@ public class BlockChest extends Block implements ITileEntityProvider, Rotatable
public int getRenderType() public int getRenderType()
{ {
return -1; return 2;
} }
public State getPlacedState(World worldIn, BlockPos pos, Facing facing, float hitX, float hitY, float hitZ, EntityLiving placer) public State getPlacedState(World worldIn, BlockPos pos, Facing facing, float hitX, float hitY, float hitZ, EntityLiving placer)

View file

@ -138,6 +138,6 @@ public class BlockSign extends Block implements ITileEntityProvider
} }
public int getRenderType() { public int getRenderType() {
return -1; return 2;
} }
} }