Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block delay whilst placing #86

Open
CoolCuzzy opened this issue Jul 11, 2023 · 4 comments
Open

Block delay whilst placing #86

CoolCuzzy opened this issue Jul 11, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@CoolCuzzy
Copy link

Hey! So essentially on my server were using our custom blocks for buildings etc

They seem to have a delay and aren’t as smooth as default blocks. Like for example if you attempt to jump and keep placing a block under you to stack up, you will fall to the side because of the delay, the block pushing you and you falling off.

Is there a resolution for this?

@unickorn unickorn added the bug Something isn't working label Jul 12, 2023
@unickorn
Copy link
Member

To make sure this is related to Customies, could you make a vanilla world with an addon with custom blocks and test doing the exact same thing there?

@CoolCuzzy
Copy link
Author

Tried it, theres no delay on the vanilla world.

@IvanCraft623
Copy link
Contributor

IvanCraft623 commented Aug 8, 2023

This issue is caused because this line:

// The 'minecraft:on_player_placing' component is required for the client to predict block placement, making
// it a smoother experience for the end-user.
$components->setTag("minecraft:on_player_placing", CompoundTag::create());

That component actually causes more problems than benefits, we could remove it and let each block decide whether to use it or not.

@unickorn
Copy link
Member

unickorn commented Aug 9, 2023

@IvanCraft623 Could you provide an example of how that causes issues? Have you tested with/without that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants