mirror of
https://github.com/minetest-mods/quartz.git
synced 2024-11-18 00:08:15 +01:00
Merge pull request #3 from Rui914/patch-2
Use `Settings` to read the config file
This commit is contained in:
commit
ef865187a9
6
init.lua
6
init.lua
@ -1,4 +1,4 @@
|
|||||||
dofile(minetest.get_modpath("quartz").."/settings.txt")
|
local settings = Settings(minetest.get_modpath("quartz").."/settings.txt")
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Item Registration
|
-- Item Registration
|
||||||
@ -153,7 +153,7 @@ minetest.register_abm({
|
|||||||
-- Compatibility with stairsplus
|
-- Compatibility with stairsplus
|
||||||
--
|
--
|
||||||
|
|
||||||
if minetest.get_modpath("moreblocks") and ENABLE_STAIRSPLUS then
|
if minetest.get_modpath("moreblocks") and settings:get_bool("ENABLE_STAIRSPLUS") then
|
||||||
register_stair_slab_panel_micro("quartz", "block", "quartz:block",
|
register_stair_slab_panel_micro("quartz", "block", "quartz:block",
|
||||||
{cracky=3},
|
{cracky=3},
|
||||||
{"quartz_block.png"},
|
{"quartz_block.png"},
|
||||||
@ -187,7 +187,7 @@ end
|
|||||||
-- Deprecated
|
-- Deprecated
|
||||||
--
|
--
|
||||||
|
|
||||||
if ENABLE_HORIZONTAL_PILLAR then
|
if settings:get_bool("ENABLE_HORIZONTAL_PILLAR") then
|
||||||
-- Quartz Pillar (horizontal)
|
-- Quartz Pillar (horizontal)
|
||||||
minetest.register_node("quartz:pillar_horizontal", {
|
minetest.register_node("quartz:pillar_horizontal", {
|
||||||
description = "Quartz Pillar Horizontal",
|
description = "Quartz Pillar Horizontal",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
-- Set this to true to allow usage of the stairsplus mod in moreblocks
|
# Set this to true to allow usage of the stairsplus mod in moreblocks
|
||||||
|
|
||||||
ENABLE_STAIRSPLUS = false
|
ENABLE_STAIRSPLUS = false
|
||||||
|
|
||||||
-- This enables the old horizontal pillar block(deprecated, be sure to convert them back to normal pillars)
|
# This enables the old horizontal pillar block(deprecated, be sure to convert them back to normal pillars)
|
||||||
|
|
||||||
ENABLE_HORIZONTAL_PILLAR = true
|
ENABLE_HORIZONTAL_PILLAR = true
|
||||||
|
Loading…
Reference in New Issue
Block a user