You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Put two different planks types in your inventory that have a slab and stair variant.
Place one of each planks, slab and stair in the world.
Middle click slabs and stairs.
The planks correctly get moved to and selected in the hotbar.
Slab and stair variant is correctly selected when they are picked.
Middle click planks.
The planks correctly get moved to and selected in the hotbar.
However, current variant is not reset – the previous variant (slab or stair) stays selected.
Thoughts
Browsing through the code a little, could this be because the original item is not considered a variant, and thus the following code does not reset the currently selected variant?
Relatedly, the inventory check should be skipped in creative mode, for variant picking to work in creative when you don't already have the original item in your inventory. Otherwise, the variant block is picked and put in the hotbar.
Minecraft:
1.20.1
NeoForge:
47.1.106
Quark:
4.0-460
Reproduction
Thoughts
Browsing through the code a little, could this be because the original item is not considered a variant, and thus the following code does not reset the currently selected variant?
Quark/src/main/java/org/violetmoon/quark/content/experimental/module/VariantSelectorModule.java
Lines 269 to 272 in aa23a93
The variant might also need to be reset if
(baseBlock == pickedBlock)
.The text was updated successfully, but these errors were encountered: