Fixed net disconnect error

This commit is contained in:
Anuken 2019-06-19 22:20:45 -04:00
parent 8e95be0ac2
commit 228690b400

View File

@ -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){