Treat serverName jar as craftbukkit jar

This commit is contained in:
Dan Mulloy 2018-07-24 14:45:24 -04:00 committed by Alexander Meech
parent cd24af79ee
commit 51c2e5247c

View File

@ -231,7 +231,8 @@ public class FileUpdater extends MiniPlugin
{ {
try (FileInputStream stream = new FileInputStream(file)) try (FileInputStream stream = new FileInputStream(file))
{ {
_jarMd5Map.put(file.getName(), DigestUtils.md5Hex(stream)); String fileName = file.getName().replace(UtilServer.getServerName(), "craftbukkit");
_jarMd5Map.put(fileName, DigestUtils.md5Hex(stream));
} }
catch (IOException ex) catch (IOException ex)
{ {