Use more general setting for punch action

master
Jordan Irwin 2021-05-28 19:51:34 -07:00
parent 11871683e1
commit 79d2d3e4be
3 changed files with 3 additions and 3 deletions

View File

@ -291,7 +291,7 @@ minetest.register_entity("helicopter:heli", {
end end
if self.hp_max <= 0 then if self.hp_max <= 0 then
if helicopter.pick_up then if helicopter.punch_inv then
local pinv = puncher:get_inventory() local pinv = puncher:get_inventory()
local stack = ItemStack("helicopter:heli") local stack = ItemStack("helicopter:heli")
local imeta = stack:get_meta() local imeta = stack:get_meta()

View File

@ -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. -- If `false`, helicopter is destroyed. Otherwise, it is added to inventory.
-- - Default: false -- - 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. --- Determines default control of helicopter.
-- --

View File

@ -1,7 +1,7 @@
# If enabled, places helicopter in inventory instead of destroying it # If enabled, places helicopter in inventory instead of destroying it
# when punched. # 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. # Use facing direction to turn instead of a/d keys by default.
mount_turn_player_look (Turn with look direction) bool false mount_turn_player_look (Turn with look direction) bool false