forked from mtcontrib/spears
Update 3.1 functions
This commit is contained in:
22
defaults.lua
22
defaults.lua
@ -1,15 +1,15 @@
|
||||
-- Seems like defaults in settingtypes.txt are not taken by default
|
||||
if minetest.settings:get("spears_throw_speed") == nil then
|
||||
minetest.settings:set("spears_throw_speed", 13)
|
||||
end
|
||||
--if minetest.settings:get("spears_throw_speed") == nil then
|
||||
-- minetest.settings:set("spears_throw_speed", 13)
|
||||
--end
|
||||
|
||||
if minetest.settings:get("spears_drag_coeff") == nil then
|
||||
minetest.settings:set("spears_drag_coeff", 0.1)
|
||||
end
|
||||
|
||||
if minetest.settings:get("spears_node_cracky_limit") == nil then
|
||||
minetest.settings:set("spears_node_cracky_limit", 3)
|
||||
end
|
||||
-- if minetest.settings:get("spears_node_cracky_limit") == nil then
|
||||
-- minetest.settings:set("spears_node_cracky_limit", 3)
|
||||
-- end
|
||||
|
||||
|
||||
-- DISABLE_STONE_SPEAR = false
|
||||
@ -23,8 +23,8 @@ end
|
||||
-- SPEARS_THROW_SPEED = 13
|
||||
SPEARS_V_ZERO = {x = 0, y = 0, z = 0}
|
||||
-- SPEARS_DRAG_COEFF = 0.1
|
||||
SPEARS_NODE_UNKNOWN = nil
|
||||
SPEARS_NODE_THROUGH = 0
|
||||
SPEARS_NODE_STICKY = 1
|
||||
SPEARS_NODE_CRACKY = 2
|
||||
-- SPEARS_NODE_CRACKY_LIMIT = 3
|
||||
-- SPEARS_NODE_UNKNOWN = nil
|
||||
-- SPEARS_NODE_THROUGH = 0
|
||||
-- SPEARS_NODE_STICKY = 1
|
||||
-- SPEARS_NODE_CRACKY = 2
|
||||
-- SPEARS_NODE_CRACKY_LIMIT = 3
|
Reference in New Issue
Block a user