Shadow Dan
Sh4dowDan
Code:
Lua Script Error: [Action Interface]
data/actions/scripts/other/destroy.lua:onUse
data/actions/lib/actions.lua:89: attempt to call method 'isItem' (a nil value)
stack traceback:
[C]: in function 'isItem'
data/actions/lib/actions.lua:89: in function <data/actions/lib/actions.lua:88>
If you stand on this position and use sword (or any weapon that uses script destroy.lua) on wall
red = bug in console
green = no bug all fine
So bug happens when you are behind the wall and use sword on it.
actions/lib/actions.lua
Code:
88 function onDestroyItem(player, item, fromPosition, target, toPosition, isHotkey)
89 if not target or not target:isItem() then
90 return false
91 end
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
return onDestroyItem(player, item, fromPosition, target, toPosition, isHotkey)
end
I couldn't explain it easier, maybe it's known bug or not, let's see what scripters will say. I'm really curious why that happens.
#I'll edit soon to add video. It's in progress to be available.