From e30b0822622d960abf1bc273c7aff7b518891817 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Tue, 1 Nov 2022 18:29:52 +0000 Subject: [PATCH] Fix setting difficulity inside of API (Fixes #8533) Vanilla moved some logic around setting the world difficulty which was not adopted for inside of upstream properly, this addresses another such case --- ...ld-Difficulty-Remembering-Difficulty.patch | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/patches/server/0431-Fix-Per-World-Difficulty-Remembering-Difficulty.patch b/patches/server/0431-Fix-Per-World-Difficulty-Remembering-Difficulty.patch index 308b3b8c6..e81d409f9 100644 --- a/patches/server/0431-Fix-Per-World-Difficulty-Remembering-Difficulty.patch +++ b/patches/server/0431-Fix-Per-World-Difficulty-Remembering-Difficulty.patch @@ -8,7 +8,7 @@ makes it so that the server keeps the last difficulty used instead of restoring the server.properties every single load. diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 057c335b15123061ed239f9559aad137e2c97982..1c39e141a392d96548f5ac62fb279ed1f105677d 100644 +index fb2d02ad6f6a4a1c69dde06e7e193aaef8655028..dda33bd52d9c527c37f67b829010c27dba4b667a 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -791,7 +791,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop