Event monster bug (#265)

* Fix the first tamming mob (monster not killed)

* add Java 8 Compability
This commit is contained in:
asafgb authored and Ronan Lana committed 2018-10-26 23:52:54 -03:00
1 parent 8f8cd815aa
commit 589492572a
1 file changed
+3
@@ -616,6 +616,9 @@ public class EventInstanceManager {
sL.lock();
try {
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();