fix rain+hail texture and empty chunk

This commit is contained in:
Sen 2025-05-19 20:46:04 +02:00
parent a7fe2db49f
commit 7c80936c05
2 changed files with 3 additions and 3 deletions

View file

@ -1314,14 +1314,14 @@ public class EntityRenderer {
}
else if (/* world.getBiomeGenerator().getTemperatureAtHeight( */ f2 /* , j2) */ > 0.0F)
{
if (mode != 0)
if (mode != (f2 <= 5.0f ? 3 : 0))
{
if (mode >= 0)
{
Tessellator.draw();
}
mode = 0;
mode = f2 <= 5.0f ? 3 : 0;
this.gm.getTextureManager().bindTexture(f2 <= 5.0f ? locationHailPng : locationRainPng);
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
}

View file

@ -88,7 +88,7 @@ public class EmptyChunk extends Chunk {
public <T extends Entity> void getEntities(Class<? extends T> clazz, BoundingBox bb, List<T> list, Predicate<? super T> pred) {
}
public boolean isDirty() {
public boolean isDirty(long time) {
return false;
}