check for minecraft.theWorld != null
Merge pull request #460 from bspkrs/patch-1

check for minecraft.theWorld != null