diff --git a/SmartCursor/CursorPosition.cs b/SmartCursor/CursorPosition.cs
deleted file mode 100644
index 2e365c1..0000000
--- a/SmartCursor/CursorPosition.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using Microsoft.Xna.Framework;
-using StardewModdingAPI;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace SmartCursor {
- class CursorPosition : ICursorPosition {
- public Vector2 AbsolutePixels { get; }
- public Vector2 ScreenPixels { get; }
- public Vector2 Tile { get; }
- public Vector2 GrabTile { get; }
-
- public CursorPosition(Vector2 absolutePixels, Vector2 screenPixels, Vector2 tile, Vector2 grabTile) {
- AbsolutePixels = absolutePixels;
- ScreenPixels = screenPixels;
- Tile = tile;
- GrabTile = grabTile;
- }
-
- public bool Equals(ICursorPosition other) {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/SmartCursor/ModEntry.cs b/SmartCursor/ModEntry.cs
index d503621..2762691 100644
--- a/SmartCursor/ModEntry.cs
+++ b/SmartCursor/ModEntry.cs
@@ -80,7 +80,6 @@ private double GetAngle(Vector2 screenPixels) {
private int GetOctant(Vector2 screenPixels) {
double angle = GetAngle(screenPixels);
- Vector2 grabTile = Game1.player.getTileLocation();
angle += 22.5;
if (angle < 45) {
@@ -104,7 +103,7 @@ private int GetOctant(Vector2 screenPixels) {
}
private void InputEvents_ButtonPressed(object sender, EventArgsInput e) {
- if (!Context.IsWorldReady || !Context.IsPlayerFree || !(e.Button == SButton.MouseLeft) || Game1.player.isCharging || Game1.player.isRidingHorse() || Game1.player.UsingTool) {
+ if (!Context.IsWorldReady || !Context.IsPlayerFree || e.Button != SButton.MouseLeft || Game1.player.isCharging || Game1.player.isRidingHorse() || Game1.player.UsingTool) {
return;
}
@@ -145,10 +144,8 @@ private void InputEvents_ButtonPressed(object sender, EventArgsInput e) {
dir = Game1.right;
}
- e = new EventArgsInput(SButton.MouseLeft, new CursorPosition(cursor.AbsolutePixels, cursor.ScreenPixels, grabTile, grabTile), null);
Game1.player.lastClick = grabTile * 64 + new Vector2(32, 32);
Game1.player.FacingDirection = dir;
}
-
}
}
diff --git a/SmartCursor/SmartCursor.csproj b/SmartCursor/SmartCursor.csproj
index 9650216..ac47d1e 100644
--- a/SmartCursor/SmartCursor.csproj
+++ b/SmartCursor/SmartCursor.csproj
@@ -11,8 +11,6 @@
SmartCursor
v4.5
512
-
-
true
@@ -50,6 +48,9 @@
MinimumRecommendedRules.ruleset
true
+
+
+
@@ -61,23 +62,11 @@
-
-
-
-
-
-
-
-
- This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
-
\ No newline at end of file
diff --git a/SmartCursor/manifest.json b/SmartCursor/manifest.json
index 10c9e42..86c27bc 100644
--- a/SmartCursor/manifest.json
+++ b/SmartCursor/manifest.json
@@ -1,7 +1,7 @@
{
"Name": "SmartCursor",
"Author": "stokastic",
- "Version": "1.1",
+ "Version": "1.1.0",
"Description": "Allows smart targeting of adjacent 8 tiles",
"UniqueID": "stokastic.SmartCursor",
"EntryDll": "SmartCursor.dll",
diff --git a/SmartCursor/packages.config b/SmartCursor/packages.config
deleted file mode 100644
index 170a804..0000000
--- a/SmartCursor/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file