Fix ShowItem not working in messages

This commit is contained in:
Phoenix616 2021-05-16 19:53:30 +01:00
parent f825995a85
commit 2545b95d54
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0

View File

@ -524,6 +524,7 @@ public class MaterialUtil {
Map<String, String> newMap = new LinkedHashMap<>(replacementMap);
newMap.put("material", "item");
newMap.remove("item");
Component component = new Replacer()
.placeholderSuffix("")
.replace("item",itemComponent.build())