Fix event scripts' getEligibleParty

Cannot return a JavaScript array straight up
(otherwise you'll get a PolyglotMap):
it has to be converted first from inside the script.
This commit is contained in:
P0nk
2021-05-21 19:09:40 +02:00
parent bcefd42093
commit 095008a20f
41 changed files with 47 additions and 47 deletions

View File

@@ -112,7 +112,7 @@ function getEligibleParty(party) { //selects, from the given party, the tea
}
if(!(hasLeader)) eligible = [];
return eligible;
return Java.to(eligible, Java.type('net.server.world.MaplePartyCharacter[]'));
}
function setup(level, lobbyid) {