LiteLDev / LegacyScriptEngine

A plugin engine for running LLSE plugins on LeviLamina
https://lse.liteldev.com/
GNU General Public License v3.0
43 stars 8 forks source link

[Bug]: 活塞推动事件(onPistonTryPush)方块对象坐标错误 #137

Closed zimuya4153 closed 3 months ago

zimuya4153 commented 3 months ago

Describe the bug

活塞推动方块事件,提供的方块对象,坐标错的,是活塞的坐标

To Reproduce

后台输入jsdebug mc.listen('onPistonTryPush',(pos,block)=>{log(pos,block.pos)}) 然后到游戏里使用活塞推动方块,发现两个坐标相同

Expected behavior

修复这个bug

Screenshots

No response

Platform

Windows 10

BDS Version

1.20.81-1.671+a9081c5

LeviLamina Version

LeviLamina-0.12.3+032fa4e52

LegacyScriptEngine Version

0.7.8

Additional context

No response