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
In survival, pick-block on a schematic block that is either Correct or Missing does not obey Litematica’s pickBlockableSlots setting, even when pickBlockAvoidTools is set to False. In other words filling the hotbar with tools is not the reason pickBlockableSlots is ignored. I suspect the reason is because ItemSwapper has its own pick block behavior in the Litematica mixin.
In creative, pick block on a Missing schematic block does not give you the item, but if you have the item in "survival inventory" (in creative mode) then the item does get swapped to hotbar.
Actual Behavior
The item should be swapped to the hotbar into a slot that obeys Litematica’s pickBlockableSlots setting. This is the observed behavior when ItemSwapper is not installed.
The item should be given to the player in creative if necessary, similar to what Litematica does when ItemSwapper is not installed.
Reproduction Steps
In survival:
Load a schematic containing stone blocks
set litematicas pickBlockableSlots to 4,5,6,7
put swords in slots 1,2,3
Fill hotbar with dirt
put stone in inventory
do pick block on the ghost stone while holding a sword. Notice that the sword is replaced with stone instead of the stone going into one of the dirt slots.
I had to fully overwrite Litematicas pickblock logic since there is no way to hook it otherwise(it runs+canceles before any vanilla logic I could hook). Will have to look into how far I can simulate that behavior/hook further down in litematica.
Version information
itemswapper-fabric-0.5.3-mc1.20.1.jar
Other relevant installed mods
malilib 1.20.1-0.16.2, Litematica 1.20.1-0.15.3
Expected Behavior
Actual Behavior
Reproduction Steps
4,5,6,7
Render engine
Additional information
ItemSwapper/XTFabric/src/main/java/dev/tr7zw/itemswapper/mixin/LitematicaMixin.java
Line 23 in 38a3fdf
The text was updated successfully, but these errors were encountered: