mirror of
https://github.com/BeamMP/BeamNG-FuelStations.git
synced 2025-07-03 00:05:30 +00:00
Update fuelStation.lua
This commit is contained in:
parent
8fb020cba8
commit
7f6ea8f115
@ -39,11 +39,11 @@ local function getFuelType()
|
|||||||
end
|
end
|
||||||
for _, storage in pairs(energyStorage.getStorages()) do
|
for _, storage in pairs(energyStorage.getStorages()) do
|
||||||
if storage.type == "fuelTank" then
|
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")
|
obj:queueGameEngineLua("if fuelStations then fuelStations.setFuelType("..obj:getID()..",'gas') end")
|
||||||
return
|
return
|
||||||
elseif storage.type == "electricBattery" then
|
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")
|
obj:queueGameEngineLua("if fuelStations then fuelStations.setFuelType("..obj:getID()..",'ev') end")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user