Fix bug causing a crash when technic is enabled

I'm amazed it hadn't crashed sooner with such a stupid error...