1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-24 05:30:17 +02:00

Updated MinetestForFun Game

This commit is contained in:
LeMagnesium 2015-07-01 18:12:42 +02:00
parent 8fee4e5637
commit 778bb436b3
2 changed files with 72 additions and 68 deletions

View File

@ -38,6 +38,10 @@ local inactive_formspec =
"list[current_name;dst;4.75,0.96;2,2;]".. "list[current_name;dst;4.75,0.96;2,2;]"..
"list[current_player;main;0,4.25;8,1;]".. "list[current_player;main;0,4.25;8,1;]"..
"list[current_player;main;0,5.5;8,3;8]".. "list[current_player;main;0,5.5;8,3;8]"..
"listring[current_name;dst]"..
"listring[current_player;main]"..
"listring[current_name;src]"..
"listring[current_player;main]"..
default.get_hotbar_bg(0, 4.25) default.get_hotbar_bg(0, 4.25)
-- --

View File

@ -1020,7 +1020,7 @@ function default.generate_nyancats(minp, maxp, seed)
local y_max = math.min(maxp.y, height_max) local y_max = math.min(maxp.y, height_max)
local volume = (maxp.x - minp.x + 1) * (y_max - y_min + 1) * (maxp.z - minp.z + 1) local volume = (maxp.x - minp.x + 1) * (y_max - y_min + 1) * (maxp.z - minp.z + 1)
local pr = PseudoRandom(seed + 9324342) local pr = PseudoRandom(seed + 9324342)
local max_num_nyancats = math.floor(volume / (15*15*15)) local max_num_nyancats = math.floor(volume / (16 * 16 * 16))
for i = 1,max_num_nyancats do for i = 1,max_num_nyancats do
if pr:next(0, 1000) == 0 then if pr:next(0, 1000) == 0 then
local x0 = pr:next(minp.x, maxp.x) local x0 = pr:next(minp.x, maxp.x)