<feed xmlns='http://www.w3.org/2005/Atom'>
<title>minetest.git/src/script, branch find_nodes_in_area</title>
<subtitle>lizzy's patches for luanti
</subtitle>
<id>https://git.vlhl.dev/lizzy/luanti/minetest.git/atom?h=find_nodes_in_area</id>
<link rel='self' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/atom?h=find_nodes_in_area'/>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/'/>
<updated>2021-12-14T15:17:49+00:00</updated>
<entry>
<title>Fix minetest.find_nodes_in_area() coord clamping</title>
<updated>2021-12-14T15:17:49+00:00</updated>
<author>
<name>Nils Dagsson Moskopp</name>
<email>nils@dieweltistgarnichtso.net</email>
</author>
<published>2021-12-14T13:06:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=33087897fdb2ac2bd07700356a8edfa33d5a9ec6'/>
<id>urn:sha1:33087897fdb2ac2bd07700356a8edfa33d5a9ec6</id>
<content type='text'>
Previously, minetest.find_nodes_in_area() was affected by a signed
integer overflow, which was fixed by clamping the area in which the
function works to MAX_MAP_GENERATION_LIMIT &amp; -MAX_MAP_GENERATION_LIMIT.

The problem with that approach is that nodes can exist and even be generated
past MAX_MAP_GENERATION_LIMIT in vanilla Minetest – which, despite the name,
does not specify exactly where the map generator stops working. Therefore,
the bug fix created an unknown amount of other bugs near the map border.

At minimum, those bugs affect the outer mapblocks, where nodes past
MAX_MAP_GENERATION_LIMIT can be generated. Ironically, the first thing
broken by the faulty bug fix was a test case belonging to a workaround that
prevents minetest.find_nodes_in_area() being called with coordinates out of
s16 bounds in the Mineclonia game, thus avoiding signed integer overflow.

Using INT16_MIN+1 &amp; INT16_MAX-1 makes minetest.find_nodes_in_area()
work for all coordinates that worked before the faulty fix, avoiding a
situation where Minetest can place a node in the map, but then not find
it afterwards using minetest_find_nodes_in_area().
</content>
</entry>
<entry>
<title>Implemented disconnect_player (#10492)</title>
<updated>2021-11-26T19:19:40+00:00</updated>
<author>
<name>Corey Powell</name>
<email>mistdragon100@gmail.com</email>
</author>
<published>2021-11-26T19:19:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=413be76c63309266d3d271f01cc74385067d7263'/>
<id>urn:sha1:413be76c63309266d3d271f01cc74385067d7263</id>
<content type='text'>
Co-authored-by: rubenwardy &lt;rw@rubenwardy.com&gt;</content>
</entry>
<entry>
<title>Fix find_nodes_in_area misbehaving with out-of-map coordinates (#11770)</title>
<updated>2021-11-26T18:32:41+00:00</updated>
<author>
<name>sfan5</name>
<email>sfan5@live.de</email>
</author>
<published>2021-11-26T18:32:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=87ab97da2ace31fdb46a88a0901ec664dd666feb'/>
<id>urn:sha1:87ab97da2ace31fdb46a88a0901ec664dd666feb</id>
<content type='text'>
This ensures that no overflows (side-effects) happen within the find_nodes_in_area function by limiting coordinates like done in the map generation code.</content>
</entry>
<entry>
<title>Add Lua bitop library (#9847)</title>
<updated>2021-11-26T18:31:05+00:00</updated>
<author>
<name>Lejo</name>
<email>Lejo_1@web.de</email>
</author>
<published>2021-11-26T18:31:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=b9051386ae296a6112383725bc8bfcd96dc9a226'/>
<id>urn:sha1:b9051386ae296a6112383725bc8bfcd96dc9a226</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Lua API: Add `rmdir`, `cpdir` and `mvdir` (#9638)</title>
<updated>2021-11-10T18:10:20+00:00</updated>
<author>
<name>Elijah Duffy</name>
<email>enduffy2014@outlook.com</email>
</author>
<published>2021-11-10T18:10:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=cbf658f83d206bf340ab4aa8eab02b058e9b293f'/>
<id>urn:sha1:cbf658f83d206bf340ab4aa8eab02b058e9b293f</id>
<content type='text'>
Co-authored-by: rubenwardy &lt;rw@rubenwardy.com&gt;
</content>
</entry>
<entry>
<title>Fix number of tool uses being off by 1..32767 (#11110)</title>
<updated>2021-10-31T22:33:33+00:00</updated>
<author>
<name>Wuzzy</name>
<email>wuzzy2@mail.ru</email>
</author>
<published>2021-10-31T22:33:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=6910c8d920acedb3f1df1ac03a5cdf14f5fb6081'/>
<id>urn:sha1:6910c8d920acedb3f1df1ac03a5cdf14f5fb6081</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix item duplication if player dies during interact callback (alternative) (#11662)</title>
<updated>2021-10-25T18:30:27+00:00</updated>
<author>
<name>sfan5</name>
<email>sfan5@live.de</email>
</author>
<published>2021-10-25T18:30:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=660e63dbae5901f8178b39ab40e6f770b8d7a215'/>
<id>urn:sha1:660e63dbae5901f8178b39ab40e6f770b8d7a215</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove a few unused functions reported by callcatcher (#11658)</title>
<updated>2021-10-12T18:12:20+00:00</updated>
<author>
<name>SmallJoker</name>
<email>SmallJoker@users.noreply.github.com</email>
</author>
<published>2021-10-12T18:12:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=ecc6f4ba25cd49599922333a5f8d4b4ce368992d'/>
<id>urn:sha1:ecc6f4ba25cd49599922333a5f8d4b4ce368992d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move instead of copy during content install if possible</title>
<updated>2021-10-06T22:20:01+00:00</updated>
<author>
<name>sfan5</name>
<email>sfan5@live.de</email>
</author>
<published>2021-09-19T16:16:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=6de8d77e17017cd5cc7b065d42566b6b1cd076cc'/>
<id>urn:sha1:6de8d77e17017cd5cc7b065d42566b6b1cd076cc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move archive extraction in content store to async job</title>
<updated>2021-10-06T22:20:01+00:00</updated>
<author>
<name>sfan5</name>
<email>sfan5@live.de</email>
</author>
<published>2021-09-19T15:55:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=2b5075f0e2a8223cdb07f000b7e8f874416ed3a8'/>
<id>urn:sha1:2b5075f0e2a8223cdb07f000b7e8f874416ed3a8</id>
<content type='text'>
</content>
</entry>
</feed>
