Yesterday17 / ZenScript

Visual Studio Code extension/Language Server for ZenScript, includes highlight, code snippet and language server(WIP). Works with 👇
https://github.com/Yesterday17/Probe
MIT License
34 stars 4 forks source link

[Bug] custom ore dictionary entry #35

Open rlnt opened 4 years ago

rlnt commented 4 years ago

When you try to create a new custom ore dictionary entry, you get an error.

My code:

<ore:flowerMystical>.add(<botania:flower:*>);

This is a not yet registered ore dictionary entry. Therefor you get the error:

BracketHandler <ore:flowerMystical> does not exist.

That's normal because it's not yet dumped into the zsrc cache. The crafttweaker log says:

[INITIALIZATION][CLIENT][INFO] Adding tile.botania:flower32767.name to ore dictionary entry flowerMystical

So it's definitely working which also is visible when I dump the whole oredict registry:

Ore entries for <ore:flowerMystical> :
-<botania:flower:*>

But even after deleting the .zsrc and restarting the game, it still says that the bracket handler does not exist. It seems like Probe does not dump self-created oredict entries properly.

Minecraft: 1.12.2 Zenscript extension: 0.27 Probe: 0.1.24 VSCode: 1.48.0

rlnt commented 4 years ago

Just a little more information after some testing. Custom ore dictionary entries work if you defined them once with the var keyword. That means if you do it like that:

var flowersMystical = <ore:flowerMystical>;
<ore:flowerMystical>.add(<botania:flower:*>);

and then start you game once, it will be cached and is available.