Fix several small errors thanks to a Lua Language Server
This commit is contained in:
parent
af153644f0
commit
7d1f1e6b9b
@ -134,7 +134,6 @@ minetest.register_tool("block_league:editor_goal", {
|
|||||||
description = S("Set team goal (LMB orange, RMB blue)"),
|
description = S("Set team goal (LMB orange, RMB blue)"),
|
||||||
inventory_image = "bl_editor_goal.png",
|
inventory_image = "bl_editor_goal.png",
|
||||||
groups = {not_in_creative_inventory = 1},
|
groups = {not_in_creative_inventory = 1},
|
||||||
on_place = function() end,
|
|
||||||
on_drop = function() end,
|
on_drop = function() end,
|
||||||
|
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
|
@ -79,8 +79,6 @@ function block_league.register_weapon(name, def)
|
|||||||
description = def.description,
|
description = def.description,
|
||||||
profile_description = def.profile_description or "",
|
profile_description = def.profile_description or "",
|
||||||
|
|
||||||
action1 = def.action1 or "",
|
|
||||||
action2 = def.action2 or "",
|
|
||||||
drawtype = def.mesh and "mesh" or "item",
|
drawtype = def.mesh and "mesh" or "item",
|
||||||
mesh = def.mesh or nil,
|
mesh = def.mesh or nil,
|
||||||
tiles = def.tiles or nil,
|
tiles = def.tiles or nil,
|
||||||
@ -618,7 +616,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function attack_hitscan(user, weapon, action)
|
function attack_hitscan(user, weapon, action)
|
||||||
local pointed_objects = block_league.get_pointed_objects(user, action.range or melee_range, action.pierce)
|
local pointed_objects = block_league.get_pointed_objects(user, action.range or MELEE_RANGE, action.pierce)
|
||||||
|
|
||||||
if action.trail then
|
if action.trail then
|
||||||
local dir = user:get_look_dir()
|
local dir = user:get_look_dir()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user