mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed server crash when spawning clouds
This commit is contained in:
parent
259b620f45
commit
70d97b4127
2 changed files with 1 additions and 3 deletions
|
@ -373,7 +373,7 @@ public class EntityCloud extends EntityFlying implements IAnimals {
|
||||||
|
|
||||||
protected float getMinimumFlyingHeight() {
|
protected float getMinimumFlyingHeight() {
|
||||||
float ground = world.provider.getAverageGroundLevel();
|
float ground = world.provider.getAverageGroundLevel();
|
||||||
float cloud = world.provider.getCloudHeight();
|
float cloud = world.getWorldType().getCloudHeight();
|
||||||
|
|
||||||
float min = Math.min(ground, cloud);
|
float min = Math.min(ground, cloud);
|
||||||
float max = Math.max(ground, cloud);
|
float max = Math.max(ground, cloud);
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
package com.minelittlepony.unicopia.render;
|
package com.minelittlepony.unicopia.render;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.client.renderer.GlStateManager;
|
import net.minecraft.client.renderer.GlStateManager;
|
||||||
import net.minecraft.client.renderer.entity.RenderLiving;
|
import net.minecraft.client.renderer.entity.RenderLiving;
|
||||||
import net.minecraft.client.renderer.entity.RenderManager;
|
import net.minecraft.client.renderer.entity.RenderManager;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
import net.minecraft.util.math.Vec3d;
|
|
||||||
|
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue