Bassebombecraft

Bassebombecraft

18.5k Downloads

Remove type cast hack from ContagionEffect

athrane opened this issue ยท 1 comments

commented

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);

commented

Resolved with commit: f5bee22