mirror of
https://github.com/APercy/automobiles_pck
synced 2025-09-28 13:56:23 +02:00
Fix 'Unable to register same mod storage twice' error
This commit is contained in:
parent
511a972d55
commit
1d19d349a9
@ -1,9 +1,11 @@
|
||||
-- Minetest 5.4.1 : automobiles
|
||||
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
automobiles_lib = {}
|
||||
automobiles_lib = {
|
||||
storage = minetest.get_mod_storage()
|
||||
}
|
||||
|
||||
local storage = minetest.get_mod_storage()
|
||||
local storage = automobiles_lib.storage
|
||||
|
||||
automobiles_lib.fuel = {['biofuel:biofuel'] = 1,['biofuel:bottle_fuel'] = 1,
|
||||
['biofuel:phial_fuel'] = 0.25, ['biofuel:fuel_can'] = 10,
|
||||
|
@ -1,4 +1,4 @@
|
||||
local storage = minetest.get_mod_storage()
|
||||
local storage = automobiles_lib.storage
|
||||
automobiles_lib.modname = minetest.get_current_modname()
|
||||
|
||||
local function get_formspec_by_size(self, size)
|
||||
|
Loading…
Reference in New Issue
Block a user