Skip to content

Commit d226372

Browse files
committed
Fix WorldGuard accessing AreaEffectCloud#potion; Fix Bukkit#getOnlinePlayers returns nothing; for #1711, #1684
1 parent 3e849d9 commit d226372

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-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
}

arclight-common/src/main/resources/META-INF/accesstransformer.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Arclight 1.20
2+
public net.minecraft.world.entity.AreaEffectCloud f_19701_ # potion
23
public net.minecraft.world.entity.item.FallingBlockEntity f_31947_ # cancelDrop
34
public net.minecraft.server.dedicated.DedicatedServerProperties$WorldDimensionData <init>(Lcom/google/gson/JsonObject;Ljava/lang/String;)V
45
public net.minecraft.world.entity.projectile.Arrow f_36855_ # potion

0 commit comments

Comments
 (0)