diff --git a/mods/ITEMS/mcl_maps/init.lua b/mods/ITEMS/mcl_maps/init.lua index d4e98012..ad40f4c6 100644 --- a/mods/ITEMS/mcl_maps/init.lua +++ b/mods/ITEMS/mcl_maps/init.lua @@ -324,18 +324,36 @@ minetest.register_globalstep(function(dtime) local marker if pos.x < minp.x then - marker = "mcl_maps_player_dot.png" + if minp.x - pos.x < 256 then + marker = "mcl_maps_player_dot_large.png" + else + marker = "mcl_maps_player_dot.png" + end pos.x = minp.x elseif pos.x > maxp.x then - marker = "mcl_maps_player_dot.png" + if pos.x - maxp.x < 256 then + marker = "mcl_maps_player_dot_large.png" + else + marker = "mcl_maps_player_dot.png" + end pos.x = maxp.x end + -- we never override the small marker + -- yes, this is a literal corner case if pos.z < minp.z then - marker = "mcl_maps_player_dot.png" + if minp.z - pos.z < 256 and marker ~= "mcl_maps_player_dot.png" then + marker = "mcl_maps_player_dot_large.png" + else + marker = "mcl_maps_player_dot.png" + end pos.z = minp.z elseif pos.z > maxp.z then - marker = "mcl_maps_player_dot.png" + if pos.z - maxp.z < 256 and marker ~= "mcl_maps_player_dot.png" then + marker = "mcl_maps_player_dot_large.png" + else + marker = "mcl_maps_player_dot.png" + end pos.z = maxp.z end diff --git a/mods/ITEMS/mcl_maps/textures/mcl_maps_player_dot.png b/mods/ITEMS/mcl_maps/textures/mcl_maps_player_dot.png index 48d93d2c..4c848159 100644 Binary files a/mods/ITEMS/mcl_maps/textures/mcl_maps_player_dot.png and b/mods/ITEMS/mcl_maps/textures/mcl_maps_player_dot.png differ diff --git a/mods/ITEMS/mcl_maps/textures/mcl_maps_player_dot_large.png b/mods/ITEMS/mcl_maps/textures/mcl_maps_player_dot_large.png new file mode 100644 index 00000000..9176473e Binary files /dev/null and b/mods/ITEMS/mcl_maps/textures/mcl_maps_player_dot_large.png differ