Fix leaves breaking even when a log is nearby
Fixed some more warnings