1
mirror of https://github.com/CarmJos/MineConfiguration.git synced 2026-07-16 09:41:17 +08:00

[1.1.5] 修复ItemConfig读取出错的问题。

This commit is contained in:
2022-04-25 13:02:17 +08:00
parent 25f005ddfb
commit 352ef107f9
6 changed files with 6 additions and 6 deletions
@@ -70,7 +70,7 @@ public class ItemConfig {
}
public static @NotNull ItemConfig deserialize(@NotNull ConfigurationWrapper section) throws Exception {
String typeName = section.getString("name");
String typeName = section.getString("type");
if (typeName == null) throw new NullPointerException("Item type name is null");
Material type = Material.matchMaterial(typeName);