mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
Custom Model Data can now be accessed on lower versions
(Obviously won't do anything on 1.13 and below, but might still be useful)
This commit is contained in:
parent
51e8979a3c
commit
17edbae4b3
@ -3,7 +3,6 @@ package net.Indyuce.mmoitems.stat;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import net.Indyuce.mmoitems.MMOItems;
|
||||
import net.Indyuce.mmoitems.api.item.MMOItem;
|
||||
import net.Indyuce.mmoitems.api.item.NBTItem;
|
||||
import net.Indyuce.mmoitems.api.item.build.MMOItemBuilder;
|
||||
@ -13,10 +12,9 @@ import net.Indyuce.mmoitems.version.nms.ItemTag;
|
||||
|
||||
public class Custom_Model_Data extends DoubleStat {
|
||||
public Custom_Model_Data() {
|
||||
super(new ItemStack(Material.PAINTING), "Custom Model Data", new String[] { "Your 1.14+ model data." }, "custom-model-data", new String[] { "all" });
|
||||
super(new ItemStack(Material.PAINTING), "Custom Model Data", new String[] { "Your 1.14+ model data.", "(Only works on 1.14+)" }, "custom-model-data", new String[] { "all" });
|
||||
|
||||
if (MMOItems.plugin.getVersion().isBelowOrEqual(1, 13))
|
||||
disable();
|
||||
//if (MMOItems.plugin.getVersion().isBelowOrEqual(1, 13)) disable();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user