if flower == nil will nolonger crash as for some reason minetest wasnt doing the pr right