Fix issue #90 (Disappearing tank contents)
This commit is contained in:
parent
25d5ca0a02
commit
65e951a7ee
@ -66,7 +66,7 @@ It is highly recommended that you install the following mods, too:
|
||||
For large servers with many player `lsqlite3` is recommended.
|
||||
The package has to be installed via [luarocks](https://luarocks.org/):
|
||||
|
||||
luarocks install lsqlite3
|
||||
luarocks --lua-version 5.1 install lsqlite3
|
||||
|
||||
To enable this `unsafe` package, add 'techage' to the list of trusted mods in minetest.conf:
|
||||
|
||||
|
@ -65,6 +65,7 @@ function api.store_mapblock_data(key, mapblock_data)
|
||||
if pos then
|
||||
item._POS_ = nil
|
||||
local data = serialize(item)
|
||||
item._POS_ = pos
|
||||
local meta = M(pos)
|
||||
meta:set_string("ta_data", data)
|
||||
meta:mark_as_private("ta_data")
|
||||
|
@ -86,7 +86,7 @@ minetest.register_node("techage:coalfirebox", {
|
||||
|
||||
after_place_node = function(pos, placer)
|
||||
if firebox.is_free_position(pos, placer:get_player_name()) then
|
||||
techage.add_node(pos, "techage:coalfirebox")
|
||||
techage.add_node(pos, "techage:coalfirebox", true)
|
||||
local nvm = techage.get_nvm(pos)
|
||||
nvm.running = false
|
||||
nvm.burn_cycles = 0
|
||||
|
@ -88,7 +88,7 @@ minetest.register_node("techage:oilfirebox", {
|
||||
|
||||
after_place_node = function(pos, placer)
|
||||
if firebox.is_free_position(pos, placer:get_player_name()) then
|
||||
techage.add_node(pos, "techage:oilfirebox")
|
||||
techage.add_node(pos, "techage:oilfirebox", true)
|
||||
local nvm = techage.get_nvm(pos)
|
||||
nvm.running = false
|
||||
nvm.burn_cycles = 0
|
||||
|
@ -105,7 +105,7 @@ minetest.register_node("techage:furnace_firebox", {
|
||||
|
||||
on_construct = function(pos)
|
||||
local nvm = techage.get_nvm(pos)
|
||||
techage.add_node(pos, "techage:furnace_firebox")
|
||||
techage.add_node(pos, "techage:furnace_firebox", true)
|
||||
nvm.running = false
|
||||
nvm.burn_cycles = 0
|
||||
nvm.liquid = {}
|
||||
|
Loading…
Reference in New Issue
Block a user