Settings and Typo corrections

This commit is contained in:
Extex101 2024-06-28 15:44:37 -07:00 committed by GitHub
parent 3dc41de35e
commit 867a4ad097
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 4 deletions

View File

@ -162,7 +162,7 @@ minetest.register_craft({
recipe = {h,h,h,h,h,h},
})
if jpizza.has_depends.dungeon_loot then
if jpizza.has_depends.dungeon_loot and minetest.settings:get_bool("jelys_pizzaria.enable_dungeon_loot") then
--Cheese
dungeon_loot.register({

View File

@ -421,8 +421,8 @@ if jpizza.has_depends.stairs then
"jelys_pizzaria_reinforced_brick.png^[transformFX",
"jelys_pizzaria_reinforced_brick.png"
},
"Reinforced Brick stair",
"Reinforced Brick slab",
"Reinforced Brick Stair",
"Reinforced Brick Slab",
default.node_sound_stone_defaults(),
false
)

View File

@ -261,7 +261,7 @@ minetest.register_node("jelys_pizzaria:pizza_oven_fueled", {
after_destruct = after_destruct,
on_punch = function(pos, node, player)
local itemstack = player:get_wielded_item()
if itemstack:get_name() == "default:torch" then
if itemstack:get_name() == "default:torch" or itemstack:get_name() == "fire:flint_and_steel" then
swap_node(pos, "jelys_pizzaria:pizza_oven_active")
start_timer(pos, 0)
end

2
settingtypes.txt Normal file
View File

@ -0,0 +1,2 @@
# Whether pizza items should appear in dungeon chests, disabling will make the rare "haiac pizza" unobtainable, (Requires dungeon_loot)
jelys_pizzaria.enable_dungeon_loot (Add Pizza items to dungeon_loot table) bool true