1
0
Fork 0

Fix banner entity handling

This commit is contained in:
Wuzzy 2017-07-27 06:35:53 +02:00
parent 6c66bc1045
commit a6157bd759
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ minetest.register_node("mcl_banners:standing_banner_white", {
end end
place_pos.y = place_pos.y - 0.5 place_pos.y = place_pos.y - 0.5
local banner = minetest.add_entity(place_pos, "mcl_banners:banner") local banner = minetest.add_entity(place_pos, "mcl_banners:standing_banner")
-- Determine the rotation based on player's yaw -- Determine the rotation based on player's yaw
local yaw = placer:get_look_horizontal() local yaw = placer:get_look_horizontal()
@ -71,7 +71,7 @@ minetest.register_node("mcl_banners:standing_banner_white", {
on_destruct = function(pos) on_destruct = function(pos)
local objects = minetest.get_objects_inside_radius(pos, 0.5) local objects = minetest.get_objects_inside_radius(pos, 0.5)
for _, v in ipairs(objects) do for _, v in ipairs(objects) do
if v:get_entity_name() == "mcl_banners:banner" then if v:get_entity_name() == "mcl_banners:standing_banner" then
v:remove() v:remove()
end end
end end