1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-02-12 18:31:32 +01:00

Fix for logging not working

This commit is contained in:
Zrips 2017-09-01 12:27:34 +03:00
parent fbf3f22945
commit 4856ae23b3

View File

@ -26,9 +26,11 @@ public class Loging {
jPlayer.getLog().clear(); jPlayer.getLog().clear();
} }
Log log = logList.get(ActionName); Log log = logList.get(ActionName);
if (log == null) if (log == null){
log = new Log(ActionName); log = new Log(ActionName);
}
log.add(item, amount, expAmount); log.add(item, amount, expAmount);
logList.put(ActionName, log);
} }
public void loadToLog(JobsPlayer jPlayer, String ActionName, String item, int count, double money, double expAmount) { public void loadToLog(JobsPlayer jPlayer, String ActionName, String item, int count, double money, double expAmount) {