tweakermore icon indicating copy to clipboard operation
tweakermore copied to clipboard

itemTooltipHideUntilMouseMove not working with Tweakeroo's shulker box preview in survival

Open JustJum11 opened this issue 11 months ago • 2 comments

Bug description

The MC Tweak "itemTooltipHideUntilMouseMove" doesn't work with the Tweakeroo tweak "tweakShulkerBoxDisplay" when in survival or adventure mode.

The vanilla tooltip disappears, but the shulker box preview still appears. The shulker box preview is still hidden as intended when in creative mode for some reason.

Image

Steps to reproduce

  1. Set Tweakeroo's "tweakShulkerBoxDisplay" to True in the Tweak tab.
  2. Set Tweakeroo's "shulkerDisplayRequireShift" to False in the Generic tab (Optional, to make it easier to see).
  3. Set TweakerMore's "itemTooltipHideUntilMouseMove" to True in the MC Tweak tab.
  4. Get a shulker box with contents inside.
  5. Switch to survival mode.
  6. Place the shulker box in your inventory such that your mouse hovers over the shulker box as soon as you open your inventory.
  7. Open your inventory again without moving the mouse (Press Shift if required).

Expected behavior

The shulker box preview should not be visible.

Actual behavior

The shulker box preview is visible.

Relevant logs

No response

Minecraft version

1.21.4

TweakerMore version

3.24.1

Other information

This was tested with just Tweakeroo 0.23.2 and MaLiLib 0.23.2 installed, with no other settings changed.

Check list

  • [x] I have verified that the issue persists in the latest version of the mod.
  • [x] I have searched the existing issues and confirmed that this is not a duplicate.

JustJum11 avatar Mar 15 '25 16:03 JustJum11

This is kind of a feature request instead of a bug report, cuz itemTooltipHideUntilMouseMove only targets the vanilla tooltip

So, it works as intended

Fallen-Breath avatar Mar 15 '25 16:03 Fallen-Breath

Oh, I just thought since it hides the preview in creative that it's unintended.

JustJum11 avatar Mar 15 '25 16:03 JustJum11

Figured out why this issue happens

This issue was introduced in the following commit: https://github.com/sakura-ryoko/malilib/commit/b4602a677ea3927d043a09a6b353d7ecfff356ff.

In this commit, the call to RenderEventHandler#onRenderTooltipLast for InventoryScreen was moved to a separate mixin, which caused the itemTooltipHideUntilMouseMove option to no longer be able to cancel the onRenderTooltipLast call. Although the cancellation was not intentional when implementing this feature, it's actually beneficial that it happens

Affected versions: malilib >= 1.21.3-0.22.0-sakura.4

Fallen-Breath avatar May 05 '25 16:05 Fallen-Breath