forked from mtcontrib/bitchange
		
	Add backwards-compatiblity, tidy config.default.txt
This commit is contained in:
		| @@ -1,26 +1,27 @@ | |||||||
| -- General configuration - BitChange | -- General configuration for the BitChange mod | ||||||
| -- Do NOT change your settings in "config.default.txt" | -- Do NOT modify "config.default.txt"! Instead, edit "bitchange_config.txt" | ||||||
|  | -- inside your world's directory. Start the world once to generate the file. | ||||||
|  |  | ||||||
| bitchange.initial_give			= 10 | bitchange.initial_give        = 10 | ||||||
| -- Enable/Disable whole nodes | -- Enable/Disable whole nodes | ||||||
| bitchange.enable_exchangeshop		= true | bitchange.enable_exchangeshop = true | ||||||
| bitchange.enable_moneychanger		= true | bitchange.enable_moneychanger = true | ||||||
| bitchange.enable_warehouse		= false | bitchange.enable_warehouse    = false | ||||||
| bitchange.enable_toolrepair		= true | bitchange.enable_toolrepair   = true | ||||||
| bitchange.enable_donationbox		= true | bitchange.enable_donationbox  = true | ||||||
|  |  | ||||||
| -- Converting other ores to MineCoins | -- Converting other ores to MineCoins | ||||||
| -- Tin		moreores | -- Tin		default | ||||||
| -- Zinc		technic_worldgen | -- Zinc		technic_worldgen | ||||||
| -- Quartz	quartz | -- Quartz	quartz | ||||||
| bitchange.use_technic_zinc		= false | bitchange.use_technic_zinc = false | ||||||
| bitchange.use_quartz			= false | bitchange.use_quartz       = false | ||||||
| bitchange.use_default_tin		= false | bitchange.use_default_tin  = false | ||||||
|  |  | ||||||
| -- Pipeworks support | -- Pipeworks support | ||||||
| bitchange.exchangeshop_pipeworks	= false | bitchange.exchangeshop_pipeworks = false | ||||||
| bitchange.warehouse_pipeworks		= false | bitchange.warehouse_pipeworks    = false | ||||||
|  |  | ||||||
| -- Advanced generation settings | -- Advanced generation settings | ||||||
| -- Change in 'minecoins.lua', starting at line 101 | -- Change in 'minecoins.lua', starting at line 101 | ||||||
| bitchange.enable_generation		= false | bitchange.enable_generation = false | ||||||
|   | |||||||
| @@ -1,5 +1,4 @@ | |||||||
| default | default | ||||||
| moreores? |  | ||||||
| pipeworks? | pipeworks? | ||||||
| quartz? | quartz? | ||||||
| technic_worldgen? | technic_worldgen? | ||||||
|   | |||||||
| @@ -23,6 +23,11 @@ if bitchange.use_quartz and minetest.get_modpath("quartz") then | |||||||
| 	}) | 	}) | ||||||
| end | end | ||||||
|  |  | ||||||
|  | if bitchange.use_moreores_tin then | ||||||
|  | 	bitchange.use_default_tin = true | ||||||
|  | 	minetest.log("warning", "[bitchange] Loaded deprecated setting 'use_default_tin'") | ||||||
|  | end | ||||||
|  |  | ||||||
| if bitchange.use_default_tin then | if bitchange.use_default_tin then | ||||||
| 	minetest.register_craft({ | 	minetest.register_craft({ | ||||||
| 		output = "bitchange:mineninth 18", | 		output = "bitchange:mineninth 18", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user