mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-12 03:37:27 +07:00
Player spawning bugfix
This commit is contained in:
parent
c9520e607f
commit
441680861e
@ -855,13 +855,13 @@ public class Player extends Unit implements BuilderMinerTrait, ShooterTrait{
|
||||
byte mechid = stream.readByte();
|
||||
int spawner = stream.readInt();
|
||||
Tile stile = world.tile(spawner);
|
||||
if(stile != null && stile.entity instanceof SpawnerTrait){
|
||||
lastSpawner = (SpawnerTrait)stile.entity;
|
||||
}
|
||||
Player player = headless ? this : Vars.player;
|
||||
player.readSaveSuper(stream, version);
|
||||
player.mech = content.getByID(ContentType.mech, mechid);
|
||||
player.dead = false;
|
||||
if(stile != null && stile.entity instanceof SpawnerTrait){
|
||||
player.lastSpawner = (SpawnerTrait)stile.entity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user