Fix offhand hud slot incorrect scaling with non 16x texture packs #2725

Merged
cora merged 1 commits from :offhand_hud into master 2022-10-07 02:17:49 +02:00
Member

Fixes the offhand hud slot scaling incorrectly bug when using non 16x texture packs as shown here when using a 64x pack:

The offhand slot was not quite the same size as the main slots even when using 16x textures, that's fixed too.

Also the inventory item displayed in the offhand slot was scaled slightly bigger than it should have been and was being scaled to dimensions that were not divisible by 4 which was causing slight distortions as seen here:

Barely noticable but made sense to fix that too while I was there.

Tested with 16x and 64x textures and all seems fine now.

Fixes the offhand hud slot scaling incorrectly bug when using non 16x texture packs as shown here when using a 64x pack: ![](https://i.imgur.com/iBtkhUG.png) The offhand slot was not quite the same size as the main slots even when using 16x textures, that's fixed too. Also the inventory item displayed in the offhand slot was scaled slightly bigger than it should have been and was being scaled to dimensions that were not divisible by 4 which was causing slight distortions as seen here: ![](https://i.imgur.com/z8Vq0El.png) Barely noticable but made sense to fix that too while I was there. Tested with 16x and 64x textures and all seems fine now.
talamh added 1 commit 2022-10-06 23:07:01 +02:00
Contributor

What texture pack is this? I love those mushrooms. :D

What texture pack is this? I love those mushrooms. :D
Author
Member

What texture pack is this? I love those mushrooms. :D

It's the Minecraft MadPixels resource pack https://www.planetminecraft.com/texture-pack/mad-pixels-cartoony-16x/ great for testing texture related issues as it comes in 16x and 64x versions. Looks great in Mineclone.

> What texture pack is this? I love those mushrooms. :D It's the Minecraft MadPixels resource pack https://www.planetminecraft.com/texture-pack/mad-pixels-cartoony-16x/ great for testing texture related issues as it comes in 16x and 64x versions. Looks great in Mineclone.
cora merged commit 3b92a5b0d2 into master 2022-10-07 02:17:20 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: VoxeLibre/VoxeLibre#2725
No description provided.