Use target node data intead of source node when placing protector
This commit is contained in:
parent
7cdbf40646
commit
04fe508fe4
2
tool.lua
2
tool.lua
@ -96,7 +96,7 @@ protector.tool = {
|
||||
end,
|
||||
|
||||
place_protector = function(self, user, pos, nodename, source_pos, source_node)
|
||||
local p = self:get_protector_data(source_node)
|
||||
local p = self:get_protector_data(nodename)
|
||||
|
||||
if p.on_place then
|
||||
-- on_place event, callback should place nodes to world
|
||||
|
Loading…
x
Reference in New Issue
Block a user