Compare commits

..

No commits in common. "main" and "1.0.0" have entirely different histories.
main ... 1.0.0

2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ local east = nil
function add_remove_border(entity, player_pos, entity_pos, is_rotated)
if vector.distance(player_pos, entity_pos) < 10 then
if not entity then
entity = minetest.add_entity(entity_pos, "simpleworldborder:border", nil)
entity = minetest.add_entity(entity_pos, "worldborder:border", nil)
if is_rotated then entity:set_rotation({x = 0, y = math.pi/2, z = 0 }) end
else
-- within range but entity already exists
@ -30,14 +30,14 @@ end
-- worldborder:border item
-- represents "stop sign" for border
minetest.register_entity("simpleworldborder:border", {
minetest.register_entity("worldborder:border", {
initial_properties = {
collide_with_objects = false,
is_visible = true,
visual = "upright_sprite",
textures = {
"simpleworldborder_stopsign.png",
"simpleworldborder_stopsign.png"
"worldborder_stopsign.png",
"worldborder_stopsign.png"
},
visual_size = {
x = 10,

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB