From 057f2ff5908ec8c88f6995050fe686b62ba310ce Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Sat, 5 Aug 2023 23:12:38 -0400 Subject: [PATCH] 3darmor/marinara : use our creative redo mod, event api engine --- mods/3d_armor/3d_armor/init.lua | 2 +- mods/marinara/plants.lua | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mods/3d_armor/3d_armor/init.lua b/mods/3d_armor/3d_armor/init.lua index f0ac5b7..2ab6c09 100644 --- a/mods/3d_armor/3d_armor/init.lua +++ b/mods/3d_armor/3d_armor/init.lua @@ -233,7 +233,7 @@ local function init_player_armor(initplayer) --cursed items cannot be unequiped by the player local is_cursed = minetest.get_item_group(stack:get_name(), "cursed") ~= 0 if minetest.get_modpath("creative") then - if not creative.is_creative_enabled(player) and is_cursed then + if not creative.is_creative(player) and is_cursed then return 0 end end diff --git a/mods/marinara/plants.lua b/mods/marinara/plants.lua index 4f4016f..290361f 100644 --- a/mods/marinara/plants.lua +++ b/mods/marinara/plants.lua @@ -109,7 +109,7 @@ minetest.register_node("marinara:sand_with_kelp", { not minetest.is_protected(pos_top, player_name) then minetest.set_node(pos, {name = "marinara:sand_with_kelp", param2 = height * 8}) - if not minetest.is_creative_enabled(player_name) then + if not creative.is_creative(player_name) then itemstack:take_item() end else @@ -181,7 +181,7 @@ minetest.register_node("marinara:sand_with_seagrass2", { not minetest.is_protected(pos_top, player_name) then minetest.set_node(pos, {name = "marinara:sand_with_seagrass2", param2 = height * 8}) - if not minetest.is_creative_enabled(player_name) then + if not creative.is_creative(player_name) then itemstack:take_item() end else @@ -253,7 +253,7 @@ minetest.register_node("marinara:sand_with_seagrass", { not minetest.is_protected(pos_top, player_name) then minetest.set_node(pos, {name = "marinara:sand_with_seagrass", param2 = height * 8}) - if not minetest.is_creative_enabled(player_name) then + if not creative.is_creative(player_name) then itemstack:take_item() end else @@ -325,7 +325,7 @@ minetest.register_node("marinara:sand_with_alage", { not minetest.is_protected(pos_top, player_name) then minetest.set_node(pos, {name = "marinara:sand_with_alage", param2 = height * 16}) - if not minetest.is_creative_enabled(player_name) then + if not creative.is_creative(player_name) then itemstack:take_item() end else @@ -397,7 +397,7 @@ minetest.register_node("marinara:coastrock_with_brownalage", { not minetest.is_protected(pos_top, player_name) then minetest.set_node(pos, {name = "marinara:coastrock_with_brownalage", param2 = height * 8}) - if not minetest.is_creative_enabled(player_name) then + if not creative.is_creative(player_name) then itemstack:take_item() end else