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