use of org.terasology.network.NetworkSystem in project Terasology by MovingBlocks.
the class SetupRemotePlayer method step.
@Override
public boolean step() {
NetworkSystemImpl networkSystem = (NetworkSystemImpl) context.get(NetworkSystem.class);
EntityRef client = networkSystem.getServer().getClientEntity();
if (client.exists()) {
context.get(LocalPlayer.class).setClientEntity(client);
return true;
}
return false;
}
Aggregations