Commits

md_5 authored 2ed3e3e6e50
SPIGOT-7210: Fix structures in custom worlds
No tags

nms-patches/net/minecraft/server/dedicated/DedicatedServer.patch

Modified
17 17 public class DedicatedServer extends MinecraftServer implements IMinecraftServer {
18 18
19 19 static final Logger LOGGER = LogUtils.getLogger();
20 20 @@ -70,8 +80,10 @@
21 21 @Nullable
22 22 private final TextFilter textFilterClient;
23 23
24 24 - public DedicatedServer(Thread thread, Convertable.ConversionSession convertable_conversionsession, ResourcePackRepository resourcepackrepository, WorldStem worldstem, DedicatedServerSettings dedicatedserversettings, DataFixer datafixer, Services services, WorldLoadListenerFactory worldloadlistenerfactory) {
25 25 - super(thread, convertable_conversionsession, resourcepackrepository, worldstem, Proxy.NO_PROXY, datafixer, services, worldloadlistenerfactory);
26 26 + // CraftBukkit start - Signature changed
27 -+ public DedicatedServer(joptsimple.OptionSet options, WorldLoader.c datapackconfiguration, WorldLoader.a worldLoader, Thread thread, Convertable.ConversionSession convertable_conversionsession, ResourcePackRepository resourcepackrepository, WorldStem worldstem, DedicatedServerSettings dedicatedserversettings, DataFixer datafixer, Services services, WorldLoadListenerFactory worldloadlistenerfactory) {
28 -+ super(options, datapackconfiguration, worldLoader, thread, convertable_conversionsession, resourcepackrepository, worldstem, Proxy.NO_PROXY, datafixer, services, worldloadlistenerfactory);
27 ++ public DedicatedServer(joptsimple.OptionSet options, WorldLoader.a worldLoader, Thread thread, Convertable.ConversionSession convertable_conversionsession, ResourcePackRepository resourcepackrepository, WorldStem worldstem, DedicatedServerSettings dedicatedserversettings, DataFixer datafixer, Services services, WorldLoadListenerFactory worldloadlistenerfactory) {
28 ++ super(options, worldLoader, thread, convertable_conversionsession, resourcepackrepository, worldstem, Proxy.NO_PROXY, datafixer, services, worldloadlistenerfactory);
29 29 + // CraftBukkit end
30 30 this.settings = dedicatedserversettings;
31 31 this.rconConsoleSource = new RemoteControlCommandListener(this);
32 32 this.textFilterClient = TextFilter.createFromConfig(dedicatedserversettings.getProperties().textFilteringConfig);
33 33 @@ -81,13 +93,44 @@
34 34 public boolean initServer() throws IOException {
35 35 Thread thread = new Thread("Server console handler") {
36 36 public void run() {
37 37 - BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8));
38 38 + // CraftBukkit start

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut