mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-01-14 19:51:35 +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) {
|
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…
Reference in New Issue
Block a user