projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81259e9
)
Copy pos before giving it to on_blast because it can modify it; also remove a debug...
author
Novatux
<nathanael.courant@laposte.net>
Tue, 12 May 2015 19:03:02 +0000
(21:03 +0200)
committer
Novatux
<nathanael.courant@laposte.net>
Tue, 12 May 2015 19:03:02 +0000
(21:03 +0200)
mods/tnt/init.lua
patch
|
blob
|
history
diff --git
a/mods/tnt/init.lua
b/mods/tnt/init.lua
index 44a6be407ed31b9d829d4caec6b4d7108727fd8b..1554bf2381df845fe33f6c051330074f4023f43c 100644
(file)
--- a/
mods/tnt/init.lua
+++ b/
mods/tnt/init.lua
@@
-81,11
+81,10
@@
local function destroy(drops, pos, cid)
end
local def = cid_data[cid]
if def and def.on_blast then
- def.on_blast(
pos
, 1)
+ def.on_blast(
vector.new(pos)
, 1)
return
end
if def and def.flammable then
- print(dump(def), dump(pos), cid)
minetest.set_node(pos, fire_node)
else
minetest.remove_node(pos)