summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/Hooks/OnChunkGenerated.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-08-12 08:25:29 +0200
committerMattes D <github@xoft.cz>2015-08-12 08:25:29 +0200
commitd118550a5bdf761cc90ff722ff8dd7391df7285f (patch)
tree482062f5cdc11520ff0d0496e419524be01f1299 /MCServer/Plugins/APIDump/Hooks/OnChunkGenerated.lua
parentMerge pull request #2423 from cuberite/JsonCppCheck (diff)
parentUpdated APIDump to follow the namechange (diff)
downloadcuberite-d118550a5bdf761cc90ff722ff8dd7391df7285f.tar
cuberite-d118550a5bdf761cc90ff722ff8dd7391df7285f.tar.gz
cuberite-d118550a5bdf761cc90ff722ff8dd7391df7285f.tar.bz2
cuberite-d118550a5bdf761cc90ff722ff8dd7391df7285f.tar.lz
cuberite-d118550a5bdf761cc90ff722ff8dd7391df7285f.tar.xz
cuberite-d118550a5bdf761cc90ff722ff8dd7391df7285f.tar.zst
cuberite-d118550a5bdf761cc90ff722ff8dd7391df7285f.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/Hooks/OnChunkGenerated.lua')
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnChunkGenerated.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnChunkGenerated.lua b/MCServer/Plugins/APIDump/Hooks/OnChunkGenerated.lua
index b10dc36f5..64bfdad5c 100644
--- a/MCServer/Plugins/APIDump/Hooks/OnChunkGenerated.lua
+++ b/MCServer/Plugins/APIDump/Hooks/OnChunkGenerated.lua
@@ -21,10 +21,10 @@ return
{ Name = "ChunkDesc", Type = "{{cChunkDesc}}", Notes = "Generated chunk data. Plugins may still modify the chunk data contained." },
},
Returns = [[
- If the plugin returns false or no value, MCServer will call other plugins' callbacks for this event.
+ If the plugin returns false or no value, Cuberite will call other plugins' callbacks for this event.
If a plugin returns true, no other callback is called for this event.</p>
<p>
- In either case, MCServer will then store the data from ChunkDesc as the chunk's contents in the world.
+ In either case, Cuberite will then store the data from ChunkDesc as the chunk's contents in the world.
]],
CodeExamples =
{
@@ -34,7 +34,7 @@ return
Code = [[
function OnChunkGenerated(a_World, a_ChunkX, a_ChunkZ, a_ChunkDesc)
-- Generate a psaudorandom value that is always the same for the same X/Z pair, but is otherwise random enough:
- -- This is actually similar to how MCServer does its noise functions
+ -- This is actually similar to how Cuberite does its noise functions
local PseudoRandom = (a_ChunkX * 57 + a_ChunkZ) * 57 + 19785486
PseudoRandom = PseudoRandom * 8192 + PseudoRandom;
PseudoRandom = ((PseudoRandom * (PseudoRandom * PseudoRandom * 15731 + 789221) + 1376312589) % 0x7fffffff;