Skip to content

Commit afa13fb

Browse files
committed
Fix Bukkit#getOnlinePlayers returns nothing; for #1684
1 parent 58f4938 commit afa13fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/server/management/DedicatedPlayerListMixin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
@Mixin(DedicatedPlayerList.class)
1616
public class DedicatedPlayerListMixin {
17-
@Inject(method = "<init>", at = @At(value = "INVOKE", shift = At.Shift.AFTER, target = "Lnet/minecraft/server/players/PlayerList;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/core/LayeredRegistryAccess;Lnet/minecraft/world/level/storage/PlayerDataStorage;I)V"))
17+
@Inject(method = "<init>", at = @At(value = "TAIL"))
1818
private void arclight$afterSuper(CallbackInfo ci) {
1919
((CraftServerBridge)Bukkit.getServer()).bridge$setPlayerList((DedicatedPlayerList)(Object) this);
2020
}

0 commit comments

Comments
 (0)