Skip to content

Commit

Permalink
修复语法错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvigarabis committed Sep 17, 2023
1 parent 4686f47 commit a76a74c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void selectItem(ItemStack item){
//附魔书暂时不支持
if (item.getType().equals(ENCHANTED_BOOK)){
this.enchantments = new HashMap();
} else
} else {
//之前没想到这里返回的是 com.google.common.collect.ImmutableMap
//用一个HashMap改一下
this.enchantments = new HashMap(item.getEnchantments());
Expand Down

0 comments on commit a76a74c

Please sign in to comment.