PowerNukkitX / PowerNukkitX-Legacy

GNU General Public License v3.0
7 stars 4 forks source link

When the Falling block entity's position change, the client will not update the position. #10

Open givegrandpaclimb opened 1 year ago

givegrandpaclimb commented 1 year ago

服务端:https://github.com/PowerNukkitX/PowerNukkitX/actions/runs/5789544370 Version: https://github.com/PowerNukkitX/PowerNukkitX/actions/runs/5789544370

对 falling block 类实体调用 teleport 等更改坐标的方法,不会同步到客户端,只有在客户端重新进入服务器之后才会更新位置。 Calling methods like "teleport" to change the coordinates of falling block type entities will not synchronize to the client. The position will only update after the client re-enters the server. image 如图所示,期望的情况是每 10 个 tick,实体向下移动一格。 实际情况是实体在原地不动(已经调用 setImmobile 防止自然坠落),玩家重新进入服务器后才会刷新一次位置。 As shown in the diagram, the expected behavior is for the entity to move down one block every 10 ticks. However, in reality, the entity remains stationary (set to be immobile to prevent natural falling), and its position only refreshes after a player re-enters the server.

这是 teleport 方法发送的数据包(从 50 降到 49): This is the data packet sent by the "teleport" method (lowering the height from 50 to 49): 1R@0L~~CFXNKA%`_VZ@F)(P

这是手动向全部玩家发送 setMotion 的数据包: This is the data packet manually sent to all players using the "setMotion" method: YRY~(805_`BT)IBXNPXILIP 均无作用。 Not work.

此外,下落方块的逻辑与 BDS 的有所差别, 在原版中,下落中的沙子可以被水中的灵魂沙冲飞 Additionally, there is a difference in logic between falling blocks in the Bedrock Dedicated Server (BDS) and the original version. In the original version, falling sand can be propelled by soul sand in water while it's falling. 3EM7NY314E9( Y~MJ_~$5 E 在 PNX 中,下落的沙子会直接落到底 In PNX, falling sand will directly fall to the bottom without being affected by other factors like propulsion from soul sand in water. ISR1_1BZE4}~@% Z`9PC22C

AzaleeX commented 1 year ago

👋 @givegrandpaclimb

can you write in english with a translator this might be for me and other people much more understandable to speak in a language that everyone understands even if you need a translator

givegrandpaclimb commented 1 year ago

@AzaleeX I'm sorry. I've already used ChatGPT to help me with the translation. Thank you!