1
0
mirror of https://github.com/Suiranoil/SkinRestorer.git synced 2026-01-16 04:42:12 +00:00

remove shadow of public method getPlayers

This commit is contained in:
2025-05-30 21:29:42 +03:00
parent 760ac65ab3
commit 6c159d6aa2

View File

@@ -20,9 +20,6 @@ import java.util.List;
@Mixin(PlayerList.class)
public abstract class PlayerListMixin {
@Shadow
public abstract List<ServerPlayer> getPlayers();
@Shadow @Final
private MinecraftServer server;
@@ -33,7 +30,7 @@ public abstract class PlayerListMixin {
@Inject(method = "removeAll", at = @At("HEAD"))
private void removeAll(CallbackInfo ci) {
for (var player : getPlayers()) {
for (var player : ((PlayerList) (Object) this).getPlayers()) {
SkinRestorer.Events.onPlayerDisconnect(player);
}
}