Equals '=' break angular bracket <> parsing

Issue #16 resolved
Alberto Del Villano created an issue

I can't set a custom head nbt as advancement icon I get

#!

[Server thread/ERROR] [bnbgaminglib]: Error reading script in file D:\Giochi\Minecraft\Curse\Instances\DEV InsaneVanilla 3\.\config\triumph\script\triumph\crafttweaker\heads.txt on line 1: No method of name  could be found.

The first line of heads.txt is

#!

setIcon(<minecraft:skull, meta:3, nbt:{SkullOwner:{Id:"69d3a051-e309-4257-b47a-48b032b53ea9",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMDE0MzNiZTI0MjM2NmFmMTI2ZGE0MzRiODczNWRmMWViNWIzY2IyY2VkZTM5MTQ1OTc0ZTljNDgzNjA3YmFjIn19fQ=="}]}}}>)

Tried removing the skull owner part like

#!

setIcon(<minecraft:skull, meta:3, nbt:{SkullOwner:"player_name_here"}>)

and it works.

Seems like there's a problem with parsing. Removing the '=' at the end of Value fixes the problem

Comments (1)

  1. Log in to comment