Fixing exploits.

This commit is contained in:
Shank 2011-06-08 01:39:15 -06:00
parent c71ee6a985
commit 0241c8b56f
2 changed files with 3 additions and 4 deletions

View file

@ -16,7 +16,7 @@ namespace TShockAPI
public static string saveDir = "./tshock/";
public static Version VersionNum = new Version(1, 9, 0, 1);
public static Version VersionNum = new Version(2, 0, 0, 0);
public static string VersionCodename = "SPACEEE";
@ -335,7 +335,7 @@ namespace TShockAPI
{
using (var br = new BinaryReader(new MemoryStream(e.Msg.readBuffer, e.Index, e.Length)))
{
byte ply = br.ReadByte();
int ply = e.Msg.whoAmI;
short life = br.ReadInt16();
short maxLife = br.ReadInt16();
@ -356,7 +356,7 @@ namespace TShockAPI
{
using (var br = new BinaryReader(new MemoryStream(e.Msg.readBuffer, e.Index, e.Length)))
{
byte ply = br.ReadByte();
int ply = e.Msg.whoAmI;
short mana = br.ReadInt16();
short maxmana = br.ReadInt16();

View file

@ -19,7 +19,6 @@ namespace Update
StreamReader sr = new StreamReader("pn");
procname = sr.ReadToEnd();
sr.Close();
string[] datat = procname.Split(' ');
procname = datat[0];
procargs = "";