Skip to content

Commit

Permalink
yet another bug fix + v1.0.1.3 update
Browse files Browse the repository at this point in the history
  • Loading branch information
absoluteAquarian committed Jan 11, 2023
1 parent e61a182 commit 0688f44
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
displayName = absoluteAquarian Utilities
author = absoluteAquarian
version = 1.0.1.2
version = 1.0.1.3
4 changes: 2 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[h1]v1.0.1.2[/h1]
[h1]v1.0.1.3[/h1]
You can find the DLL, PDB and XML files in the mod's [url=https://github.com/absoluteAquarian/SerousCommonLib/releases/tag/v1.0.1.2]GitHub repository[/url]

- Fixed a bug in EnhancedItemSlot where it wouldn't properly support overrides of the StoredItem property
- Fixed yet another bug in EnhancedItemSlot which caused items to disappear
2 changes: 1 addition & 1 deletion description.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The common library for absoluteAquarian's various mods.

The DLL, PDB and XML files for this mod can be found at:
https://github.com/absoluteAquarian/SerousCommonLib/releases/tag/v1.0.1.2
https://github.com/absoluteAquarian/SerousCommonLib/releases/tag/v1.0.1.3

Many features are included in this mod, including but not limited to:
- IL/On edit helpers
Expand Down
8 changes: 4 additions & 4 deletions src/UI/EnhancedItemSlot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ protected override void DrawSelf(SpriteBatch spriteBatch) {
Main.mouseLeft = Main.mouseLeftRelease = Main.mouseRight = Main.mouseRightRelease = false;

// Handle handles all the click and hover actions based on the context.
Item item = StoredItem.Clone();
storedItemBeforeHandle = item;
Item item = StoredItem;
storedItemBeforeHandle = item.Clone();
dummy[10] = item;
ItemSlot.Handle(dummy, Context, 10);
item = dummy[10];
storedItem = dummy[10];

if (ItemChanged || ItemTypeChanged)
OnItemChanged?.Invoke(item);
OnItemChanged?.Invoke(storedItem);

Main.mouseLeft = oldLeft;
Main.mouseLeftRelease = oldLeftRelease;
Expand Down

0 comments on commit 0688f44

Please sign in to comment.