Update enderAPI.lua

reduce file reads
Merge pull request #26 from theoriginalbit/patch-3

Update enderAPI.lua