Fix bug causing crashes when technic is installed.

Also, the soonest I've ever ported a change from skylands to skytest. :P