mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
Revert "remove shadow of public method getPlayers"
This reverts commit 6c159d6aa2.
This commit is contained in:
@@ -20,6 +20,9 @@ import java.util.List;
|
|||||||
@Mixin(PlayerList.class)
|
@Mixin(PlayerList.class)
|
||||||
public abstract class PlayerListMixin {
|
public abstract class PlayerListMixin {
|
||||||
|
|
||||||
|
@Shadow
|
||||||
|
public abstract List<ServerPlayer> getPlayers();
|
||||||
|
|
||||||
@Shadow @Final
|
@Shadow @Final
|
||||||
private MinecraftServer server;
|
private MinecraftServer server;
|
||||||
|
|
||||||
@@ -30,7 +33,7 @@ public abstract class PlayerListMixin {
|
|||||||
|
|
||||||
@Inject(method = "removeAll", at = @At("HEAD"))
|
@Inject(method = "removeAll", at = @At("HEAD"))
|
||||||
private void removeAll(CallbackInfo ci) {
|
private void removeAll(CallbackInfo ci) {
|
||||||
for (var player : ((PlayerList) (Object) this).getPlayers()) {
|
for (var player : getPlayers()) {
|
||||||
SkinRestorer.Events.onPlayerDisconnect(player);
|
SkinRestorer.Events.onPlayerDisconnect(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user