-- author: DD ModPassion
-- date: 14.04.2021
-- copyright (C): DD ModPassion, All Rights Reserved
-- version: farming simulator 19
FillTypesAddon = {} function FillTypesAddon.prerequisitesPresent(specializations) return true end function FillTypesAddon.registerEventListeners(vehicleType) SpecializationUtil.registerEventListener(vehicleType, "onLoad", FillTypesAddon) end function FillTypesAddon:onLoad(savegame) local fillTypeNames = "compost" local fillTypes = g_fillTypeManager:getFillTypesByNames(fillTypeNames, nil) if fillTypes ~= nil then for _,fillType in pairs(fillTypes) do self.spec_fillUnit.fillUnits[1].supportedFillTypes[fillType] = true end end end