summaryrefslogtreecommitdiff
path: root/sheep.lua
diff options
context:
space:
mode:
Diffstat (limited to 'sheep.lua')
-rw-r--r--sheep.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/sheep.lua b/sheep.lua
index 1dde501..1d8e8c0 100644
--- a/sheep.lua
+++ b/sheep.lua
@@ -158,7 +158,7 @@ for _, col in ipairs(all_colours) do
ent.tamed = true
-- take item
- if not minetest.setting_getbool("creative_mode") then
+ if not mobs.is_creative(clicker:get_player_name()) then
item:take_item()
clicker:set_wielded_item(item)
end