forked from Upstream/mmocore
Debug Model Data Skill Tree GUI.
This commit is contained in:
parent
5499979567
commit
2b5932756f
@ -368,10 +368,8 @@ public class ThreeDimAdaptor extends Adaptor {
|
|||||||
.getEntityFromID(event.getPlayer().getWorld(), packet.getIntegers().read(0));
|
.getEntityFromID(event.getPlayer().getWorld(), packet.getIntegers().read(0));
|
||||||
if (entity instanceof ArmorStand armorStand) {
|
if (entity instanceof ArmorStand armorStand) {
|
||||||
if (true) {
|
if (true) {
|
||||||
Bukkit.broadcastMessage("IN");
|
|
||||||
|
|
||||||
if (armorStands.values().contains(armorStand)) {
|
if (armorStands.values().contains(armorStand)) {
|
||||||
Bukkit.broadcastMessage("CANCEL" + armorStand.getName());
|
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -146,7 +146,6 @@ public abstract class InventoryItem<T extends GeneratedInventory> {
|
|||||||
Placeholders placeholders = getPlaceholders(inv, n);
|
Placeholders placeholders = getPlaceholders(inv, n);
|
||||||
ItemStack item = new ItemStack(specificMaterial == null ? material : specificMaterial);
|
ItemStack item = new ItemStack(specificMaterial == null ? material : specificMaterial);
|
||||||
ItemMeta meta = item.getItemMeta();
|
ItemMeta meta = item.getItemMeta();
|
||||||
meta.setCustomModelData(modelData);
|
|
||||||
if (texture != null && meta instanceof SkullMeta)
|
if (texture != null && meta instanceof SkullMeta)
|
||||||
applyTexture(texture, (SkullMeta) meta);
|
applyTexture(texture, (SkullMeta) meta);
|
||||||
|
|
||||||
@ -163,7 +162,7 @@ public abstract class InventoryItem<T extends GeneratedInventory> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (MythicLib.plugin.getVersion().isStrictlyHigher(1, 13))
|
if (MythicLib.plugin.getVersion().isStrictlyHigher(1, 13))
|
||||||
meta.setCustomModelData(getModelData());
|
meta.setCustomModelData(modelData);
|
||||||
|
|
||||||
item.setItemMeta(meta);
|
item.setItemMeta(meta);
|
||||||
return item;
|
return item;
|
||||||
|
Loading…
Reference in New Issue
Block a user