forked from minetest-mods/worldedge
		
	Merge pull request #5 from AntumMT/use_config
Use config setting 'world_edge' to determine size of world:
This commit is contained in:
		
							
								
								
									
										4
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								init.lua
									
									
									
									
									
								
							| @@ -2,7 +2,7 @@ | |||||||
| -- TODO: Check for terrain height | -- TODO: Check for terrain height | ||||||
|  |  | ||||||
| -- Defines the edge of a world | -- Defines the edge of a world | ||||||
| local edge = 30000 | local edge = tonumber(minetest.settings:get("world_edge")) or 30000 | ||||||
| -- Radius which should be checked for a good teleportation place | -- Radius which should be checked for a good teleportation place | ||||||
| local radius = 2 | local radius = 2 | ||||||
| -------------- | -------------- | ||||||
| @@ -140,4 +140,4 @@ minetest.register_entity("worldedge:lock", { | |||||||
| 	on_activate = function(staticdata, dtime_s) | 	on_activate = function(staticdata, dtime_s) | ||||||
| 		--self.object:set_armor_groups({immortal = 1}) | 		--self.object:set_armor_groups({immortal = 1}) | ||||||
| 	end | 	end | ||||||
| }) | }) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user