+ fix tellraw
This commit is contained in:
parent
803542c589
commit
2617069878
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>me.skymc</groupId>
|
||||
<artifactId>TabooLib</artifactId>
|
||||
<version>4.7</version>
|
||||
<version>4.71</version>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
@ -65,6 +65,7 @@ public class InternalTellraw implements AbstractTellraw {
|
||||
|
||||
@Override
|
||||
public ItemStack optimizeShulkerBox(ItemStack item) {
|
||||
try {
|
||||
if (item.getType().name().endsWith("SHULKER_BOX")) {
|
||||
ItemStack itemClone = item.clone();
|
||||
BlockStateMeta blockStateMeta = (BlockStateMeta) itemClone.getItemMeta();
|
||||
@ -94,6 +95,8 @@ public class InternalTellraw implements AbstractTellraw {
|
||||
itemClone.setItemMeta(blockStateMeta);
|
||||
return itemClone;
|
||||
}
|
||||
} catch (Throwable ignored) {
|
||||
}
|
||||
return item;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user