mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2024-11-14 05:40:19 +01:00
Fix unhandled exception, push to 0.4.1
This commit is contained in:
parent
fd0d11df1c
commit
44e66d661a
|
@ -1,10 +1,10 @@
|
|||
Minetest mod "Pyramids"
|
||||
=======================
|
||||
version: 0.4 Beta
|
||||
version: 0.4.1 Beta
|
||||
|
||||
License of source code and textures: WTFPL
|
||||
------------------------------------------
|
||||
(c) Copyright BlockMen (2013)
|
||||
(c) Copyright BlockMen (2013 - 2015)
|
||||
|
||||
|
||||
License of mesh model: WTFPL
|
||||
|
|
|
@ -15,12 +15,14 @@ trap_on_timer = function (pos, elapsed)
|
|||
for i, obj in pairs(objs) do
|
||||
if obj:is_player() then
|
||||
local n = minetest.get_node(pos)
|
||||
if n and n.name and minetest.registered_nodes[n.name].crack < 2 then
|
||||
if n and n.name then
|
||||
if minetest.registered_nodes[n.name].crack and minetest.registered_nodes[n.name].crack < 2 then
|
||||
minetest.set_node(pos, {name="pyramids:trap_2"})
|
||||
nodeupdate(pos)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user