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