Skip to content

Commit

Permalink
Fix swing->click duplication glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Jul 12, 2017
1 parent 23b731c commit 54e6d0d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 51 deletions.
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

25 changes: 16 additions & 9 deletions Menus/RecipeQuerySlot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,29 @@ private void Slot_OnHover(object sender, EventArgs e)

private void Slot2_onLeftClick(object sender, EventArgs e)
{
Player player = Main.LocalPlayer;
if (real)
{
Item item = Main.mouseItem.Clone();
Main.mouseItem = this.item.Clone();
if (Main.mouseItem.type > 0)
if (player.itemAnimation == 0 && player.itemTime == 0)
{
Main.playerInventory = true;
Item item = Main.mouseItem.Clone();
Main.mouseItem = this.item.Clone();
if (Main.mouseItem.type > 0)
{
Main.playerInventory = true;
}
this.item = item.Clone();
}
this.item = item.Clone();
}
else
{
//Item item = Main.mouseItem.Clone();
this.item = Main.mouseItem.Clone();
Main.mouseItem.SetDefaults(0);
real = true;
if (player.itemAnimation == 0 && player.itemTime == 0)
{
//Item item = Main.mouseItem.Clone();
this.item = Main.mouseItem.Clone();
Main.mouseItem.SetDefaults(0);
real = true;
}
}

//call update.
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
author = jopojelly, jofairden
version = 0.2.7.1
version = 0.2.7.2
displayName = Cheat Sheet
homepage = http://forums.terraria.org/index.php?threads/cheat-sheet.41407/
buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*
Expand Down

0 comments on commit 54e6d0d

Please sign in to comment.