@@ -16,11 +16,13 @@ minetest.register_craftitem("maptools:copper_coin", {
16
16
stack_max = 10000 ,
17
17
})
18
18
19
- minetest .register_craft ({
20
- output = " maptools:copper_coin 10" ,
21
- type = " shapeless" ,
22
- recipe = { " default:copper_ingot" , " default:copper_ingot" }
23
- })
19
+ if maptools .config and maptools .config .enable_coin_crafting then
20
+ minetest .register_craft ({
21
+ output = " maptools:copper_coin 10" ,
22
+ type = " shapeless" ,
23
+ recipe = { " default:copper_ingot" , " default:copper_ingot" }
24
+ })
25
+ end
24
26
25
27
minetest .register_craftitem (" maptools:silver_coin" , {
26
28
description = S (" Silver Coin" ),
@@ -29,12 +31,14 @@ minetest.register_craftitem("maptools:silver_coin", {
29
31
stack_max = 10000 ,
30
32
})
31
33
32
- if minetest .get_modpath (" moreores" ) then
33
- minetest .register_craft ({
34
- output = " maptools:silver_coin 10" ,
35
- type = " shapeless" ,
36
- recipe = { " moreores:silver_ingot" , " moreores:silver_ingot" }
37
- })
34
+ if maptools .config and maptools .config .enable_coin_crafting then
35
+ if minetest .get_modpath (" moreores" ) then
36
+ minetest .register_craft ({
37
+ output = " maptools:silver_coin 10" ,
38
+ type = " shapeless" ,
39
+ recipe = { " moreores:silver_ingot" , " moreores:silver_ingot" }
40
+ })
41
+ end
38
42
end
39
43
40
44
minetest .register_craftitem (" maptools:gold_coin" , {
@@ -44,11 +48,13 @@ minetest.register_craftitem("maptools:gold_coin", {
44
48
stack_max = 10000 ,
45
49
})
46
50
47
- minetest .register_craft ({
48
- output = " maptools:gold_coin 10" ,
49
- type = " shapeless" ,
50
- recipe = { " default:gold_ingot" , " default:gold_ingot" }
51
- })
51
+ if maptools .config and maptools .config .enable_coin_crafting then
52
+ minetest .register_craft ({
53
+ output = " maptools:gold_coin 10" ,
54
+ type = " shapeless" ,
55
+ recipe = { " default:gold_ingot" , " default:gold_ingot" }
56
+ })
57
+ end
52
58
53
59
minetest .register_craftitem (" maptools:infinitefuel" , {
54
60
description = S (" Infinite Fuel" ),
0 commit comments