I'm trying to put a fuel item in a burner of a locomotive with my mod.
I've stored this element in a global variable at the beginning (init + configuration_changed) of this mod:
Code: Select all
global.Fuel = game.item_prototypes ['nuclear-fuel']
Code: Select all
train.burner.currently_burning = global.Fuel
train.burner.remaining_burning_fuel = global.Fuel.fuel_value
Can't set currently burning to an item without a fuel value.
PLS help me.
greetings magu5026