EventManager jdk7 patch
Fixed a code bug when compiling with Java 7.
This commit is contained in:
@@ -60,7 +60,6 @@ import net.server.audit.LockCollector;
|
||||
import net.server.audit.locks.MonitoredLockType;
|
||||
import net.server.audit.locks.MonitoredReentrantLock;
|
||||
import net.server.audit.locks.factory.MonitoredReentrantLockFactory;
|
||||
import jdk.nashorn.api.scripting.ScriptUtils;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -647,10 +646,15 @@ public class EventManager {
|
||||
|
||||
if(p != null) {
|
||||
List<MaplePartyCharacter> lmpc;
|
||||
|
||||
/*
|
||||
if(ServerConstants.JAVA_8)
|
||||
lmpc = new ArrayList<>(((Map<String, MaplePartyCharacter>)(ScriptUtils.convert(p, Map.class))).values());
|
||||
else
|
||||
lmpc = new ArrayList<>((List<MaplePartyCharacter>) p);
|
||||
*/
|
||||
|
||||
lmpc = new ArrayList<>((List<MaplePartyCharacter>) p);
|
||||
party.setEligibleMembers(lmpc);
|
||||
return lmpc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user