aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/server/commands/CommandReload.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/server/commands/CommandReload.patch')
-rw-r--r--patch-remap/og/net/minecraft/server/commands/CommandReload.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/server/commands/CommandReload.patch b/patch-remap/og/net/minecraft/server/commands/CommandReload.patch
new file mode 100644
index 0000000000..46887c0149
--- /dev/null
+++ b/patch-remap/og/net/minecraft/server/commands/CommandReload.patch
@@ -0,0 +1,19 @@
+--- a/net/minecraft/server/commands/CommandReload.java
++++ b/net/minecraft/server/commands/CommandReload.java
+@@ -44,6 +44,16 @@
+ return collection1;
+ }
+
++ // CraftBukkit start
++ public static void reload(MinecraftServer minecraftserver) {
++ ResourcePackRepository resourcepackrepository = minecraftserver.getPackRepository();
++ SaveData 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<CommandListenerWrapper> commanddispatcher) {
+ commanddispatcher.register((LiteralArgumentBuilder) ((LiteralArgumentBuilder) net.minecraft.commands.CommandDispatcher.literal("reload").requires((commandlistenerwrapper) -> {
+ return commandlistenerwrapper.hasPermission(2);