aboutsummaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-02-03 02:22:36 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-27 19:05:59 +0300
commitc04f4a7d73c8c3225673b4e92d1aa82c599f36e0 (patch)
treeed4c50e7cb6f9ce47d64caa3cec249ce038a8d02 /src/log.h
parentf5e46ba7fc8b8d0a235da4113d9e5e6049b08fb7 (diff)
downloadminetest-c04f4a7d73c8c3225673b4e92d1aa82c599f36e0.tar.gz
minetest-c04f4a7d73c8c3225673b4e92d1aa82c599f36e0.tar.bz2
minetest-c04f4a7d73c8c3225673b4e92d1aa82c599f36e0.zip
Tune generation responsiveness and cheat inhibition on server
Diffstat (limited to 'src/log.h')
0 files changed, 0 insertions, 0 deletions
'#n102'>102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
-- passive.lua
-- API to passive components, as described in passive_api.txt of advtrains_luaautomation
-- This has been moved to the advtrains core in turn with the interlocking system,
-- to prevent a dependency on luaautomation.

local deprecation_warned = {}

function advtrains.getstate(parpos, pnode)
	local pos
	if atlatc then
		pos = atlatc.pcnaming.resolve_pos(parpos)
	else
		pos = advtrains.round_vector_floor_y(parpos)
	end
	if type(pos)~="table" or (not pos.x or not pos.y or not pos.z) then
		debug.sethook()
		error("Invalid position supplied to getstate")
	end
	local node=pnode or advtrains.ndb.get_node(pos)
	local ndef=minetest.registered_nodes[node.name]
	local st
	if ndef and ndef.advtrains and ndef.advtrains.getstate then
		 st=ndef.advtrains.getstate