Update Rhino library #1277
-
Rhino 1.7.14 has published for a while, but Purpur is still using a very outdated version. Also, this should be value = (double) scriptEngine.eval("'use strict'; { const size = " + size + "; " + equation.get() + "; }"); to reduce js overhead and prevent side effect. By the way, it would be better to avoid embedding a js engine just to compute health and damage. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Appreciate the heads up on the outdated Rhino version. Will look into updating that when I have time.
Will look into that as well.
Currently it's used to allow the end-user to define their own equation for calculating a slime's health and damage (and for any other equations a server owner would like to modify easily). By default a slime's max health is The only reason we include rhino.js is because oracle removed nashorn. Otherwise we'd use that instead. |
Beta Was this translation helpful? Give feedback.
Appreciate the heads up on the outdated Rhino version. Will look into updating that when I have time.
Will look into that as well.
Currently it's used to allow the end-user to define their own equation for calculating a slime's health and damage (and for any other equations a server owner would like to modify easily). By defa…