Exception handling for Harvester Service future executor handler

This should show any runtime exceptions of the Runnable(), because
something kills the task after some time, probably an exception.
This commit is contained in:
CharonInferar
2014-04-13 14:38:39 +02:00
parent 5331cd67dc
commit a3d7472197
2 changed files with 38 additions and 7 deletions
+1 -2
View File
@@ -397,8 +397,7 @@ public class ObjectService implements INetworkDispatch {
float positionY = core.terrainService.getHeight(planet.getID(), position.x, position.z)-1f;
Point3D newpoint = new Point3D(position.x,positionY,position.z);
object = new HarvesterObject(objectID, planet, Template, newpoint, orientation);
core.harvesterService.addHarvester(object);
object = new HarvesterObject(objectID, planet, Template, newpoint, orientation);
} else {
return null;