mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +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() {
|
||||
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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue