From 228690b4002af72d17b53bd686cc39d424353254 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 19 Jun 2019 22:20:45 -0400 Subject: [PATCH] Fixed net disconnect error --- core/src/io/anuke/mindustry/core/NetClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/core/NetClient.java b/core/src/io/anuke/mindustry/core/NetClient.java index 85490ec2db..24b3e17447 100644 --- a/core/src/io/anuke/mindustry/core/NetClient.java +++ b/core/src/io/anuke/mindustry/core/NetClient.java @@ -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){