mirror of
https://github.com/APercy/automobiles_pck
synced 2025-07-30 18:15:49 +02:00
improved compatibility
This commit is contained in:
parent
837dc8e3c7
commit
ccb95e1195
@ -25,7 +25,9 @@ function automobiles_lib.loadFuel(self, player_name, free, max_fuel)
|
||||
if fuel or free == true then
|
||||
local stack = ItemStack(item_name .. " 1")
|
||||
if self._energy < max_fuel then
|
||||
if free == false then inv:remove_item("main", stack) end
|
||||
itmstck:set_count(1)
|
||||
|
||||
if free == false then inv:remove_item("main", itmstck) end
|
||||
if fuel then
|
||||
self._energy = self._energy + fuel
|
||||
end
|
||||
|
@ -1,3 +1,3 @@
|
||||
name = automobiles_lib
|
||||
depends=player_api
|
||||
optional_depends=emote, biofuel
|
||||
depends=player_api, biofuel
|
||||
optional_depends=emote
|
||||
|
Loading…
Reference in New Issue
Block a user