From 4ea7e8d828f9fc990f82f8a4e89d53a39b848ae1 Mon Sep 17 00:00:00 2001 From: StormTiberius <7of9@netikka.fi> Date: Sat, 3 Aug 2013 05:45:22 +0300 Subject: [PATCH] Add cloud height to WorldType --- .../net/minecraft/world/WorldProvider.java.patch | 9 +++++++++ .../net/minecraft/world/WorldType.java.patch | 12 +++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/world/WorldProvider.java.patch b/patches/minecraft/net/minecraft/world/WorldProvider.java.patch index 827dd9d40..d9035628e 100644 --- a/patches/minecraft/net/minecraft/world/WorldProvider.java.patch +++ b/patches/minecraft/net/minecraft/world/WorldProvider.java.patch @@ -32,6 +32,15 @@ + return DimensionManager.createProviderFor(par0); } + @SideOnly(Side.CLIENT) +@@ -209,7 +216,7 @@ + */ + public float getCloudHeight() + { +- return 128.0F; ++ return this.terrainType.getCloudHeight(); + } + @SideOnly(Side.CLIENT) @@ -268,4 +275,277 @@ * Returns the dimension's name, e.g. "The End", "Nether", or "Overworld". diff --git a/patches/minecraft/net/minecraft/world/WorldType.java.patch b/patches/minecraft/net/minecraft/world/WorldType.java.patch index 8040a7734..e9be8615f 100644 --- a/patches/minecraft/net/minecraft/world/WorldType.java.patch +++ b/patches/minecraft/net/minecraft/world/WorldType.java.patch @@ -10,7 +10,7 @@ import net.minecraft.world.*; import net.minecraft.world.gen.*; import net.minecraft.world.biome.*; -@@ -224,4 +227,37 @@ +@@ -224,4 +227,47 @@ * Called when 'Create New World' button is pressed before starting game */ public void onGUICreateWorldPress() { } @@ -46,5 +46,15 @@ + public boolean isCustomizable() + { + return this == FLAT; ++ } ++ ++ @SideOnly(Side.CLIENT) ++ ++ /** ++ * the y level at which clouds are rendered. ++ */ ++ public float getCloudHeight() ++ { ++ return 128.0F; + } }