Update to Minecraft 1.13

This commit is contained in:
md_5
2018-07-22 12:00:00 +10:00
parent 961295e432
commit 1a6b4f5392
73 changed files with 469 additions and 418 deletions

View File

@@ -12,23 +12,23 @@
public class WorldData {
@@ -62,6 +67,7 @@
private final Map<DimensionManager, NBTTagCompound> S;
private NBTTagCompound T;
private final GameRules U;
@@ -64,6 +69,7 @@
private final Map<DimensionManager, NBTTagCompound> T;
private NBTTagCompound U;
private final GameRules V;
+ public WorldServer world; // CraftBukkit
protected WorldData() {
this.f = WorldType.NORMAL;
@@ -296,6 +302,7 @@
nbttagcompound2.setBoolean("Snapshot", true);
@@ -304,6 +310,7 @@
nbttagcompound2.setBoolean("Snapshot", false);
nbttagcompound.set("Version", nbttagcompound2);
nbttagcompound.setInt("DataVersion", 1513);
+ if (org.bukkit.craftbukkit.util.CraftMagicNumbers.DATA_VERSION != 1513) throw new AssertionError(); // CraftBukkit - sentinel
nbttagcompound.setInt("DataVersion", 1519);
+ if (org.bukkit.craftbukkit.util.CraftMagicNumbers.DATA_VERSION != 1519) throw new AssertionError(); // CraftBukkit - sentinel
nbttagcompound.setLong("RandomSeed", this.e);
nbttagcompound.setString("generatorName", this.f.name());
nbttagcompound.setString("generatorName", this.f.b());
nbttagcompound.setInt("generatorVersion", this.f.getVersion());
@@ -466,6 +473,16 @@
@@ -478,6 +485,16 @@
}
public void setThundering(boolean flag) {
@@ -42,10 +42,10 @@
+ }
+ }
+ // CraftBukkit end
this.y = flag;
this.z = flag;
}
@@ -482,6 +499,16 @@
@@ -494,6 +511,16 @@
}
public void setStorm(boolean flag) {
@@ -59,13 +59,13 @@
+ }
+ }
+ // CraftBukkit end
this.w = flag;
this.x = flag;
}
@@ -631,6 +658,12 @@
@@ -643,6 +670,12 @@
public void setDifficulty(EnumDifficulty enumdifficulty) {
this.F = enumdifficulty;
this.G = enumdifficulty;
+ // CraftBukkit start
+ PacketPlayOutServerDifficulty packet = new PacketPlayOutServerDifficulty(this.getDifficulty(), this.isDifficultyLocked());
+ for (EntityPlayer player : (java.util.List<EntityPlayer>) (java.util.List) world.players) {
@@ -75,9 +75,9 @@
}
public boolean isDifficultyLocked() {
@@ -712,4 +745,12 @@
@@ -724,4 +757,12 @@
public void c(@Nullable NBTTagCompound nbttagcompound) {
this.T = nbttagcompound;
this.U = nbttagcompound;
}
+
+ // CraftBukkit start - Check if the name stored in NBT is the correct one