package mods.crank;

import game.AbstractVehicleFactory;
import game.vehicles.Car;
import game.Terrain;
import game.Vehicle;
import mods.crank.vehicles.Boat;
import mods.crank.vehicles.Forklift;
import mods.crank.vehicles.Tank;

public class VehicleFactory extends game.VehicleFactory {
    @Override
    public Vehicle createVehicle(Terrain terrain) {
        switch (terrain){
            case ROAD:
                return new Car();

            case WATER:
                return new Boat();

            case OFFROAD:
                return new Tank();

            case INDUSTRIAL:
                return new Forklift();

            default:
                return null;
        }
    }
}

@@ -376,66 +376,8 @@
 n)%7B%0A
-            case ROAD:%0A                return new Car();%0A%0A
     
@@ -611,12 +611,36 @@
 urn 
-null
+super.createVehicle(terrain)
 ;%0A  

Update VehicleFactory in Crank Mod (remove implementation for vehicle car and add super.createVehicle(terrain) for default)