We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b25f7bb commit eb18d94Copy full SHA for eb18d94
plugin/src/main/kotlin/trplugins/menu/module/internal/command/impl/CommandItem.kt
@@ -101,7 +101,7 @@ object CommandItem : CommandExpression {
101
val stringJson: String = if (!HookPlugin.getNBTAPI().isHooked) {
102
val json = JsonObject()
103
json.addProperty("type", item.type.name)
104
- json.addProperty("data", item.data!!.data)
+ json.addProperty("data", if (MinecraftVersion.isLowerOrEqual(MinecraftVersion.V1_12)) item.data!!.data else 0)
105
json.addProperty("amount", item.amount)
106
json.add("meta", Gson().toJsonTree(item.getItemTag()))
107
json.toString()
0 commit comments