Illager Revolution

Illager Revolution

188k Downloads

Bladeknigth deathmark logic is too laggy

someaddons opened this issue ยท 0 comments

commented

if (!(entity.hasEffect(InitEffect.DEATH_MARK.get())) && Util.entitydeterminar(entity) != null) {

The logic used here for applying a deathmark on certain entities when a BladeKnightEntity is around is very laggy, as it searches for nearby entities
for each entity of that type ticking.

This logic should be part of the BladeKnightEntity's tick function or AI, the BladeKnightEntity should scan its environment for their target instead of scanningall entities for a nearby BladeKnightEntity