From 6e43c6268087ff581e04e7726234c43ccf5d90de Mon Sep 17 00:00:00 2001 From: kay27 Date: Wed, 2 Feb 2022 04:11:11 +0400 Subject: [PATCH 1/2] Fix fly anticheat bug --- mods/PLAYER/mcl_anticheat/init.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_anticheat/init.lua b/mods/PLAYER/mcl_anticheat/init.lua index 28fd98ff9..9f4078007 100644 --- a/mods/PLAYER/mcl_anticheat/init.lua +++ b/mods/PLAYER/mcl_anticheat/init.lua @@ -46,7 +46,15 @@ local function update_player(player_object) end local air = #find_nodes_in_area({x = x, y = feet_y, z = z}, {x = x + 1, y = feet_y + 1, z = z + 1}, "air") == 8 - and #get_objects_inside_radius({x = pos.x, y = pos.y - 0.6, z = pos.z}, 1.3) > 1 + if air then + local objects = get_objects_inside_radius({x = pos.x, y = pos.y - 0.6, z = pos.z}, 1.3) + for _, obj in pairs(objects) do + if not obj:is_player() and obj:get_luaentity() and obj:get_luaentity()._cmi_is_mob then + air = false + break + end + end + end local noclip = #find_nodes_in_area({x = x, y = head_y, z = z}, {x = x + 1, y = head_y + 1, z = z + 1}, "group:opaque") == 8 From 4f10c8c032327027d590567eeba0e2d7d413e8da Mon Sep 17 00:00:00 2001 From: kay27 Date: Wed, 2 Feb 2022 04:15:03 +0400 Subject: [PATCH 2/2] Fix a typo (crash) --- mods/MAPGEN/mcl_mapgen_core/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index b8072dbd0..e628321f0 100644 --- a/mods/MAPGEN/mcl_mapgen_core/init.lua +++ b/mods/MAPGEN/mcl_mapgen_core/init.lua @@ -1228,7 +1228,7 @@ local void_layers = { } local bedrock_layers = {} -if not singlelayer then +if not singlenode then bedrock_layers = { {mcl_mapgen.overworld.bedrock_min , mcl_mapgen.overworld.bedrock_max }, {mcl_mapgen.nether.bedrock_bottom_min, mcl_mapgen.nether.bedrock_bottom_max},