Fix Plane Vector 9000, Spam,

This commit is contained in:
bmgjet 2023-11-04 00:26:09 +13:00 committed by GitHub
parent 12ce4cde50
commit 50e932c726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}