From a35ec07dcfebf6e8c7d533f9be7becb9b2860f4b Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 17 Feb 2019 19:21:54 +0200 Subject: [PATCH] Fixed darkness rendering with the encorrect state --- .../minelittlepony/unicopia/spell/AbstractAttachableSpell.java | 2 +- .../java/com/minelittlepony/unicopia/spell/SpellDarkness.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/spell/AbstractAttachableSpell.java b/src/main/java/com/minelittlepony/unicopia/spell/AbstractAttachableSpell.java index 454c7afe..353c8b2d 100644 --- a/src/main/java/com/minelittlepony/unicopia/spell/AbstractAttachableSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/spell/AbstractAttachableSpell.java @@ -36,7 +36,7 @@ public abstract class AbstractAttachableSpell extends AbstractSpell { setDirty(true); } - return targettedEntity != null; + return targettedEntityId != null; } @Nullable diff --git a/src/main/java/com/minelittlepony/unicopia/spell/SpellDarkness.java b/src/main/java/com/minelittlepony/unicopia/spell/SpellDarkness.java index 05cb8a12..599c689b 100644 --- a/src/main/java/com/minelittlepony/unicopia/spell/SpellDarkness.java +++ b/src/main/java/com/minelittlepony/unicopia/spell/SpellDarkness.java @@ -173,7 +173,7 @@ public class SpellDarkness extends AbstractAttachableSpell { public void render(ICaster source) { int radius = 7 + (source.getCurrentLevel() * 3); - boolean tamed = !searching; + boolean tamed = hasTarget(); int tint = tamed ? 0xFFFFFF : 0x000000;