mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Fixed darkness rendering with the encorrect state
This commit is contained in:
parent
a98b027f0f
commit
a35ec07dcf
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ public abstract class AbstractAttachableSpell extends AbstractSpell {
|
|||
setDirty(true);
|
||||
}
|
||||
|
||||
return targettedEntity != null;
|
||||
return targettedEntityId != null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue