mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-08-27 11:17:46 -04:00
Remove unused and clean up missused variable-value assignments.
* Unused variables * Unused values (assigned to variables, but overwritten before use) * Defining already defined variables instead of reassigning to them.
This commit is contained in:
parent
d7a7456007
commit
4473627de0
12 changed files with 22 additions and 31 deletions
|
@ -100,7 +100,7 @@ end
|
|||
|
||||
local function update_formspecs(finished)
|
||||
local ges = #minetest.get_connected_players()
|
||||
local form_n = ""
|
||||
local form_n
|
||||
local is_majority = (ges / 2) < player_in_bed
|
||||
|
||||
if finished then
|
||||
|
|
|
@ -32,8 +32,6 @@ function beds.read_spawns()
|
|||
beds.save_spawns()
|
||||
os.rename(file, file .. ".backup")
|
||||
file = org_file
|
||||
else
|
||||
spawns = {}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue