Allow overriding the head item name
This commit is contained in:
parent
8f550510a6
commit
0e50bb031d
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ public class GetHead {
|
||||||
private static int getHead(CommandSourceStack source, String string) {
|
private static int getHead(CommandSourceStack source, String string) {
|
||||||
try {
|
try {
|
||||||
ServerPlayer player= source.getPlayerOrException();
|
ServerPlayer player= source.getPlayerOrException();
|
||||||
ItemStack head = HeadUtilities.get(string);
|
ItemStack head = HeadUtilities.get(string, "");
|
||||||
|
|
||||||
player.addItem(head);
|
player.addItem(head);
|
||||||
} catch (CommandSyntaxException e) {
|
} catch (CommandSyntaxException e) {
|
||||||
|
|
Reference in a new issue