Paper/nms-patches/WorldData.patch

16 lines
513 B
Diff
Raw Normal View History

2014-11-30 03:36:57 +08:00
--- ../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
2014-11-30 03:36:57 +08:00
}