CyclopsMC / IntegratedScripting

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

In game and website documentation error, stacksize() should be size() when called as a method #13

Closed WhiteFire-Sondergaard closed 2 months ago

WhiteFire-Sondergaard commented 2 months ago

Issue type:


Short description:

Error in documentation example giving a method name stacksize() where the correct method name is size().

Steps to reproduce the problem:

  1. Look at the documentation here: https://integrateddynamics.rubensworks.net/book/tutorials/tutorials/integratedscripting/functions.html which at the time of this writing has the following:
function filterItemMethods(item) {
  return item.isStackable() && item.stacksize() >= 16;
}

Error is also in the in-game book.

Expected behaviour:

I would expect the code to be the functional code:

function filterItemMethods(item) {
  return item.isStackable() && item.size() >= 16;
}

Versions:

Log file:

rubensworks commented 2 months ago

Thanks for reporting!