change the variable of player name sent to load_fuel

master
Alexsandro Percy 2020-06-14 17:32:19 -03:00
parent 4ab7f92d63
commit e23a17aa18
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ minetest.register_entity("helicopter:heli", {
if is_attached == true and touching_ground and item_name == "biofuel:biofuel" then
--refuel
load_fuel(self, name)
load_fuel(self, self.owner)
end
if is_attached == false then