Debug output
This commit is contained in:
parent
45ef04e9d7
commit
7ad353000e
2 changed files with 21 additions and 13 deletions
|
|
@ -215,6 +215,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
private static bool HandleSendTileSquare(GetDataHandlerArgs args)
|
private static bool HandleSendTileSquare(GetDataHandlerArgs args)
|
||||||
{
|
{
|
||||||
|
|
||||||
short size = args.Data.ReadInt16();
|
short size = args.Data.ReadInt16();
|
||||||
int tilex = args.Data.ReadInt32();
|
int tilex = args.Data.ReadInt32();
|
||||||
int tiley = args.Data.ReadInt32();
|
int tiley = args.Data.ReadInt32();
|
||||||
|
|
@ -248,6 +249,11 @@ namespace TShockAPI
|
||||||
|
|
||||||
var tile = Main.tile[realx, realy];
|
var tile = Main.tile[realx, realy];
|
||||||
var newtile = tiles[x, y];
|
var newtile = tiles[x, y];
|
||||||
|
if ((tile.type == 128 && newtile.Type == 128) || (tile.type == 105 || newtile.Type == 105))
|
||||||
|
{
|
||||||
|
Console.WriteLine("Ponies? \n");
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (tile.type == 0x17 && newtile.Type == 0x2)
|
if (tile.type == 0x17 && newtile.Type == 0x2)
|
||||||
{
|
{
|
||||||
|
|
@ -270,8 +276,10 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
|
|
||||||
if (changed)
|
if (changed)
|
||||||
|
{
|
||||||
TSPlayer.All.SendTileSquare(tilex, tiley, 3);
|
TSPlayer.All.SendTileSquare(tilex, tiley, 3);
|
||||||
|
WorldGen.RangeFrame(tilex, tiley, tilex + size, tiley + size);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -281,7 +289,6 @@ namespace TShockAPI
|
||||||
int x = args.Data.ReadInt32();
|
int x = args.Data.ReadInt32();
|
||||||
int y = args.Data.ReadInt32();
|
int y = args.Data.ReadInt32();
|
||||||
byte tiletype = args.Data.ReadInt8();
|
byte tiletype = args.Data.ReadInt8();
|
||||||
|
|
||||||
if (args.Player.AwaitingName)
|
if (args.Player.AwaitingName)
|
||||||
{
|
{
|
||||||
if (TShock.Regions.InAreaRegionName(x, y) == null)
|
if (TShock.Regions.InAreaRegionName(x, y) == null)
|
||||||
|
|
@ -317,6 +324,7 @@ namespace TShockAPI
|
||||||
args.Player.SendTileSquare(x, y);
|
args.Player.SendTileSquare(x, y);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == 1 || type == 3)
|
if (type == 1 || type == 3)
|
||||||
{
|
{
|
||||||
int plyX = Math.Abs(args.Player.TileX);
|
int plyX = Math.Abs(args.Player.TileX);
|
||||||
|
|
|
||||||
|
|
@ -36,5 +36,5 @@ using System.Runtime.InteropServices;
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion("3.3.4.1204")]
|
[assembly: AssemblyVersion("3.3.4.1205")]
|
||||||
[assembly: AssemblyFileVersion("3.3.4.1204")]
|
[assembly: AssemblyFileVersion("3.3.4.1205")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue