From 70d97b41270fda18e87be44bf3e1db9c8a92c6f5 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 30 Jan 2019 14:03:32 +0200 Subject: [PATCH] Fixed server crash when spawning clouds --- .../java/com/minelittlepony/unicopia/entity/EntityCloud.java | 2 +- .../java/com/minelittlepony/unicopia/render/RenderCloud.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/EntityCloud.java b/src/main/java/com/minelittlepony/unicopia/entity/EntityCloud.java index eb405442..3dd62519 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/EntityCloud.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/EntityCloud.java @@ -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); diff --git a/src/main/java/com/minelittlepony/unicopia/render/RenderCloud.java b/src/main/java/com/minelittlepony/unicopia/render/RenderCloud.java index 3ffd6c94..629b7126 100644 --- a/src/main/java/com/minelittlepony/unicopia/render/RenderCloud.java +++ b/src/main/java/com/minelittlepony/unicopia/render/RenderCloud.java @@ -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;