summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_9.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite cClientHandle::HandleRightClick (#4089)9caihezi2018-01-081-4/+23
| | | | | | | | | | | | | * Add hand parameter to distinguish main hand/off hand. * Add a new function cClientHandle::HandleUseItem to separate the functionality of using an item without a target block. This matches the protocol with client version >= 1.9 * Always actively update the status of a block if the placement fails (by out of reach or rejected by plugin). * Do not call plugin callback CallHookPlayerRightClick(-1, 255, -1, -1, 0, 0, 0) when using item. The CallHookPlayerUsingItem will still be called. Now at most one of CallHookPlayerRightClick, CallHookPlayerUsingBlock, CallHookPlayerUsingItem and CallHookPlayerEating will be called based on the type of action (not including the used version of callbacks). * Do not count using item as BlockInteractionsRate check (Using item takes time). * Now we can open chests(etc.) when sneaking as long as the player's hand is empty. This is what vanilla server does.
* Add the fmt library (#4065)peterbell102018-01-031-6/+6
| | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
* Protocol: Fix potion metadata parsing (#4116)peterbell102017-12-261-2/+2
|
* Implement horse inventory (#4053)peterbell102017-10-211-1/+4
| | | | | | | | | | * Implement horse inventory * Fix sign conversions * Add API doc for ItemCategory::IsHorseArmor * Improve HandleOpenHorseInventory comment and style fixes.
* Fix switch warnings (#4013)peterbell102017-09-141-33/+36
| | | | | | | | | | | | | | | * Fix switch warnings * Fix a variety of -Wswitch and -Wswitch-enum warnings * Remove unneeded -Wno-error flags * Reorganise some eMonsterType switches * Alpha sort eMonsterType cases in WriteMobMetadata and in cNBTChunkSerializer::AddMonsterEntity * List all mob types in protocol 1.12 and NBTChunkSerializer * cStructGenTrees::GetNumTrees: remove switch default * cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
* GetPacketID for protocol packet IDs (#3977)Lane Kolbly2017-09-021-176/+85
| | | | | | | | | | | | | | | | | | | | | | | | * Added GetPacketId method to protocol, implemented for all protocols. * Moved GetPacketID methods into a single file, alpha-sorted. * Fixed 1.12.1 HandlePacket switch statement. * Added SendLogin to the GetPacketId framework. * Added SpawnObject to GetPacketId framework. * Added missing sendEntityEquipment packet ID update for 1.12.1 * Added LeashEntity packet ID change to 1.12.1 * Alphabetized packet enum, added SpawnGlobalEntity to GetPacketId framework * Fixed clang errors * Indented cases, expanded comment for GetPacketId * Changed dyslexic comment.
* Protocol Spawn Position Should Use LastSentPosition (#3929)Lane Kolbly2017-08-301-12/+16
| | | | | | + Added GetLastSentPos * Fixed spawn position bug in 1.8.
* Update mbedtls to 2.5.1 (#3964)peterbell102017-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Renaming changes: * macro prefix "POLARSSL" -> "MBEDTLS" * functions now prefixed with "mbedtls_" * rename PolarSSL++ -> mbedTLS++ * rename polarssl submodule * Use mbedtls' AES-CFB8 implementation. * Add cSslConfig to wrap mbedtls_ssl_config * Update cTCPLink and cBlockingSslClientSocket to use cSslConfig * Use cSslConfig in cHTTPServer * Use cSslConfig for cMojangAPI::SecureRequest * CI Fixes * Set -fomit-frame-pointer on the right target
* Implement Forge protocol handshake support (#3869)satoshinm2017-08-271-10/+39
|
* Don't assert when placing beds in older versions (#3916)mathiascode2017-08-251-0/+1
|
* Add cUUID class (#3871)peterbell102017-08-251-5/+9
|
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-0/+24
|
* Represent cItem::m_Lore as an AStringVector (#3882)peterbell102017-08-181-13/+4
| | | | | | | | * Replace cItem::m_Lore with AStringVector * Reword deprecation warning * Fix lua bindings
* Handle Teleport Confirmation Packet (#3884)Lane Kolbly2017-08-021-4/+22
| | | + Added code to drop incoming client position packets until the most recent teleport was confirmed.
* cParsedNBT: Improved error reporting (#3876)peterbell102017-07-301-1/+3
| | | | | | * cParsedNBT: Improved error reporting * Fix typos
* Tentative fix for player-limit race condition (#3862)Tiger Wang2017-07-281-10/+10
| | | | | | | | | | * Attempts to fix #2257 Derived from d233e9843148313c71fbaba96ccff660e47b07b1 * Changed player count type to int * Clarified certain actions
* Handle middle mouse drag (#3847)peterbell102017-07-131-0/+3
|
* Fixes double right click on entities till off-hand actions gets implemented (#3821)Pablo Beltrán2017-07-031-2/+8
|
* Added WriteBlockEntity to 1.10 and 1.11 and fixed mob spawnerLukas Pioch2017-06-091-1/+3
|
* Exported boatLukas Pioch2017-05-241-1/+1
| | | | | | | - NBT: Added saving / loading of material - Added the material in the item handler of the boat - Drop the correct boat if destroyed - APIDoc: Added desc and functions
* Spawn eggs works againLukas Pioch2017-05-221-3/+5
|
* Use FastWriter instead of StyledWritermathiascode2017-05-161-4/+4
|
* VarInt metadata written correctly for boats (#3709)peterbell102017-05-151-3/+3
| | | | * Varint metadata written correctly for boats
* Corrected particles (#3577)mathiascode2017-02-261-13/+9
| | | Fixes wrong IDs causing particles to become unknown to the server.
* Add 1.11.1/1.11.2 protocol (#3575)mathiascode2017-02-211-3/+3
|
* Added some blocks and items (#3503)mathiascode2017-02-141-0/+10
|
* Fixed ClientHandle:GetProtocolVersion returning wrong number.Mattes D2017-01-281-2/+2
|
* Track skin part and main hand preferences (#3498)Pokechu222017-01-031-3/+13
|
* Initial support for the 1.11 protocol.Mattes D2016-12-161-0/+4406