Posted August 21, 20214 yr When on playing on server the falling damage doesnt dissapear with PlayerTickEvent event.player.fallDistance = 0; repo: https://github.com/Manueh333/WinxClub-Reborn/tree/main/src/main/java/com/manueh/winxclubreborn Edited August 21, 20214 yr by Grookey
August 21, 20214 yr this is your problem https://github.com/Manueh333/WinxClub-Reborn/blob/3eecb2e3892069ff0a7f3869a137cb1958b9bc6f/src/main/java/com/manueh/winxclubreborn/Server/ServerEvents.java#L15
August 21, 20214 yr a few other things that are wrong in your code: you can't store a value in a Field because the Event is fired for each Player you should use Capabilities instead your ClientEvents class is only client side so if you get the fields on server they are not set/have the default value you can fix the problem by using a Capability and sync them to the server in addition the PlayerEntity class has already methods which you can use server side (for sneaking: Entity#isShiftKeyDown, for jumping: LivingEntity.jumping but it's protected you should use Reflection or an AT)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.