CraftTweaker

CraftTweaker

151M Downloads

Can't pass a function as a parameter to a user-defined function

iridiumlynx opened this issue ยท 0 comments

commented

Intro:

While I was creating some scripts, I encountered this issue.

Issue Description:

Script compiles normally, but causes a weird run-time exception.

What happens:

A java.lang.ArrayOutOfBoundsException

What you expected to happen:

No run-time exceptions.

Script used (Please Pastebin or gist your script, posting an unpasted or ungist'd script will automatically close this issue):

https://pastebin.com/rBwpVfbh

crafttweaker.log file (Please Pastebin or gist your file, posting an unpasted or ungist'd file will automatically close this issue):

https://pastebin.com/nte555ZA


Affected Versions (Do not use "latest"):

  • Minecraft: 1.12.2
  • Forge: 1.12.2-14.23.5.2768
  • Crafttweaker: 1.12-4.1.14
  • Using a server: no

Your most recent log file where the issue was present:

https://pastebin.com/mz68VA3j