From 75b099d70d6565f5984c90dcbb574f3cae25005b Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Thu, 26 Aug 2021 08:50:26 -0700 Subject: [PATCH] Delete global alias "smodel" --- README.md | 2 -- init.lua | 5 ----- samples.lua | 3 +++ 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 483b781..f489779 100644 --- a/README.md +++ b/README.md @@ -67,8 +67,6 @@ simple_models_slope_1x1x1: #### Tables -`smodel` is an alias of `simple_models`. - There are some tables for accessing pre-defined attributes: ``` diff --git a/init.lua b/init.lua index e0e878f..aa9c7fb 100644 --- a/init.lua +++ b/init.lua @@ -1,11 +1,6 @@ simple_models = {} -if not core.global_exists("smodel") then - smodel = simple_models -end - - local modpath = core.get_modpath(core.get_current_modname()) local scripts = { diff --git a/samples.lua b/samples.lua index 3e5a8fe..ec37fff 100644 --- a/samples.lua +++ b/samples.lua @@ -1,4 +1,7 @@ +local smodel = simple_models + + -- cubes core.register_node("simple_models:node_tall", {