Carpet fake players can use item in their hand when looking at an armor stand
Youmiel opened this issue ยท 1 comments
What Happened
Carpet fake players can use items in their hands when looking at an armor stand.
2024-07-28_22-58-57_out.mp4
Expected Behavior
Carpet fake players should not use items in their hands when looking at an armor stand, which is the behavior of vanilla clients.
Possible Causes
fabric-carpet/src/main/java/carpet/helpers/EntityPlayerActionPack.java
Lines 329 to 359 in e8ea849
The reason is the interactAt() of armor stand entity would always return CONSUME in client even if not action is performed, while in server it checks.
Another similar issue comes at interact with a boat or minecart when riding any vehicles, etc. So in the server side the check will fail as it unable to ride, while in client side it always return a SUCCESS.