summaryrefslogtreecommitdiffstats
path: root/nms-patches/WorldData.patch
blob: 41e25097236173d8340d0076a0eae8c88499698d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- ../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
 }