fix fuel
This commit is contained in:
parent
ce39721343
commit
1cae1988e7
@ -17,10 +17,9 @@ function trike.loadFuel(self, player_name)
|
||||
|
||||
local fuel = trike.contains(airutils.fuel, item_name)
|
||||
if fuel then
|
||||
local stack = ItemStack(item_name .. " 1")
|
||||
|
||||
if self._energy < 10 then
|
||||
inv:remove_item("main", stack)
|
||||
itmstck:set_count(1)
|
||||
inv:remove_item("main", itmstck)
|
||||
self._energy = self._energy + fuel
|
||||
if self._energy > 10 then self._energy = 10 end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user