v0.3.0b: fixed some freeze and crash bugs relating to actors
This commit is contained in:
parent
d450114d2d
commit
4f177d305e
|
@ -193,7 +193,7 @@ public abstract class Actor implements Bundlable {
|
|||
|
||||
//some actors will always go before others if time is equal.
|
||||
if (actor.time < now ||
|
||||
actor.time == now && actor.actPriority < current.actPriority) {
|
||||
actor.time == now && (current == null || actor.actPriority < current.actPriority)) {
|
||||
now = actor.time;
|
||||
current = actor;
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ public class Regeneration extends Buff {
|
|||
if (regenBuff.isCursed())
|
||||
spend( REGENERATION_DELAY * 1.5f );
|
||||
else
|
||||
spend( regenBuff.level()*0.9f );
|
||||
spend( REGENERATION_DELAY - regenBuff.level()*0.9f );
|
||||
else
|
||||
spend( REGENERATION_DELAY );
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user