Small fixes

master
Giov4 2021-01-21 22:26:44 +01:00
parent dee14193f6
commit 94ab778f3a
5 changed files with 7 additions and 5 deletions

View File

@ -149,7 +149,7 @@ end)
arena_lib.on_enable("skywars", function(arena, pl_name)
local fast_enable = pl_name:match("@")
local fast_enable = pl_name:find("@")
local arena_lib_translator = minetest.get_translator("arena_lib")
pl_name = pl_name:gsub("@", "")

View File

@ -54,8 +54,8 @@ function generate_particles(pos)
maxacc = {x=2, y=1, z=2},
minexptime = 1,
maxexptime = 1.5,
minsize = 1.5,
maxsize = 3,
minsize = 5.5,
maxsize = 6.5,
texture = "particle_chest_filled.png",
})
end

View File

@ -72,7 +72,7 @@ end
function get_armor_importance(armor_name)
for material, importance in pairs(skywars_settings.armors_importances) do
if armor_name:match(material) then
if armor_name:find(material) then
return importance
end
end

View File

@ -190,6 +190,7 @@ ChatCmdBuilder.new("skywars", function(cmd)
return
end
-- Removing all the treasures with that name.
while found[1] do
found[1] = false
for i, treasure in pairs(arena.treasures) do
@ -219,6 +220,7 @@ ChatCmdBuilder.new("skywars", function(cmd)
return
end
-- Removing all the treasures with that name.
while found[1] do
found[1] = false
for i, treasure in pairs(arena.treasures) do
@ -313,7 +315,7 @@ ChatCmdBuilder.new("skywars", function(cmd)
skywars.print_msg(sender, skywars.T("Treasures list:"))
for i=1, #arena.treasures do
local treasure = arena.treasures[i]
if treasure.name:match(treasure_name) then
if treasure.name:find(treasure_name) then
skywars.print_msg(sender, from_treasure_to_string(treasure) .. "\n\n")
end
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 B

After

Width:  |  Height:  |  Size: 193 B