1
0
forked from xjboss/KCauldronX
KCauldronX/patches/net/minecraft/world/storage/DerivedWorldInfo.java.patch

40 lines
1.0 KiB
Diff
Raw Normal View History

2015-05-21 12:20:26 +00:00
--- ../src-base/minecraft/net/minecraft/world/storage/DerivedWorldInfo.java
+++ ../src-work/minecraft/net/minecraft/world/storage/DerivedWorldInfo.java
@@ -75,7 +75,8 @@
public String getWorldName()
{
- return this.theWorldInfo.getWorldName();
2015-06-01 14:32:10 +00:00
+ String name = super.getWorldName();
2015-05-21 12:20:26 +00:00
+ return name != null ? name : this.theWorldInfo.getWorldName();
}
public int getSaveVersion()
@@ -129,8 +130,6 @@
public void setSpawnPosition(int p_76081_1_, int p_76081_2_, int p_76081_3_) {}
- public void setWorldName(String p_76062_1_) {}
-
public void setSaveVersion(int p_76078_1_) {}
public void setThundering(boolean p_76069_1_) {}
@@ -174,4 +173,17 @@
2015-05-21 12:20:26 +00:00
{
return this.theWorldInfo.getGameRulesInstance();
}
+
+ public int getDimension() {
2015-06-01 14:32:10 +00:00
+ return this.theWorldInfo.getDimension();
2015-05-21 12:20:26 +00:00
+ }
+
+ public void setDimension(int dim) {
2015-06-01 14:32:10 +00:00
+ this.theWorldInfo.setDimension(dim);
+ }
+
+ @Override
+ public void tick() {
2015-06-01 14:32:10 +00:00
+ theWorldInfo.tick();
2015-05-21 12:20:26 +00:00
+ }
}