mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-12 03:37:27 +07:00
Fixed net disconnect error
This commit is contained in:
parent
8e95be0ac2
commit
228690b400
@ -251,7 +251,7 @@ public class NetClient implements ApplicationListener{
|
||||
//read the entity
|
||||
entity.read(input);
|
||||
|
||||
if(created){
|
||||
if(created && entity.getInterpolator() != null){
|
||||
//set initial starting position
|
||||
entity.setNet(entity.getInterpolator().target.x, entity.getInterpolator().target.y);
|
||||
if(entity instanceof Unit && entity.getInterpolator().targets.length > 0){
|
||||
|
Loading…
Reference in New Issue
Block a user