Fix problem with hashfile code handling dots/periods in world names
This commit is contained in:
parent
3ad67483ae
commit
4af95f57df
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ public class TileHashManager {
|
||||||
public File getHashFile(File tiledir) {
|
public File getHashFile(File tiledir) {
|
||||||
if(hf == null) {
|
if(hf == null) {
|
||||||
String k;
|
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)
|
if(idx > 0)
|
||||||
k = key.substring(0, idx) + File.separatorChar + key.substring(idx+1);
|
k = key.substring(0, idx) + File.separatorChar + key.substring(idx+1);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue