aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_item.h
diff options
context:
space:
mode:
authorraymoo <raymoo@users.noreply.github.com>2017-12-03 01:28:35 -0800
committerSmallJoker <SmallJoker@users.noreply.github.com>2017-12-03 10:28:35 +0100
commit83b12ed481fdb1f0c86a97de8a2887acaa32079e (patch)
treedaba30ebdb5024b10cdb724d6486ccbc6ba54a98 /src/script/cpp_api/s_item.h
parentab947bd58280637e7dbef44c983b6a27f6e7637b (diff)
Shut down mapgen threads before other shutdown tasks (#6689)
Solves some issues with ModStorage functionality in mapgen threads that occurred when mapgen threads continued to run after the main server thread had stopped. Also shuts down mapgen threads before shutdown callbacks are called.
Diffstat (limited to 'src/script/cpp_api/s_item.h')
0 files changed, 0 insertions, 0 deletions
104' href='#n104'>104 105 106 107 108 109 110 111
-- Demonstration signals
-- Those can display the 3 main aspects of Ks signals

-- Note that the group value of advtrains_signal is 2, which means "step 2 of signal capabilities"
-- advtrains_signal=1 is meant for signals that do not implement set_aspect.


local setaspect = function(pos, node, asp)
	if not asp.main.free then
		advtrains.ndb.swap_node(pos, {name="advtrains_interlocking:ds_danger"})
	else
		if asp.dst.free and asp.main.speed == -1 then
			advtrains.ndb.swap_node(pos, {name="advtrains_interlocking:ds_free"})
		else
			advtrains.ndb.swap_node(pos, {name="advtrains_interlocking:ds_slow"})
		end
	end
	local meta = minetest.get_meta(pos)
	if meta then