Paper/nms-patches/WorldData.patch
2014-11-29 20:36:57 +01:00

16 lines
513 B
Diff

--- ../work/decompile-8eb82bde//net/minecraft/server/WorldData.java Sat Nov 29 19:36:33 2014
+++ src/main/java/net/minecraft/server/WorldData.java Sat Nov 29 19:35:56 2014
@@ -645,4 +645,12 @@
static boolean q(WorldData worlddata) {
return worlddata.x;
}
+
+ // CraftBukkit start - Check if the name stored in NBT is the correct one
+ public void checkName( String name ) {
+ if ( !this.n.equals( name ) ) {
+ this.n = name;
+ }
+ }
+ // CraftBukkit end
}