Storage Drawers: Natura Pack

Storage Drawers: Natura Pack

9M Downloads

Right-click and left-click hitboxes do not match.

codewarrior0 opened this issue ยท 6 comments

commented

Using version 1.6.2 (as part of FTB Infinity Evolved 2.1.2).

It is simplest to show this visually:

image

The blue lines indicate the borders between the hitboxes when left-clicking.
The green lines indicate the borders when right-clicking.

In other words, the right-click hitbox correctly matches the pixels, while the left-click hitbox does not.

The situation is similar for compacting drawers.

commented

Update: This behavior seems to vary depending on which way the drawer is facing. The above drawer was facing X+ or Z+.

With a drawer facing X- or Z-, these edges are observed:

image

commented

Interesting catch. It looks like a roundoff error in the BlockClickMessage. Minecraft gives me the the right-click hit vector on the server, but forces me to calculate my own left-click hit vector on the client and send it through a custom packet.

commented

Nice. I was wondering how that worked, since vanilla Minecraft blocks don't do anything besides break when you left-click on them.

commented

Fix available in 1.7.0.

commented

BTW, this issue is present in v2.2.1 for MC 1.8.9 where the hitboxes are slightly different, but still wrong.

commented

Ah yes. The 1.8 branch mostly stalled out after a bad merge in August. Save for some 1.8-specific improvements recently. Need to pick that up again.