CC: Tweaked turtle.place() method triggering harvest.js kubejs script causing player arm swing animation.
mahss-io opened this issue ยท 1 comments
Mod Pack Version: ATM 7 0.3.19 and above.
So I was playing ATM 7 0.3.12, before harvest.js was added and Croptopia right click functionally was removed. I wanted to update the pack so I just grabbed the newest version at the time (0.3.21). After updating I loaded the world and I noticed that my players arm was swigging from time to time. This issue is a nitpick/probably does not effect that many player but I just thought I would let you all know.
I started looking into it and found out it was being caused when a CC: Tweaked Turtle would run the turtle.place() on a crop when holding any item (not block). From there I tracked down that the crop right-click harvest ability was removed and re-added with a kubejs script. I threw a console.log(mcPlayer);
in the harvest.js and saw that, whether it was the CC Turtle or my player it logged the exact same player info.
[Server thread/INFO] [KubeJS Server/]: server_scripts:harvest.js:10: ServerPlayer['Mahss'/784, l='ServerLevel[AWorld]', x=-273.92, y=-14.06, z=-126.10] [net.minecraft.server.level.ServerPlayer]
This might be fixable by updating the harvest.js script here but I don't know myself. After typing this up it is sounding more like a CC: Tweaked or KubeJS issue but again I though I would let you know. I myself, am just going to remove the code for the player swigging there arm in harvest.js.