Skip to content

Commit

Permalink
fix: fix register before init CommandAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
MC-XiaoHei committed Sep 8, 2024
1 parent 8261956 commit 68c489c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions patches/server/0057-Implementation-Carpet-features.patch
Original file line number Diff line number Diff line change
Expand Up @@ -291,17 +291,17 @@ index af9b3ea74379d52f2ff08cb81e87a0a61062097a..e972df9e5d83eb6cf7a66e0e29086e5c
worldserver.tryAddFreshEntityWithPassengers(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.COMMAND);
}
diff --git a/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java b/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
index 0edfd864d7517aea82da24253c51f18d1fa1bd92..2d34f1829a4fbe752133e013bfffa856799eceda 100644
index 0edfd864d7517aea82da24253c51f18d1fa1bd92..bf87e6734008daeeff13733f382effea88851a7a 100644
--- a/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
+++ b/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
@@ -282,6 +282,7 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface
return false;
}

@@ -291,6 +291,7 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface
);
dev.jorel.commandapi.CommandAPI.onEnable();
// Lumina end - enable CommandAPI
+ org.leavesmc.lumina.carpet.CarpetServer.onGameStarted(); // Lumina - Implementation Carpet features
// Lumina start - enable CommandAPI
commandAPIPlugin = org.bukkit.plugin.java.InternalJavaPluginFactory.create("CommandAPI");
dev.jorel.commandapi.CommandAPI.onLoad(new dev.jorel.commandapi.CommandAPIBukkitConfig(commandAPIPlugin)
org.leavesmc.lumina.LuminaCommand.INSTANCE.registerCommands(); // Lumina - register commands
// CraftBukkit start
// this.setPlayerList(new DedicatedPlayerList(this, this.registries(), this.playerDataStorage)); // Spigot - moved up
diff --git a/src/main/java/net/minecraft/server/level/ChunkMap.java b/src/main/java/net/minecraft/server/level/ChunkMap.java
index dfdb85c14c4afce7879acf9093d54f7480c0a08c..92c3f9bdc6e97614ea664bee46616fb73587a7d4 100644
--- a/src/main/java/net/minecraft/server/level/ChunkMap.java
Expand Down

0 comments on commit 68c489c

Please sign in to comment.