public static int Hook_AfterPlacement( int x, int y, int type = 470, int style = 0, int direction = 1, int alternate = 0) { if (Main.netMode != 1) { return(TEDisplayDoll.Place(x, y - 2)); } NetMessage.SendTileSquare(Main.myPlayer, x, y - 1, 3, TileChangeType.None); NetMessage.SendData(87, -1, -1, (NetworkText)null, x, (float)(y - 2), (float)TEDisplayDoll._myEntityID, 0.0f, 0, 0, 0); return(-1); }
public override void NetPlaceEntityAttempt(int x, int y) { NetMessage.SendData(86, -1, -1, (NetworkText)null, TEDisplayDoll.Place(x, y), (float)x, (float)y, 0.0f, 0, 0, 0); }