Avoid weapons with a range value being placed in the world for a fraction of a second when RMB is pressed

This commit is contained in:
Lars Müller 2022-05-25 14:39:19 +00:00 committed by Zughy
parent 6b98461ba3
commit b6b2832687

View File

@ -37,6 +37,7 @@ function block_league.register_weapon(name, def)
knockback = def.knockback,
fire_delay = def.fire_delay,
range = def.range and def.range or 0,
node_placement_prediction = "", -- disable prediction
pierce = def.pierce,
decrease_damage_with_distance = def.decrease_damage_with_distance,