Backported jaquadro's 1.7.2 fix for PlantMegaPack compatibility