Fix problem with hashfile code handling dots/periods in world names

This commit is contained in:
Mike Primm 2011-11-30 12:10:38 +08:00 committed by mikeprimm
parent 3ad67483ae
commit 4af95f57df

View File

@ -48,7 +48,7 @@ public class TileHashManager {
public File getHashFile(File tiledir) {
if(hf == null) {
String k;
int idx = key.indexOf('.'); /* Find first '.' - world name split */
int idx = key.lastIndexOf('.'); /* Find last '.' - world name split (allows dots in world name) */
if(idx > 0)
k = key.substring(0, idx) + File.separatorChar + key.substring(idx+1);
else