Changeset 306 for binary-improvements/AllocsCommands/Commands/Give.cs
- Timestamp:
- Aug 2, 2017, 6:46:15 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/AllocsCommands/Commands/Give.cs
r299 r306 39 39 } 40 40 41 ItemValue iv = Item List.Instance.GetItemValue (_params [1]);42 if (iv == null) {41 ItemValue iv = ItemClass.GetItem (_params [1], true); 42 if (iv.type == ItemValue.None.type) { 43 43 SdtdConsole.Instance.Output ("Item not found."); 44 44 return; 45 45 } 46 47 iv = new ItemValue (iv.type, true); 46 48 47 49 int n = int.MinValue; … … 88 90 ItemStack invField = new ItemStack (iv, n); 89 91 90 GameManager.Instance.ItemDropServer (invField, p.GetPosition (), Vector3.zero , -1, 50);92 GameManager.Instance.ItemDropServer (invField, p.GetPosition (), Vector3.zero); 91 93 92 94 SdtdConsole.Instance.Output ("Dropped item");
Note:
See TracChangeset
for help on using the changeset viewer.