mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-12-25 18:20:20 +01:00
Fix several typos in comments
This commit is contained in:
parent
c30366d2dc
commit
e09d2fab01
@ -152,7 +152,7 @@ function circular_saw:update_inventory(pos, amount)
|
|||||||
|
|
||||||
amount = meta:get_int("anz") + amount
|
amount = meta:get_int("anz") + amount
|
||||||
|
|
||||||
-- The material is recycled automaticly.
|
-- The material is recycled automatically.
|
||||||
inv:set_list("recycle", {})
|
inv:set_list("recycle", {})
|
||||||
|
|
||||||
if amount < 1 then -- If the last block is taken out.
|
if amount < 1 then -- If the last block is taken out.
|
||||||
@ -246,7 +246,7 @@ function circular_saw.allow_metadata_inventory_put(
|
|||||||
local stackname = stack:get_name()
|
local stackname = stack:get_name()
|
||||||
local count = stack:get_count()
|
local count = stack:get_count()
|
||||||
|
|
||||||
-- Only alow those items that are offered in the output inventory to be recycled:
|
-- Only allow those items that are offered in the output inventory to be recycled:
|
||||||
if listname == "recycle" then
|
if listname == "recycle" then
|
||||||
if not inv:contains_item("output", stackname) then
|
if not inv:contains_item("output", stackname) then
|
||||||
return 0
|
return 0
|
||||||
@ -345,7 +345,7 @@ function circular_saw.on_metadata_inventory_take(
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- If it is one of the offered stairs: find out how many
|
-- If it is one of the offered stairs: find out how many
|
||||||
-- microblocks have to be substracted:
|
-- microblocks have to be subtracted:
|
||||||
if listname == "output" then
|
if listname == "output" then
|
||||||
-- We do know how much each block at each position costs:
|
-- We do know how much each block at each position costs:
|
||||||
local cost = circular_saw.cost_in_microblocks[index]
|
local cost = circular_saw.cost_in_microblocks[index]
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
This also registers the node with the circular saw.
|
This also registers the node with the circular saw.
|
||||||
Example:
|
Example:
|
||||||
```lua
|
```lua
|
||||||
stairsplus:register_all("moreblocks", "wood", "defaut:wood", {
|
stairsplus:register_all("moreblocks", "wood", "default:wood", {
|
||||||
description = "Wooden",
|
description = "Wooden",
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
groups = {oddly_breakabe_by_hand=1},
|
groups = {oddly_breakabe_by_hand=1},
|
||||||
|
Loading…
Reference in New Issue
Block a user