mirror of https://github.com/bmgjet/PirateNPCs.git
Fix Plane Vector 9000, Spam,
This commit is contained in:
parent
12ce4cde50
commit
50e932c726
|
@ -3245,8 +3245,8 @@ namespace Oxide.Plugins
|
|||
Item item = ItemManager.CreateByName("horse.armor.wood", 1, 0);
|
||||
if (item != null)
|
||||
{
|
||||
if (!item.MoveToContainer(horse.storageInventory, -1, false)) { item.Remove(); }
|
||||
ItemModAnimalEquipment storage = horse.storageInventory.itemList[0].info.GetComponent<ItemModAnimalEquipment>();
|
||||
if (!item.MoveToContainer(horse.equipmentInventory)) { item.Remove(); }
|
||||
ItemModAnimalEquipment storage = horse.equipmentInventory.itemList[0].info.GetComponent<ItemModAnimalEquipment>();
|
||||
if (storage) { storage.additionalInventorySlots = 30; }
|
||||
horse.SendNetworkUpdateImmediate();
|
||||
}
|
||||
|
@ -5133,7 +5133,7 @@ namespace Oxide.Plugins
|
|||
|
||||
droppoint = droppoints.Keys.ToList().GetRandom();
|
||||
if (droppoints[droppoint] == true) { CanDropNext = true; }
|
||||
if (droppoints.Count == 1)
|
||||
if (droppoints.Count == 1 && !droppoints.ContainsKey(new Vector3(9000, 900, 9000)))
|
||||
{
|
||||
droppoints.Add(new Vector3(9000, 900, 9000), false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue