diff options
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/server/commands/ReloadCommand.java.patch')
-rw-r--r-- | patch-remap/mache-vineflower-stripped/net/minecraft/server/commands/ReloadCommand.java.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/server/commands/ReloadCommand.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/server/commands/ReloadCommand.java.patch new file mode 100644 index 0000000000..a69371ae12 --- /dev/null +++ b/patch-remap/mache-vineflower-stripped/net/minecraft/server/commands/ReloadCommand.java.patch @@ -0,0 +1,19 @@ +--- a/net/minecraft/server/commands/ReloadCommand.java ++++ b/net/minecraft/server/commands/ReloadCommand.java +@@ -38,6 +44,16 @@ + return list; + } + ++ // CraftBukkit start ++ public static void reload(MinecraftServer minecraftserver) { ++ PackRepository resourcepackrepository = minecraftserver.getPackRepository(); ++ WorldData savedata = minecraftserver.getWorldData(); ++ Collection<String> collection = resourcepackrepository.getSelectedIds(); ++ Collection<String> collection1 = discoverNewPacks(resourcepackrepository, savedata, collection); ++ minecraftserver.reloadResources(collection1); ++ } ++ // CraftBukkit end ++ + public static void register(CommandDispatcher<CommandSourceStack> dispatcher) { + dispatcher.register(Commands.literal("reload").requires(source -> source.hasPermission(2)).executes(context -> { + CommandSourceStack commandSourceStack = context.getSource(); |