[BUGFIX] Fixed ClassCastException

This commit is contained in:
Sandro Coutinho
2018-03-06 18:20:12 +00:00
parent 5cd11bf9e6
commit 20111e243d
@@ -1,9 +1,9 @@
package org.parabot.randoms.soulplay;
import org.parabot.core.Context;
import org.parabot.core.reflect.RefClass;
import org.parabot.environment.randoms.Random;
import org.parabot.environment.randoms.RandomType;
import org.rev317.min.Loader;
/**
* @author SCoutinho
@@ -15,7 +15,7 @@ public class RandomUUID implements Random {
private long number;
public RandomUUID() {
this.clientClass = (RefClass) Context.getInstance().getClient();
this.clientClass = new RefClass(Loader.getClient());
this.number = (long) Math.floor(Math.random() * 9000000000L) + 1000000000L;
}