Skip to content

Commit

Permalink
moved fill_chest.lua to handle_schematics
Browse files Browse the repository at this point in the history
  • Loading branch information
Sokomine committed Aug 5, 2018
1 parent 6b6b0d3 commit 395ca25
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 279 deletions.
275 changes: 0 additions & 275 deletions fill_chest.lua

This file was deleted.

2 changes: 0 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ dofile(mg_villages.modpath.."/plotmarker_formspec.lua")
-- create and show a map of the world
dofile(mg_villages.modpath.."/map_of_world.lua")

dofile(mg_villages.modpath.."/fill_chest.lua")

-- terrain blending for individual houses
dofile(mg_villages.modpath.."/terrain_blend.lua")
-- the interface for the mapgen;
Expand Down
4 changes: 2 additions & 2 deletions mapgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1199,8 +1199,8 @@ mg_villages.place_villages_via_voxelmanip = function( villages, minp, maxp, vm,
for _, village in ipairs(villages) do
for _,v in ipairs( village.to_add_data.extra_calls.chests ) do
local building_nr = village.to_add_data.bpos[ v.bpos_i ];
local building_typ = mg_villages.BUILDINGS[ building_nr.btype ].scm;
mg_villages.fill_chest_random( v, pr, building_nr, building_typ );
local building_data_typ = mg_villages.BUILDINGS[ building_nr.btype ].typ;
handle_schematics.fill_chest_random( v, pr, building_nr, building_data_typ );
end
end
t1 = time_elapsed( t1, 'do fill chests' );
Expand Down

0 comments on commit 395ca25

Please sign in to comment.