Update init.lua
This commit is contained in:
parent
a97d88bf08
commit
a76b52247a
1 changed files with 8 additions and 5 deletions
|
@ -145,14 +145,17 @@ minetest.register_globalstep(function(dtime)
|
|||
local wielditem = player:get_wielded_item()
|
||||
if wielditem:get_name() == "shooter_rocket:rocket_gun_loaded" then
|
||||
local wielditem = player:get_wielded_item()
|
||||
player:set_physics_override({
|
||||
physics.set(name, "shooter_rocket:physics", {
|
||||
speed = 0.7
|
||||
})
|
||||
else
|
||||
physics.remove(name, "shooter_rocket:physics")
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
--Backwards compatibility
|
||||
minetest.register_alias("shooter:rocket", "shooter_rocket:rocket")
|
||||
minetest.register_alias("shooter:rocket_gun", "shooter_rocket:rocket_gun")
|
||||
|
|
Loading…
Reference in a new issue