Update MapData.java

Removed some extra lines of code.