Skip to content

Commit

Permalink
Mount Gen: finally restruct files. Closes #1906
Browse files Browse the repository at this point in the history
  • Loading branch information
alek13 committed Jan 8, 2025
1 parent 42bd896 commit e063705
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions mods/lord/World/mountgen/src/mountgen.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

mountgen = {}

require('algorithms.cone')
require('algorithms.diamond_square')
require('ui')
require('mountgen.algorithms.cone')
require('mountgen.algorithms.diamond_square')
require('mountgen.ui')



Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
local math_floor, math_ceil, math_tan, id
= math.floor, math.ceil, math.tan, minetest.get_content_id

local ChunksIterator = require('generator.ChunksIterator')
local Node = require('generator.Node')
local ChunksIterator = require('mountgen.generator.ChunksIterator')
local Node = require('mountgen.generator.Node')
local Logger = minetest.get_mod_logger()


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local math_min, math_max, math_floor, math_ceil, math_sqrt, math_tan, math_rad
= math.min, math.max, math.floor, math.ceil, math.sqrt, math.tan, math.rad

local HeightMap = require('generator.HeightMap')
local HeightMap = require('mountgen.generator.HeightMap')


local MIN_CONE_FOOT_DIAMETER = 3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local math_max, math_ceil, math_log, math_random
= math.max, math.ceil, math.log, math.random

local HeightMap = require('generator.HeightMap')
local HeightMap = require('mountgen.generator.HeightMap')


local smooth_filter = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Generator = require('Generator')
local Generator = require('mountgen.Generator')


local S = minetest.get_mod_translator()
Expand Down

0 comments on commit e063705

Please sign in to comment.