Event monster bug (#265)
* Fix the first tamming mob (monster not killed) * add Java 8 Compability
This commit is contained in:
@@ -616,7 +616,10 @@ public class EventInstanceManager {
|
||||
|
||||
sL.lock();
|
||||
try {
|
||||
inc = ((Double) em.getIv().invokeFunction("monsterValue", this, mob.getId())).intValue();
|
||||
if(ServerConstants.JAVA_8)
|
||||
inc = (int)em.getIv().invokeFunction("monsterValue", this, mob.getId());
|
||||
else
|
||||
inc = ((Double) em.getIv().invokeFunction("monsterValue", this, mob.getId())).intValue();
|
||||
} finally {
|
||||
sL.unlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user