mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-04 14:53:51 +01:00
Update armor stand entity in on_activate callback, remove debug print
This commit is contained in:
parent
d1198e8d74
commit
1cf53caa7a
@ -74,7 +74,6 @@ minetest.register_node("mcl_armor_stand:armor_stand", {
|
|||||||
drop_inventory(pos)
|
drop_inventory(pos)
|
||||||
end,
|
end,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
print(pos, node, clicker, itemstack, pointed_thing)
|
|
||||||
local protname = clicker:get_player_name()
|
local protname = clicker:get_player_name()
|
||||||
|
|
||||||
if minetest.is_protected(pos, protname) then
|
if minetest.is_protected(pos, protname) then
|
||||||
@ -112,6 +111,7 @@ minetest.register_entity("mcl_armor_stand:armor_entity", {
|
|||||||
self.node_pos = vector.round(self.object:get_pos())
|
self.node_pos = vector.round(self.object:get_pos())
|
||||||
self.inventory = minetest.get_meta(self.node_pos):get_inventory()
|
self.inventory = minetest.get_meta(self.node_pos):get_inventory()
|
||||||
migrate_inventory(self.inventory)
|
migrate_inventory(self.inventory)
|
||||||
|
mcl_armor.update(self.object)
|
||||||
end,
|
end,
|
||||||
on_step = function(self, dtime)
|
on_step = function(self, dtime)
|
||||||
if minetest.get_node(self.node_pos).name ~= "mcl_armor_stand:armor_stand" then
|
if minetest.get_node(self.node_pos).name ~= "mcl_armor_stand:armor_stand" then
|
||||||
|
Loading…
Reference in New Issue
Block a user