summaryrefslogtreecommitdiffstats
path: root/nms-patches/AdvancementRewards.patch
blob: 50852ea2132af0895198afc406826f759ad6f947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/net/minecraft/server/AdvancementRewards.java
+++ b/net/minecraft/server/AdvancementRewards.java
@@ -98,7 +98,7 @@
                 }
 
                 public boolean getSendCommandFeedback() {
-                    return minecraftserver.worldServer[0].getGameRules().getBoolean("commandBlockOutput");
+                    return minecraftserver.worlds.get(0).getGameRules().getBoolean("commandBlockOutput"); // CraftBukkit
                 }
 
                 public void a(CommandObjectiveExecutor.EnumCommandResult commandobjectiveexecutor_enumcommandresult, int i) {
@@ -156,7 +156,7 @@
             return new AdvancementRewards(i, aminecraftkey, aminecraftkey1, customfunction_a);
         }
 
-        public Object deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {
+        public AdvancementRewards deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException { // CraftBukkit - decompile error
             return this.a(jsonelement, type, jsondeserializationcontext);
         }
     }