try a fix to default to great dragon with eggs to avoid crashes

This commit is contained in:
fwhcat 2019-07-25 09:15:42 +02:00
parent c599ac7a7c
commit c84679d688

View File

@ -41,6 +41,10 @@ local function egg_transform(pos, node, clicker, item, _)
break
end
end
-- default to Great dragon si it doesn't crash
if dragon_type == nil then
dragon_type = "great"
end
minetest.chat_send_player(clicker:get_player_name()," ... something seems to be happening .... come back later?")