local FILLTYPES = {
	"MAIZECOB"
}
PlaceableSellingStation.onLoad = Utils.overwrittenFunction(PlaceableSellingStation.onLoad, function (self, superFunc, savegame, ...)
	superFunc(self, savegame, ...)

	if self.xmlFile.filename:lower():contains("maize") then
		return true
	end

	local spec = self.spec_sellingStation
	local sellingStation = spec.sellingStation

	for fillTypeIndex, _ in pairs(sellingStation.supportedFillTypes) do
		if fillTypeIndex == FillType.MAIZE then
			for _, fillTypeName in ipairs(FILLTYPES) do
				local fillType = g_fillTypeManager:getFillTypeByName(fillTypeName)

				if fillType ~= nil and sellingStation.supportedFillTypes[fillType.index] == nil then
					sellingStation.supportedFillTypes[fillType.index] = true
					local price = fillType.pricePerLiter
					local supportsGreatDemand = true
					local disablePriceDrop = false

					sellingStation:addAcceptedFillType(fillType.index, price, supportsGreatDemand, disablePriceDrop)

					for _, unloadTrigger in pairs(sellingStation.unloadTriggers) do
						unloadTrigger.fillTypes[fillType.index] = true
					end
				end
			end

			sellingStation:initPricingDynamics()
			sellingStation:updateSupportedFillTypes()
		end
	end

	return true
end)
