mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 14:38:55 +00:00
.
This commit is contained in:
1 parent
98b8abd01a
commit
0601689778
4 files changed
+6
-2
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -247,12 +247,16 @@ public class CrunchSiegeCore extends JavaPlugin {
|
||||
SiegeEquipment equip = CreateClone(CustomModelData);
|
||||
ItemStack item = new ItemStack(Material.CARVED_PUMPKIN);
|
||||
ItemMeta meta = item.getItemMeta();
|
||||
|
||||
equip.AmmoHolder = new EquipmentMagazine();
|
||||
|
||||
|
||||
meta.setCustomModelData(CustomModelData);
|
||||
item.setItemMeta(meta);
|
||||
|
||||
LivingEntity ent = (LivingEntity) entity2;
|
||||
ArmorStand stand = (ArmorStand) ent;
|
||||
equip.Entity = entity2;
|
||||
equip.EntityId = entity2.getUniqueId();
|
||||
stand.addEquipmentLock(EquipmentSlot.HEAD, LockType.REMOVING_OR_CHANGING);
|
||||
stand.addEquipmentLock(EquipmentSlot.LEGS, LockType.ADDING_OR_CHANGING);
|
||||
stand.addEquipmentLock(EquipmentSlot.CHEST, LockType.ADDING_OR_CHANGING);
|
||||
|
||||
@@ -116,7 +116,7 @@ public class SiegeEquipment implements Cloneable {
|
||||
this.AmmoHolder.MaterialName = Material.BEDROCK;
|
||||
|
||||
LivingEntity living = (LivingEntity) Entity;
|
||||
if (living.getEquipment() == null || living.getEquipment().getHelmet() == null || living.getEquipment().getHelmet().getItemMeta() == null) {
|
||||
if (living == null || living.getEquipment() == null || living.getEquipment().getHelmet() == null || living.getEquipment().getHelmet().getItemMeta() == null) {
|
||||
return;
|
||||
}
|
||||
if (living.getEquipment().getHelmet().getItemMeta().getCustomModelData() != this.ReadyModelNumber) {
|
||||
|
||||
Reference in new issue
Block a user