blackd / Inventory-Profiles

Take control over you inventory. Sort. Move matching/all Items. Throw all/all items. Locked slots. Gear sets! And much more!
https://inventory-profiles-next.github.io/
GNU Affero General Public License v3.0
152 stars 50 forks source link

[1.20.1] Item custom names with quotes doens't work with profiles #352

Open markaabo opened 1 year ago

markaabo commented 1 year ago

Have you asked for help on discord?

NO

Minecraft Version/s

1.20.1

Modloader

Forge

Modloader Version

47.1.44

Operating System

Windows

List of all other installed mods

adaptive_performance_tweaks_core_1.20.1-9.1.0.jar adaptive_performance_tweaks_spawn_1.20.1-9.1.0.jar AdditionalEnchantedMiner-1.20.1-1201.0.11-SNAPSHOT.jar AI-Improvements-1.20-0.5.2.jar AmbientSounds_FORGE_v5.2.22_mc1.20.1.jar appleskin-forge-mc1.20.1-2.5.0.jar architectury-9.1.12-forge.jar Bookshelf-Forge-1.20.1-20.0.2.jar canary-mc1.20.1-0.2.7.jar carryon-forge-1.20.1-2.1.0.1.jar Chunky-1.3.92.jar cloth-config-11.1.106-forge.jar collective-1.20.1-6.65.jar Companion-1.20.1-forge-5.0.1.jar connectivity-1.20.1-4.5.jar create-1.20.1-0.5.1.d.jar createaddition-1.20.1-1.0.0b.jar CreativeCore_FORGE_v2.10.34_mc1.20.1.jar cupboard-1.20.1-1.7.jar DripSounds-1.19.4-0.3.2.jar EdivadLib-1.20.1-2.0.0.jar EnchantmentDescriptions-Forge-1.20.1-17.0.3.jar ExplorersCompass-1.20.1-1.3.3-forge.jar ExtraStorage-1.20.1-4.0.1.jar farsight-1.20.1-3.3.jar FastLeafDecay-31.jar ferritecore-6.0.0-forge.jar FileLister_Output.txt FileLister_v1.0.1.bat flib-1.20.1-0.0.9.jar InventoryProfilesNext-forge-1.20-1.10.6.jar Jade-1.20.1-forge-11.5.1.jar JadeAddons-1.20.1-forge-5.2.0.jar jei-1.20.1-forge-15.2.0.27.jar JustEnoughResources-1.20.1-1.4.0.238.jar kotlinforforge-4.4.0-all.jar libIPN-forge-1.20-3.0.2.jar light-overlay-8.0.0-forge.jar Mekanism-1.20.1-10.3.9.homebaked-all.jar memoryleakfix-forge-1.17+-1.1.1.jar modernfix-forge-5.7.0+mc1.20.1.jar MouseTweaks-forge-mc1.20-2.25.jar nametagtweaks-1.20.1-3.0.jar NaturesCompass-1.20.1-1.11.2-forge.jar oculus-flywheel-compat-1.20.1-0.2.0.jar oculus-mc1.20-1.6.4.jar open-parties-and-claims-forge-1.20.1-0.19.3.jar pipez-1.20.1-1.1.4.jar polymorph-forge-0.49.0+1.20.1.jar Powah-5.0.1.jar refinedstorage-1.12.3.jar refinedstorageaddons-0.10.0.jar rubidium_extras-1.20.1_v1.4.3.jar rubidium-0.6.5.jar ScalableCatsForce-3.3.0-build-2-with-library.jar ServerTabInfo-1.20-1.3.8.jar SimpleBackups-1.20.1-3.1.2.jar simpletomb-1.20.1-1.3.0.jar soundphysics-forge-1.20.1-1.1.2.jar spark-1.10.42-forge.jar XaeroPlus-Forge-1.20.1-27-WM1.33.0-MM23.6.2.jar Xaeros_Minimap_23.6.2_Forge_1.20.jar XaerosWorldMap_1.33.0_Forge_1.20.jar

Describe the problem

Inventory profiles does not work when having items in your hotbar which has custom names that includes "" quote markes

Profile Config:


profile Normal activate HOT4
    HOT1
        "mekanism:atomic_disassembler"
    HOT2
        "minecraft:diamond_pickaxe"("[The "A Silky" Pick]") -> "Enchantments" : [{id:"minecraft:silk_touch",lvl:1},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:efficiency",lvl:5},{id:"minecraft:mending",lvl:1}]
    HOT8
        "mekanism:configurator"
    HOT9
        "minecraft:golden_carrot"
    HEAD
        "create:goggles"
    CHEST
        "mekanism:jetpack_armored"
    LEGS
        "minecraft:diamond_leggings" -> "Enchantments" : [{id:"minecraft:mending",lvl:1},{id:"minecraft:unbreaking",lvl:3}]
    FEET
        "mekanism:free_runners_armored"

Screenshot of error: 2023-08-20_10 46 01

Steps to reproduce

Install Mod Enable custom names for profiles Rename item with a name that has "" quote marks Save profile Try to use it

I have tried to reproduce the problem with only or without "Inventory Profiles Next" and its dependencies installed.

markaabo commented 1 year ago

try escaping the quotes by adding \ before them

Just tried it, and it just gets rid of the error but the item that has the custom name doesnt get moved to the slot, seems like its looking for an item with the "\" infront of the quotes instead of the item without the "\"

Sorry i thought it was directly a bug since the error popped up and it wasnt like a behavior thing, but still using the \ doesnt work

blackd commented 1 year ago

the issue was cleared of non related conversation about who is the bigger jerk.