From c879735c841aa8676f8f32843469a90bf3a26d64 Mon Sep 17 00:00:00 2001 From: loosewheel <76670709+loosewheel@users.noreply.github.com> Date: Tue, 15 Feb 2022 07:06:04 +1000 Subject: [PATCH] Add files via upload --- camera.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camera.lua b/camera.lua index 18f5e71..94bf566 100644 --- a/camera.lua +++ b/camera.lua @@ -23,10 +23,10 @@ local function get_entity_dims (obj) local dims = { -0.5, 0, -0.5, 0.5, 2, 0.5 } if obj.get_luaentity then - entity = obj:get_luaentity () + local entity = obj:get_luaentity () if entity and entity.name then - def = minetest.registered_entities[entity.name] + local def = minetest.registered_entities[entity.name] if def and type (def.collisionbox) == "table" then