mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27: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);
|
setDirty(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return targettedEntity != null;
|
return targettedEntityId != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue