mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-01-13 11:11:22 +01:00
Fix problem with hashfile code handling dots/periods in world names
This commit is contained in:
parent
3ad67483ae
commit
4af95f57df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user