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) ?
Due to Lex's decision to drop the
FakePlayer
class from Forge,PlayerHooks.isFake()
currently crashes with aNoClassDefFoundError
.I guess a suitable replacement for now at least would be as for the Fabric fallback:
if (player instanceof ServerPlayer && player.getClass() != ServerPlayer.class)
?