Reduce punch debugging.
This commit is contained in:
parent
10d8a0cc5c
commit
d32ca7788f
1 changed files with 2 additions and 8 deletions
10
mobs.lua
10
mobs.lua
|
@ -203,14 +203,8 @@ for _, mob in pairs(mob_stats) do
|
|||
minetest.registered_entities[mob.name].on_punch_orig = minetest.registered_entities[mob.name].on_punch
|
||||
minetest.registered_entities[mob.name].on_punch = function(...)
|
||||
local status, err = pcall(fun_caves_punch, ...)
|
||||
if status ~= true then
|
||||
print('***********************')
|
||||
print('Fun Caves: fun_caves_punch failed with error message:')
|
||||
print(err)
|
||||
print(...)
|
||||
print(debug.traceback())
|
||||
print('Please report this error.')
|
||||
print('***********************')
|
||||
if not status then
|
||||
print(dump(err))
|
||||
end
|
||||
end
|
||||
minetest.registered_entities[mob.name].damage = mob.damage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue