Use target node data intead of source node when placing protector

This commit is contained in:
SX 2020-01-27 20:29:29 +02:00
parent 7cdbf40646
commit 04fe508fe4

View File

@ -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