diff options
| author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-09-03 22:05:07 -0400 |
|---|---|---|
| committer | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-12-24 08:24:59 -0500 |
| commit | 5c248c2d7de3db54e85f7c388743a2eb8e36fee4 (patch) | |
| tree | b0d27690b3e852b207345dc5e00dc4457a7e6268 /builtin/game/misc_s.lua | |
| parent | 7701e70dc92262c41d68cf1c9f7fbd0c333e5c52 (diff) | |
| download | minetest-5c248c2d7de3db54e85f7c388743a2eb8e36fee4.tar.xz | |
Add callback on_mapblocks_changed
Diffstat (limited to 'builtin/game/misc_s.lua')
| -rw-r--r-- | builtin/game/misc_s.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/builtin/game/misc_s.lua b/builtin/game/misc_s.lua index 67a0ec684..93d2bafa8 100644 --- a/builtin/game/misc_s.lua +++ b/builtin/game/misc_s.lua @@ -8,10 +8,9 @@ -- Misc. API functions -- +-- This must match the implementation in src/script/common/c_converter.h function core.hash_node_position(pos) - return (pos.z + 32768) * 65536 * 65536 - + (pos.y + 32768) * 65536 - + pos.x + 32768 + return (pos.z + 0x8000) * 0x100000000 + (pos.y + 0x8000) * 0x10000 + (pos.x + 0x8000) end |
