mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-07-08 11:20:39 +02:00
better creative mode checks, fix crash when digging walls in MCL
This commit is contained in:
@ -70,7 +70,7 @@ local stem_on_place = function(itemstack, placer, pointed_thing)
|
||||
end
|
||||
end
|
||||
|
||||
if (not minetest.settings:get_bool("creative_mode", false)) and take_item then
|
||||
if not minetest.is_creative_enabled(placer:get_player_name()) and take_item then
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
|
@ -71,7 +71,7 @@ local stal_on_place = function(itemstack, placer, pointed_thing)
|
||||
end
|
||||
end
|
||||
|
||||
if (not minetest.settings:get_bool("creative_mode", false)) and take_item then
|
||||
if not minetest.is_creative_enabled(placer:get_player_name()) and take_item then
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
|
Reference in New Issue
Block a user