Skip to content

Commit

Permalink
Fixed NoSuchMethodError when killing entities on Spigot servers
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed Nov 4, 2024
1 parent 25cef3e commit ad4b0dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/coreprotect/bukkit/Bukkit_v1_21.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public EntityType getEntityType(Material material) {

@Override
public Object getRegistryKey(Object value) {
return ((Keyed) value).getKey().asString();
return ((Keyed) value).getKey().toString();
}

@Override
Expand Down

0 comments on commit ad4b0dd

Please sign in to comment.