Made the mod comaptible with Java 1.6