Exemplo n.º 1
0
 public byte[] MakeDefinePacket(Player pl)
 {
     if (pl.Supports(CpeExt.BlockDefinitionsExt, 2) && Shape != 0)
     {
         return(Packet.DefineBlockExt(this, true, pl.hasCP437, pl.hasExtBlocks, pl.hasExtTexs));
     }
     else if (pl.Supports(CpeExt.BlockDefinitionsExt) && Shape != 0)
     {
         return(Packet.DefineBlockExt(this, false, pl.hasCP437, pl.hasExtBlocks, pl.hasExtTexs));
     }
     else
     {
         return(Packet.DefineBlock(this, pl.hasCP437, pl.hasExtBlocks, pl.hasExtTexs));
     }
 }