summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--technic/chainsaw.lua4
-rw-r--r--technic/concrete.lua2
-rw-r--r--technic/mining_drill.lua8
-rw-r--r--technic/mining_laser_mk1.lua4
-rw-r--r--technic/ores.lua8
-rw-r--r--technic/sonic_screwdriver.lua4
6 files changed, 15 insertions, 15 deletions
diff --git a/technic/chainsaw.lua b/technic/chainsaw.lua
index eb12732..2c3fbf5 100644
--- a/technic/chainsaw.lua
+++ b/technic/chainsaw.lua
@@ -9,8 +9,8 @@ minetest.register_tool("technic:chainsaw", {
if pointed_thing.type=="node" then
item=itemstack:to_table()
local meta=get_item_meta(item["metadata"])
- if meta==nil then return false end --tool not charghed
- if meta["charge"]==nil then return false end
+ if meta==nil then return end --tool not charghed
+ if meta["charge"]==nil then return end
charge=meta["charge"]
charge_to_take=600;
if charge-charge_to_take>0 then
diff --git a/technic/concrete.lua b/technic/concrete.lua
index 2d68ca1..001913e 100644
--- a/technic/concrete.lua
+++ b/technic/concrete.lua
@@ -73,7 +73,7 @@ minetest.register_node("technic:concrete_post", {
sounds = default.node_sound_stone_defaults(),
})
-stairsplus.register_stair_and_slab_and_panel_and_micro(":stairsplus", "concrete", "technic:concrete",
+register_stair_slab_panel_micro(":stairsplus", "concrete", "technic:concrete",
{cracky=3},
{"technic_concrete_block.png"},
"Concrete Stairs",
diff --git a/technic/mining_drill.lua b/technic/mining_drill.lua
index ecaab65..86c18ac 100644
--- a/technic/mining_drill.lua
+++ b/technic/mining_drill.lua
@@ -219,8 +219,8 @@ minetest.register_tool("technic:mining_drill", {
if pointed_thing.type=="node" then
item=itemstack:to_table()
local meta=get_item_meta(item["metadata"])
- if meta==nil then return false end --tool not charghed
- if meta["charge"]==nil then return false end
+ if meta==nil then return end --tool not charghed
+ if meta["charge"]==nil then return end
charge=meta["charge"]
if charge-mining_drill_power_usage>0 then
charge_to_take=drill_dig_it(minetest.get_pointed_thing_position(pointed_thing, above),user,1,1)
@@ -291,7 +291,7 @@ function mining_drill_mk2_handler (itemstack,user,pointed_thing)
if meta==nil or keys["sneak"]==true then return mining_drill_mk2_setmode(user,itemstack) end
if meta["mode"]==nil then return mining_drill_mk2_setmode(user,itemstack) end
if pointed_thing.type~="node" then return end
- if meta["charge"]==nil then return false end
+ if meta["charge"]==nil then return end
charge=meta["charge"]
if charge-mining_drill_power_usage>0 then
local charge_to_take=drill_dig_it(minetest.get_pointed_thing_position(pointed_thing, above),user,2,meta["mode"])
@@ -313,7 +313,7 @@ function mining_drill_mk3_handler (itemstack,user,pointed_thing)
if meta==nil or keys["sneak"]==true then return mining_drill_mk3_setmode(user,itemstack) end
if meta["mode"]==nil then return mining_drill_mk3_setmode(user,itemstack) end
if pointed_thing.type~="node" then return end
- if meta["charge"]==nil then return false end
+ if meta["charge"]==nil then return end
charge=meta["charge"]
if charge-mining_drill_power_usage>0 then
print(dump(meta))
diff --git a/technic/mining_laser_mk1.lua b/technic/mining_laser_mk1.lua
index 87c121d..a00af81 100644
--- a/technic/mining_laser_mk1.lua
+++ b/technic/mining_laser_mk1.lua
@@ -57,8 +57,8 @@ minetest.register_tool("technic:laser_mk1", {
on_use = function(itemstack, user, pointed_thing)
item=itemstack:to_table()
local meta=get_item_meta(item["metadata"])
- if meta==nil then return false end --tool not charghed
- if meta["charge"]==nil then return false end
+ if meta==nil then return end --tool not charghed
+ if meta["charge"]==nil then return end
charge=meta["charge"]
if charge-400>0 then
laser_shoot(item, user, pointed_thing)
diff --git a/technic/ores.lua b/technic/ores.lua
index fddfc5e..b4d67ec 100644
--- a/technic/ores.lua
+++ b/technic/ores.lua
@@ -38,7 +38,7 @@ minetest.register_node( "technic:obsidian", {
sounds = default.node_sound_stone_defaults(),
})
-stairsplus.register_stair_and_slab_and_panel_and_micro(":stairsplus", "marble", "technic:marble",
+register_stair_slab_panel_micro(":stairsplus", "marble", "technic:marble",
{cracky=3},
{"technic_marble.png"},
"Marble Stairs",
@@ -46,7 +46,7 @@ stairsplus.register_stair_and_slab_and_panel_and_micro(":stairsplus", "marble",
"Marble Panel",
"Marble Microblock",
"marble")
-stairsplus.register_stair_and_slab_and_panel_and_micro(":stairsplus", "marble_bricks", "technic:marble_bricks",
+register_stair_slab_panel_micro(":stairsplus", "marble_bricks", "technic:marble_bricks",
{cracky=3},
{"technic_marble_bricks.png"},
"Marble Bricks Stairs",
@@ -54,7 +54,7 @@ stairsplus.register_stair_and_slab_and_panel_and_micro(":stairsplus", "marble_br
"Marble Bricks Panel",
"Marble Bricks Microblock",
"marble_bricks")
-stairsplus.register_stair_and_slab_and_panel_and_micro(":stairsplus", "granite", "technic:granite",
+register_stair_slab_panel_micro(":stairsplus", "granite", "technic:granite",
{cracky=3},
{"technic_granite.png"},
"Granite Stairs",
@@ -62,7 +62,7 @@ stairsplus.register_stair_and_slab_and_panel_and_micro(":stairsplus", "granite",
"Granite Panel",
"Granite Microblock",
"granite")
-stairsplus.register_stair_and_slab_and_panel_and_micro(":stairsplus", "obsidian", "technic:obsidian",
+register_stair_slab_panel_micro(":stairsplus", "obsidian", "technic:obsidian",
{cracky=3},
{"technic_obsidian.png"},
"Obsidian Stairs",
diff --git a/technic/sonic_screwdriver.lua b/technic/sonic_screwdriver.lua
index ffd2984..523b253 100644
--- a/technic/sonic_screwdriver.lua
+++ b/technic/sonic_screwdriver.lua
@@ -14,8 +14,8 @@ minetest.register_tool("technic:sonic_screwdriver", {
if node.param2==nil then return end
item=itemstack:to_table()
local meta1=get_item_meta(item["metadata"])
- if meta1==nil then return false end --tool not charghed
- if meta1["charge"]==nil then return false end
+ if meta1==nil then return end --tool not charghed
+ if meta1["charge"]==nil then return end
charge=meta1["charge"]
if charge-100>0 then
minetest.sound_play("technic_sonic_screwdriver", {pos = pos, gain = 0.3, max_hear_distance = 10,})