chest to chest transport doesnt use fuel

master
rnd 2015-05-06 13:05:55 +02:00
parent d3157d01bb
commit da76678fa9
1 changed files with 3 additions and 1 deletions

View File

@ -244,7 +244,9 @@ minetest.register_node("basic_machines:mover", {
end
minetest.sound_play("transporter", {pos=pos2,gain=1.0,max_hear_distance = 32,})
fuel = fuel -1; meta:set_float("fuel", fuel); -- burn fuel
if not(target_chest and source_chest) then -- chest to chest transport is free
fuel = fuel -1; meta:set_float("fuel", fuel); -- burn fuel
end
meta:set_string("infotext", "Mover block. Fuel "..fuel);