Convert reactor scripts to Graal

This commit is contained in:
P0nk
2021-04-17 20:03:24 +02:00
parent 984adc7885
commit 542a7b7fd2
10 changed files with 16 additions and 29 deletions

View File

@@ -23,12 +23,10 @@
*@author Ronan
*/
importPackage(Packages.tools);
importPackage(java.awt);
function act() {
var denyWidth = 320, denyHeight = 150;
var denyPos = rm.getReactor().getPosition();
const Rectangle = Java.type('java.awt.Rectangle');
var denyArea = new Rectangle(denyPos.getX() - denyWidth / 2, denyPos.getY() - denyHeight / 2, denyWidth, denyHeight);
rm.getReactor().getMap().setAllowSpawnPointInBox(false, denyArea);