Inventory items large hitboxes - default client

The worst monsters in the Hearthlands warp the fabric of space and time...
kmarad
Posts: 150
Joined: Mon Jan 06, 2020 7:46 pm

Re: Inventory items large hitboxes - default client

Post by kmarad »

Nightdawg wrote:Also holy shit how big is your screen?
4k also when using jre 23 the game screen as a much higher resolution than java 8
h3lblad3
Posts: 37
Joined: Sun Feb 07, 2010 6:37 pm

Re: Inventory items large hitboxes - default client

Post by h3lblad3 »

Here to +1 this thread.

This is still an ongoing bug reproduceable in Default.

At 4k resolution with Interface Scale turned above 1.50x (mine is at 2.60x), the hitboxes on items that are at least 2 squares in size extend to a third square.

This means that:
- 2 square wide items become 3 squares wide.
- 2 square tall items become 3 squares tall.
- 4 square items (like armor) take up a full 9 squares.

Note:
Because the hitboxes are too big, it's impossible to click the items to the right of a wide item or beneath a tall item.

___

This also appears to place stack boxes further from the item (to account for the extra squares taken), making it extremely difficult to click items from stacks that take up multiple tiles (like skins).

___

Example of what I mean:

https://i.imgur.com/xDkd23G.mp4
User avatar
catgode
Posts: 36
Joined: Tue Sep 10, 2019 9:31 pm
Location: Stonehut

Re: Inventory items large hitboxes - default client

Post by catgode »

That explains a lot then.

I don't know how many items are out there that are bigger than 2x2, but I recall - on Ender with 1.2x scale. - having similar issues with pumpkins (3x3), so technically any scaling will produce issues at this point (although less noticeable at lower values).
User avatar
Nightdawg
Posts: 2637
Joined: Fri Feb 28, 2020 12:31 am

Re: Inventory items large hitboxes - default client

Post by Nightdawg »

I made a PR to fix this bug @loftar

https://github.com/dolda2000/hafen-client/pull/20

It's just one line you need to change in the code

Image

Image
jorb wrote: I do not want to over-promise or hype up stuff that could be months out.
"Our primary development direction is toward object-controlled-objects"

Return to “Bugs”