Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static StaticContext TheGame { get; private set; }
- public static Farmer Player => TheGame.Player;
- int itemsInInventoryCountStart = Player.Items.Count;
- int itemsInInventoryCountEnd = Player.Items.Count;
- int itemCountDiffereance = 0;
- temCountDiffereance = itemsInInventoryCountEnd - itemsInInventoryCountStart;
- if(itemCountDiffereance > 0)
- {
- int c = itemsInInventoryCountStart - 1;
- while (c < itemsInInventoryCountEnd - 1)
- {
- Player.Items[c] = null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement