mirror of
https://github.com/BeamMP/BeamNG-FuelStations.git
synced 2025-07-01 23:35:46 +00:00
Update fuelStation.lua
This commit is contained in:
parent
8fb020cba8
commit
7f6ea8f115
@ -39,11 +39,11 @@ local function getFuelType()
|
||||
end
|
||||
for _, storage in pairs(energyStorage.getStorages()) do
|
||||
if storage.type == "fuelTank" then
|
||||
log('I',"[Fuel Stations]", "found gas tank")
|
||||
--log('I',"[Fuel Stations]", "found gas tank")
|
||||
obj:queueGameEngineLua("if fuelStations then fuelStations.setFuelType("..obj:getID()..",'gas') end")
|
||||
return
|
||||
elseif storage.type == "electricBattery" then
|
||||
log('I',"[Fuel Stations]", "found ev battery")
|
||||
--log('I',"[Fuel Stations]", "found ev battery")
|
||||
obj:queueGameEngineLua("if fuelStations then fuelStations.setFuelType("..obj:getID()..",'ev') end")
|
||||
return
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user