architectury / architectury-api

An intermediary api aimed at easing development of multiplatform mods.
https://discord.architectury.dev/
GNU Lesser General Public License v3.0
315 stars 56 forks source link

1.20.2 Forge - PlayerHooks.isFake() crashes now #448

Closed desht closed 10 months ago

desht commented 10 months ago

Due to Lex's decision to drop the FakePlayer class from Forge, PlayerHooks.isFake() currently crashes with a NoClassDefFoundError.

I guess a suitable replacement for now at least would be as for the Fabric fallback: if (player instanceof ServerPlayer && player.getClass() != ServerPlayer.class) ?