Update dimHelper.java

Fixed crash bug and fixed surrounding indention.
Completely untested, but should work.
Merge pull request #5 from OvermindDL1/patch-1

Update dimHelper.java