添加DefaultVehicleData默认id补全
This commit is contained in:
parent
4f3f5a38c8
commit
bd021dcf8a
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ public class VehicleDataTool {
|
||||||
var path = entry.getKey().getPath();
|
var path = entry.getKey().getPath();
|
||||||
id = Mod.MODID + ":" + path.substring(VEHICLE_DATA_FOLDER.length() + 1, path.length() - VEHICLE_DATA_FOLDER.length() - 1);
|
id = Mod.MODID + ":" + path.substring(VEHICLE_DATA_FOLDER.length() + 1, path.length() - VEHICLE_DATA_FOLDER.length() - 1);
|
||||||
Mod.LOGGER.warn("Vehicle ID for {} is empty, try using {} as id", id, path);
|
Mod.LOGGER.warn("Vehicle ID for {} is empty, try using {} as id", id, path);
|
||||||
|
data.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!vehicleData.containsKey(id)) {
|
if (!vehicleData.containsKey(id)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue