mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-22 01:48:50 +00:00
fix: 修复一般错误
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
7c53c3f687
commit
4b5d9f84fb
@ -7,6 +7,9 @@ package pw.yumc.YumCore.kit;
|
||||
* @since 2016年9月14日 上午1:02:23
|
||||
*/
|
||||
public class StrKit {
|
||||
private StrKit() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 转移数组后获取字符串
|
||||
*
|
||||
|
@ -28,6 +28,9 @@ public class L10N {
|
||||
load();
|
||||
}
|
||||
|
||||
private L10N() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取物品完整汉化名称(包括原版)
|
||||
*
|
||||
|
@ -3,6 +3,7 @@ package pw.yumc.YumCore.sql.core;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
/**
|
||||
@ -13,7 +14,7 @@ import java.util.Map.Entry;
|
||||
*/
|
||||
public class KeyValue {
|
||||
|
||||
private final HashMap<Object, Object> keyvalues = new HashMap<Object, Object>();
|
||||
private final Map<Object, Object> keyvalues = new HashMap<>();
|
||||
|
||||
/**
|
||||
* 数据库键值管理类
|
||||
@ -74,7 +75,7 @@ public class KeyValue {
|
||||
* @return 所有的值
|
||||
*/
|
||||
public Object[] getValues() {
|
||||
final List<Object> keys = new ArrayList<Object>();
|
||||
final List<Object> keys = new ArrayList<>();
|
||||
for (final Entry<Object, Object> next : this.keyvalues.entrySet()) {
|
||||
keys.add(next.getValue());
|
||||
}
|
||||
|
@ -295,7 +295,7 @@ public class Statistics {
|
||||
final long startTime = System.nanoTime();
|
||||
final long timeSpent = (startTime - lastPoll) / 1000;
|
||||
if (history.size() > 10) {
|
||||
history.remove();
|
||||
history.removeFirst();
|
||||
}
|
||||
final double ttps = 2.0E7D / (timeSpent == 0 ? 1 : timeSpent);
|
||||
if (ttps <= 21.0D) {
|
||||
|
Loading…
Reference in New Issue
Block a user