diff --git a/hang_emerge/init.lua b/hang_emerge/init.lua new file mode 100644 index 0000000..b24a753 --- /dev/null +++ b/hang_emerge/init.lua @@ -0,0 +1,17 @@ +local emerge = function() + local i = 32767 + minetest.emerge_area( + { x=i, y=0, z=0 }, + { x=i+1, y=0, z=0 }, + function(blockpos, action, calls_remaining) + minetest.debug( + dump( + calls_remaining, + i + ) + ) + end + ) +end + +minetest.after( 0, emerge ) diff --git a/hang_emerge/mod.conf b/hang_emerge/mod.conf new file mode 100644 index 0000000..bc7c3a1 --- /dev/null +++ b/hang_emerge/mod.conf @@ -0,0 +1,2 @@ +name = hang_emerge +description = Try to hang the Minetest server with minetest.emerge_area()