Fixed darkness rendering with the encorrect state

This commit is contained in:
Sollace 2019-02-17 19:21:54 +02:00
parent a98b027f0f
commit a35ec07dcf
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ public abstract class AbstractAttachableSpell extends AbstractSpell {
setDirty(true); setDirty(true);
} }
return targettedEntity != null; return targettedEntityId != null;
} }
@Nullable @Nullable

View file

@ -173,7 +173,7 @@ public class SpellDarkness extends AbstractAttachableSpell {
public void render(ICaster<?> source) { public void render(ICaster<?> source) {
int radius = 7 + (source.getCurrentLevel() * 3); int radius = 7 + (source.getCurrentLevel() * 3);
boolean tamed = !searching; boolean tamed = hasTarget();
int tint = tamed ? 0xFFFFFF : 0x000000; int tint = tamed ? 0xFFFFFF : 0x000000;