Skip to content

Commit 4a5974c

Browse files
committed
Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@5edcf6dd Cleanup/command dispatching (#12713) PaperMC/Paper@803baf0b Support hidden entities in Waypoints (#12715) PaperMC/Paper@1814d8b4 build: publish to fill (#12717) PaperMC/Paper@e454fef4 Add support for private constructors in plugin main classes (#12652)
1 parent afcdf9b commit 4a5974c

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ group = org.purpurmc.purpur
22
version = 1.21.6-R0.1-SNAPSHOT
33

44
mcVersion = 1.21.6
5-
paperCommit = 186e9e331b51ce359411a0a48f326d99af3348c2
5+
paperCommit = e454fef40e1e1e7a889327d3371fc7b5ff2b68df
66

77
org.gradle.configuration-cache = true
88
org.gradle.caching = true

purpur-server/minecraft-patches/sources/net/minecraft/commands/Commands.java.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/net/minecraft/commands/Commands.java
22
+++ b/net/minecraft/commands/Commands.java
3-
@@ -251,7 +_,7 @@
3+
@@ -252,7 +_,7 @@
44
JfrCommand.register(this.dispatcher);
55
}
66

@@ -9,7 +9,7 @@
99
RaidCommand.register(this.dispatcher, context);
1010
DebugPathCommand.register(this.dispatcher);
1111
DebugMobSpawningCommand.register(this.dispatcher);
12-
@@ -279,6 +_,14 @@
12+
@@ -280,6 +_,14 @@
1313
StopCommand.register(this.dispatcher);
1414
TransferCommand.register(this.dispatcher);
1515
WhitelistCommand.register(this.dispatcher);
@@ -24,15 +24,15 @@
2424
}
2525

2626
if (selection.includeIntegrated) {
27-
@@ -537,6 +_,7 @@
27+
@@ -502,6 +_,7 @@
2828
private void runSync(ServerPlayer player, java.util.Collection<String> bukkit, RootCommandNode<CommandSourceStack> rootCommandNode) {
2929
// Paper end - Perf: Async command map building
3030
new com.destroystokyo.paper.event.brigadier.AsyncPlayerSendCommandsEvent<CommandSourceStack>(player.getBukkitEntity(), (RootCommandNode) rootCommandNode, true).callEvent(); // Paper - Brigadier API
3131
+ if (org.bukkit.event.player.PlayerCommandSendEvent.getHandlerList().getRegisteredListeners().length > 0) { // Purpur - Skip events if there's no listeners
3232
org.bukkit.event.player.PlayerCommandSendEvent event = new org.bukkit.event.player.PlayerCommandSendEvent(player.getBukkitEntity(), new java.util.LinkedHashSet<>(bukkit));
3333
event.getPlayer().getServer().getPluginManager().callEvent(event);
3434

35-
@@ -547,6 +_,8 @@
35+
@@ -512,6 +_,8 @@
3636
}
3737
}
3838
// CraftBukkit end

purpur-server/paper-patches/files/src/main/java/org/bukkit/craftbukkit/CraftServer.java.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
22
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
3-
@@ -429,6 +_,20 @@
3+
@@ -428,6 +_,20 @@
44
this.paperPluginManager = new io.papermc.paper.plugin.manager.PaperPluginManagerImpl(this, this.commandMap, pluginManager);
55
this.pluginManager.paperPluginManager = this.paperPluginManager;
66
// Paper end
@@ -21,31 +21,31 @@
2121

2222
CraftRegistry.setMinecraftRegistry(console.registryAccess());
2323

24-
@@ -1072,6 +_,7 @@
24+
@@ -1045,6 +_,7 @@
2525

2626
org.spigotmc.SpigotConfig.init((File) this.console.options.valueOf("spigot-settings")); // Spigot
2727
this.console.paperConfigurations.reloadConfigs(this.console);
2828
+ org.purpurmc.purpur.PurpurConfig.init((File) console.options.valueOf("purpur-settings")); // Purpur - Purpur config files
2929
for (ServerLevel world : this.console.getAllLevels()) {
3030
// world.serverLevelData.setDifficulty(config.difficulty); // Paper - per level difficulty
3131
world.setSpawnSettings(world.serverLevelData.getDifficulty() != Difficulty.PEACEFUL && config.spawnMonsters); // Paper - per level difficulty (from MinecraftServer#setDifficulty(ServerLevel, Difficulty, boolean))
32-
@@ -1087,6 +_,7 @@
32+
@@ -1060,6 +_,7 @@
3333
}
3434
}
3535
world.spigotConfig.init(); // Spigot
3636
+ world.purpurConfig.init(); // Purpur - Purpur config files
3737
}
3838

3939
Plugin[] pluginClone = pluginManager.getPlugins().clone(); // Paper
40-
@@ -1104,6 +_,7 @@
40+
@@ -1077,6 +_,7 @@
4141
org.spigotmc.SpigotConfig.registerCommands(); // Spigot
4242
io.papermc.paper.command.PaperCommands.registerCommands(this.console); // Paper
4343
this.spark.registerCommandBeforePlugins(this); // Paper - spark
4444
+ org.purpurmc.purpur.PurpurConfig.registerCommands(); // Purpur - Purpur config files
4545
this.overrideAllCommandBlockCommands = this.commandsConfiguration.getStringList("command-block-overrides").contains("*");
4646
this.ignoreVanillaPermissions = this.commandsConfiguration.getBoolean("ignore-vanilla-permissions");
4747

48-
@@ -1603,6 +_,60 @@
48+
@@ -1576,6 +_,60 @@
4949
return true;
5050
}
5151

@@ -106,7 +106,7 @@
106106
@Override
107107
public List<Recipe> getRecipesFor(ItemStack result) {
108108
Preconditions.checkArgument(result != null, "ItemStack cannot be null");
109-
@@ -2971,6 +_,18 @@
109+
@@ -2944,6 +_,18 @@
110110
return CraftServer.this.console.paperConfigurations.createLegacyObject(CraftServer.this.console);
111111
}
112112

@@ -125,15 +125,15 @@
125125
@Override
126126
public void restart() {
127127
CraftServer.this.restart();
128-
@@ -3003,6 +_,7 @@
128+
@@ -2976,6 +_,7 @@
129129
@Override
130130
public double[] getTPS() {
131131
return new double[] {
132132
+ net.minecraft.server.MinecraftServer.getServer().tps5s.getAverage(), // Purpur - Add 5 second tps average in /tps
133133
net.minecraft.server.MinecraftServer.getServer().tps1.getAverage(),
134134
net.minecraft.server.MinecraftServer.getServer().tps5.getAverage(),
135135
net.minecraft.server.MinecraftServer.getServer().tps15.getAverage()
136-
@@ -3210,4 +_,18 @@
136+
@@ -3183,4 +_,18 @@
137137
public void allowPausing(final Plugin plugin, final boolean value) {
138138
this.console.addPluginAllowingSleep(plugin.getName(), value);
139139
}

0 commit comments

Comments
 (0)