3darmor/marinara : use our creative redo mod, event api engine
This commit is contained in:
parent
d7ae85b7f6
commit
057f2ff590
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user