Fixed server crash when spawning clouds

This commit is contained in:
Sollace 2019-01-30 14:03:32 +02:00
parent 259b620f45
commit 70d97b4127
2 changed files with 1 additions and 3 deletions

View file

@ -373,7 +373,7 @@ public class EntityCloud extends EntityFlying implements IAnimals {
protected float getMinimumFlyingHeight() {
float ground = world.provider.getAverageGroundLevel();
float cloud = world.provider.getCloudHeight();
float cloud = world.getWorldType().getCloudHeight();
float min = Math.min(ground, cloud);
float max = Math.max(ground, cloud);

View file

@ -1,11 +1,9 @@
package com.minelittlepony.unicopia.render;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.Vec3d;
import org.lwjgl.opengl.GL11;