Remove type cast hack from ContagionEffect
athrane opened this issue ยท 1 comments
Affected code:
/**
* Create AOE effect operators:
*/
static Supplier<Operator2> splAoeEffectOp = () -> {
// IsEffectActive2 + AddEffect2: HACK to type cast from entity to living entity
Function<Ports, LivingEntity> fnGetTarget = p -> (LivingEntity) applyV(getFnGetEntity2(), p);
and:
/**
* Create AOE effect operators.
*/
static Supplier<Operator2> splAoeEffectOp2 = () -> {
// IsEffectActive2 + AddEffect2: HACK to type cast from entity to living entity
Function<Ports, LivingEntity> fnGetTarget = p -> (LivingEntity) applyV(getFnGetEntity2(), p);
Resolved with commit: f5bee22