Fix several small errors thanks to a Lua Language Server

This commit is contained in:
marco_a 2023-12-01 23:51:17 +01:00
parent af153644f0
commit 7d1f1e6b9b
2 changed files with 1 additions and 4 deletions

View File

@ -134,7 +134,6 @@ minetest.register_tool("block_league:editor_goal", {
description = S("Set team goal (LMB orange, RMB blue)"),
inventory_image = "bl_editor_goal.png",
groups = {not_in_creative_inventory = 1},
on_place = function() end,
on_drop = function() end,
on_use = function(itemstack, user, pointed_thing)

View File

@ -79,8 +79,6 @@ function block_league.register_weapon(name, def)
description = def.description,
profile_description = def.profile_description or "",
action1 = def.action1 or "",
action2 = def.action2 or "",
drawtype = def.mesh and "mesh" or "item",
mesh = def.mesh or nil,
tiles = def.tiles or nil,
@ -618,7 +616,7 @@ end
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
local dir = user:get_look_dir()