Skip to content

Commit

Permalink
v1.8.3.8
Browse files Browse the repository at this point in the history
- 1.8.3.6 fix
  • Loading branch information
Jake-Moore committed Nov 7, 2023
1 parent e4c2aa5 commit be18a42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.kamikazejamplugins</groupId>
<artifactId>kamicommon</artifactId>
<version>1.8.3.7</version>
<version>1.8.3.8</version>
<packaging>jar</packaging>

<name>KamiCommon</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,16 @@ public void loadConfigItem(ConfigurationSection config) {
}

public void loadConfigItem(ConfigurationSection config, @Nullable OfflinePlayer offlinePlayer) {
Optional<XMaterial> optional = XMaterial.matchXMaterial(config.getString("material", config.getString("type")));
if (optional.isPresent() && optional.get().equals(XMaterial.PLAYER_HEAD)) {
loadPlayerHead(config, offlinePlayer);
String mat = config.getString("material", config.getString("type"));
if (mat != null) {
if (XMaterial.matchXMaterial(mat).orElse(XMaterial.AIR).equals(XMaterial.PLAYER_HEAD)) {
loadPlayerHead(config, offlinePlayer);
return;
}
}
loadBasicItem(config);
}


public IBuilder(XMaterial m) {
this(m, 1);
}
Expand Down

0 comments on commit be18a42

Please sign in to comment.