mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-13 00:05:23 +07:00
Update Statuses.java
This commit is contained in:
parent
7ae90f655c
commit
dbe7251c6b
@ -41,7 +41,7 @@ public class Statuses implements Saveable{
|
||||
entry.effect.getTransition(unit, effect, entry.time, duration, globalResult);
|
||||
entry.time = globalResult.time;
|
||||
|
||||
if(globalResult.effect != entry.effect){
|
||||
if(globalResult.effect != entry.effect && globalResult.effect != null){
|
||||
entry.effect = globalResult.effect;
|
||||
}
|
||||
|
||||
@ -127,6 +127,7 @@ public class Statuses implements Saveable{
|
||||
public void writeSave(DataOutput stream) throws IOException{
|
||||
stream.writeByte(statuses.size);
|
||||
for(StatusEntry entry : statuses){
|
||||
|
||||
stream.writeByte(entry.effect.id);
|
||||
stream.writeFloat(entry.time);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user