From bb5815f4df6ea2cc2885a2202a02191cdb167c5c Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Wed, 6 Dec 2023 08:59:50 -0500 Subject: [PATCH] Dont override global variables just for lua diagnostics purposes --- init.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/init.lua b/init.lua index 2963f59..58cb1ef 100644 --- a/init.lua +++ b/init.lua @@ -16,14 +16,6 @@ License along with this library; if not, write to juraj.vajda@gmail.com --]] -minetest = minetest.global_exists('minetest') and minetest or {} --[[@as Minetest]] -ItemStack = minetest.global_exists('ItemStack') and ItemStack or {} --[[@as ItemStack]] -vector = minetest.global_exists('vector') and vector or {} --[[@as Vector]] -default = minetest.global_exists('default') and default or {} --[[@as MtgDefault]] -sfinv = minetest.global_exists('sfinv') and sfinv or {} --[[@as Sfinv]] -unified_inventory = minetest.global_exists('unified_inventory') and unified_inventory or {} --[[@as UnifiedInventory]] -player_api = minetest.global_exists('player_api') and player_api or {} --[[@as MtgPlayerApi]] - math.randomseed(tonumber(tostring(os.time()):reverse():sub(1, 9))--[[@as number]] ) local path = minetest.get_modpath('x_bows')