**Client**

* Delegated World.func_46068_G() (getHorizon), which depends on WorldType, to the WorldType class per LexManos' suggestion
This commit is contained in:
Scott Killen committed 2012-06-17 00:04:50 -04:00
1 parent 1295c3863e
commit cddcd9ffb3
2 files changed
+16 -1

No files matched your search

@@ -0,0 +1,10 @@
--- ../src-base/minecraft/net/minecraft/src/World.java 0000-00-00 00:00:00.000000000 -0000
+++ ../src-work/minecraft/net/minecraft/src/World.java 0000-00-00 00:00:00.000000000 -0000
@@ -3880,6 +3880,6 @@
public double func_46068_G()
{
- return this.field_22145_q.func_46133_t() == WorldType.field_48636_c ? 0.0D : 63.0D;
+ return this.field_22145_q.func_46133_t().getHorizon(this);
}
}
@@ -39,7 +39,7 @@
}
public String func_48628_a()
@@ -78,4 +91,60 @@
@@ -78,4 +91,65 @@
return null;
}
@@ -67,6 +67,11 @@
+ return this == field_48636_c ? 4 : 64;
+ }
+
+ public double getHorizon(World world)
+ {
+ return this == field_48636_c ? 0.0D : 63.0D;
+ }
+
+ public boolean hasVoidParticles(boolean var1)
+ {
+ return this != field_48636_c && !var1;