mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-05-05 03:36:32 -07:00
Fixed #11821
This commit is contained in:
parent
377d98e2e4
commit
c12324d678
1 changed files with 5 additions and 0 deletions
|
|
@ -304,6 +304,11 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
|
|||
unit.team(team);
|
||||
unit.controller(this);
|
||||
|
||||
//this player just became remote, snap the interpolation so it doesn't go wild
|
||||
if(unit.isRemote() && !net.client()){
|
||||
unit.snapInterpolation();
|
||||
}
|
||||
|
||||
//reset selected block when switching units
|
||||
if(!headless && isLocal()){
|
||||
control.input.block = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue