forkattu lähteestä luanti-org/minetest_game
		
	TNT: Add missing 'then'
This commit is contained in:
		| @@ -1,7 +1,8 @@ | |||||||
| tnt = {} | tnt = {} | ||||||
|  |  | ||||||
| -- Default to enabled when in singleplayer | -- Default to enabled when in singleplayer | ||||||
| local enable_tnt = minetest.setting_getbool("enable_tnt") | local enable_tnt = minetest.setting_getbool("enable_tnt") | ||||||
| if enable_tnt == nil | if enable_tnt == nil then | ||||||
| 	enable_tnt = minetest.is_singleplayer() | 	enable_tnt = minetest.is_singleplayer() | ||||||
| end | end | ||||||
|  |  | ||||||
| @@ -82,7 +83,6 @@ local function add_drop(drops, item) | |||||||
| 	end | 	end | ||||||
| end | end | ||||||
|  |  | ||||||
|  |  | ||||||
| local function destroy(drops, npos, cid, c_air, c_fire, on_blast_queue, ignore_protection, ignore_on_blast) | local function destroy(drops, npos, cid, c_air, c_fire, on_blast_queue, ignore_protection, ignore_on_blast) | ||||||
| 	if not ignore_protection and minetest.is_protected(npos, "") then | 	if not ignore_protection and minetest.is_protected(npos, "") then | ||||||
| 		return cid | 		return cid | ||||||
| @@ -106,7 +106,6 @@ local function destroy(drops, npos, cid, c_air, c_fire, on_blast_queue, ignore_p | |||||||
| 	end | 	end | ||||||
| end | end | ||||||
|  |  | ||||||
|  |  | ||||||
| local function calc_velocity(pos1, pos2, old_vel, power) | local function calc_velocity(pos1, pos2, old_vel, power) | ||||||
| 	-- Avoid errors caused by a vector of zero length | 	-- Avoid errors caused by a vector of zero length | ||||||
| 	if vector.equals(pos1, pos2) then | 	if vector.equals(pos1, pos2) then | ||||||
|   | |||||||
		Viittaa uudesa ongelmassa
	
	Block a user