fix rain+hail texture and empty chunk
This commit is contained in:
parent
a7fe2db49f
commit
7c80936c05
2 changed files with 3 additions and 3 deletions
|
@ -1314,14 +1314,14 @@ public class EntityRenderer {
|
||||||
}
|
}
|
||||||
else if (/* world.getBiomeGenerator().getTemperatureAtHeight( */ f2 /* , j2) */ > 0.0F)
|
else if (/* world.getBiomeGenerator().getTemperatureAtHeight( */ f2 /* , j2) */ > 0.0F)
|
||||||
{
|
{
|
||||||
if (mode != 0)
|
if (mode != (f2 <= 5.0f ? 3 : 0))
|
||||||
{
|
{
|
||||||
if (mode >= 0)
|
if (mode >= 0)
|
||||||
{
|
{
|
||||||
Tessellator.draw();
|
Tessellator.draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
mode = 0;
|
mode = f2 <= 5.0f ? 3 : 0;
|
||||||
this.gm.getTextureManager().bindTexture(f2 <= 5.0f ? locationHailPng : locationRainPng);
|
this.gm.getTextureManager().bindTexture(f2 <= 5.0f ? locationHailPng : locationRainPng);
|
||||||
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
worldrenderer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 <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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue