CyclopsMC / IntegratedScripting

Create scripts for handling complex operations in Integrated Dynamics
MIT License
8 stars 1 forks source link

Script crashes the game (When creating/displaying a JS object? Maybe??) #8

Closed Iris-xii closed 5 months ago

Iris-xii commented 5 months ago

Issue type:


Short description:

This specific script crashes the game when trying to run:

function makeBucket(item) {
 // return item.bucket()
 return {a: item.amount() , b: item.bucket() }
}

I apologize for the vague issue title, but I actually have no idea what's going on, or which part of this is causing the issue, other than "this makes it happen". As I was just experimenting and poking around, for now I will just, not do that

Steps to reproduce the problem:

  1. Make that script
  2. Use integrated dynamics to apply the function to a fluid
  3. Put the resulting card after applying in a display

Expected behavior:

Not a crash


Versions:

Log file:

https://pastebin.com/esnvwdVJ

Also, I know it's unrelated but really sweet mod, wanted something like this for integrated dynamics for a while! Not being limited in complexity by the point at which variable card spaghetti overwhelms me is going to be really nice

rubensworks commented 5 months ago

Thanks for reporting!