entity=newEntityVehicle(scene,targetPlayer.getSession().getPlayer(),gadgetData.getId(),0,pos,targetPlayer.getRotation());// TODO: does targetPlayer.getSession().getPlayer() have some meaning?
intgadgetId=gadgetData.getId();
intgadgetId=gadgetData.getId();
switch(gadgetId){
switch(gadgetId){
// TODO: Not hardcode this. Waverider (skiff)
// TODO: Not hardcode this. Waverider (skiff)
...
@@ -74,15 +94,12 @@ public final class SpawnCommand implements CommandHandler {
...
@@ -74,15 +94,12 @@ public final class SpawnCommand implements CommandHandler {