public override void RightDoubleClick(UIMouseEvent evt) { if (ModContent.GetInstance <NPCInfoConfig>().isCheatMode) { var tempItem = NPCInfoUtils.GetActiveNearItem(item.netID); if (tempItem != null) { tempItem.position = Main.LocalPlayer.position; } } }
public override void DoubleClick(UIMouseEvent evt) { if (ModContent.GetInstance <NPCInfoConfig>().isCheatMode) { var tempItem = NPCInfoUtils.GetActiveNearItem(item.netID); if (tempItem != null) { Main.LocalPlayer.position = Main.LocalPlayer.position = tempItem.Center.Offset(-Main.LocalPlayer.width / 2, tempItem.height / 2 - Main.LocalPlayer.height); Main.LocalPlayer.fallStart = (int)Main.LocalPlayer.position.Y; } } }