Pocketmine-mp: Incorrect display of items in water

Created on 9 Jun 2018  路  4Comments  路  Source: pmmp/PocketMine-MP

Issue description

From version 1.4 things in the water have changed their logic and now items are displayed incorrectly.

Steps to reproduce the issue

  1. Throw the item into the water and wait until it rises up
  2. You can't pick it up because the server thinks it is at the bottom

OS and versions

Crashdump, backtrace or other files

image

image

Client Gameplay Fixed

Most helpful comment

Water physics in general haven't been implemented yet, so this is just an additional pain in the ass. Items have always been problematic.

You can work around this for now by setting the DATA_FLAG_NO_AI generic flag on item entities to disable the client-sided floating.

All 4 comments

Water physics in general haven't been implemented yet, so this is just an additional pain in the ass. Items have always been problematic.

You can work around this for now by setting the DATA_FLAG_NO_AI generic flag on item entities to disable the client-sided floating.

Are you planning on adding this flag as a "hack"?

I haven't decided yet. The problem with setting this flag is that it makes item movement stuttery (no interpolation), so that's not good for appearance's sake. The correct fix is to implement proper water physics, but that's going to have to wait for now.

I found a hack for this which can be used to prevent the floating without the jittering. Fix coming soon.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

beetree picture beetree  路  3Comments

dktapps picture dktapps  路  3Comments

TheDiamondYT1 picture TheDiamondYT1  路  3Comments

Muqsit picture Muqsit  路  3Comments

Hugheth picture Hugheth  路  3Comments