Stack Error with itemUtils.getItemsByRegexRegistryName()
clubpetey opened this issue ยท 0 comments
Issue Description:
Note: If this bug occurs in a modpack, please report this to the modpack author. Otherwise, delete this line and add your description here. If you are using an unnofficial version of Minetweaker or Crafttweaker please report it to the person who gave you the version. Also please look at the other issues to make sure that you are not creating a duplicate.
calling the function shown below creates an error -- "Stack cannot be null" itemUtils.getItemsByRegexRegistryName(".*minecraft.*")
What happens:
Best guess is that one of the registry matches is returning a null ItemStack. Note that the following function works with no error:
itemUtils.getItemsByRegexRegistryName(".*potion.*")
What you expected to happen:
No error if the registry returns a null ItemStack, it should just be skipped.
Script used (Please Pastebin or gist your script, posting an unpasted or ungist'd script will automatically close this issue):
provided above...
crafttweaker.log file (Please Pastebin or gist your file, posting an unpasted or ungist'd file will automatically close this issue):
Affected Versions (Do not use "latest"):
- Minecraft: 1.12.2
- Forge: 2795
- Crafttweaker: 4.1.13
- Using a server: No
- If yes, does the client have the exact same scripts?