Use more general setting for punch action
parent
11871683e1
commit
79d2d3e4be
|
@ -291,7 +291,7 @@ minetest.register_entity("helicopter:heli", {
|
|||
end
|
||||
|
||||
if self.hp_max <= 0 then
|
||||
if helicopter.pick_up then
|
||||
if helicopter.punch_inv then
|
||||
local pinv = puncher:get_inventory()
|
||||
local stack = ItemStack("helicopter:heli")
|
||||
local imeta = stack:get_meta()
|
||||
|
|
|
@ -6,7 +6,7 @@ helicopter.gravity = tonumber(minetest.settings:get("movement_gravity") or 9.8)
|
|||
--
|
||||
-- If `false`, helicopter is destroyed. Otherwise, it is added to inventory.
|
||||
-- - Default: false
|
||||
helicopter.pick_up = minetest.settings:get_bool("helicopter.pick_up", false)
|
||||
helicopter.punch_inv = minetest.settings:get_bool("mount_punch_inv", false)
|
||||
|
||||
--- Determines default control of helicopter.
|
||||
--
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
# If enabled, places helicopter in inventory instead of destroying it
|
||||
# when punched.
|
||||
helicopter.pick_up (Place in inventory) bool false
|
||||
mount_punch_inv (Place in inventory) bool false
|
||||
|
||||
# Use facing direction to turn instead of a/d keys by default.
|
||||
mount_turn_player_look (Turn with look direction) bool false
|
||||
|
|
Loading…
Reference in New Issue