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
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user