summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_8.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite cClientHandle::HandleRightClick (#4089)9caihezi2018-01-081-2/+10
| | | | | | | | | | | | | * 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-5/+5
| | | | | | | * 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.
* Store Health as a float (#4073)Fabian2017-11-221-1/+1
| | | | | | | | | | | | | | | | | | * Fix #4024 * Fix clang error * Add comment * Fix behaviour * Save Health as float * Changed m_Health to float * Remove redundant static_cast * Fix casts
* 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-16/+18
| | | | | | | | | | | | | | | * 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
* 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-0/+1
|
* Don't assert when placing beds in older versions (#3916)mathiascode2017-08-251-0/+1
|
* Add cUUID class (#3871)peterbell102017-08-251-5/+10
|
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-0/+28
|
* Represent cItem::m_Lore as an AStringVector (#3882)peterbell102017-08-181-13/+3
| | | | | | | | * Replace cItem::m_Lore with AStringVector * Reword deprecation warning * Fix lua bindings
* 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-3/+3
| | | | | | | | | | * 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
|
* Use FastWriter instead of StyledWritermathiascode2017-05-161-1/+1
|
* Corrected particles (#3577)mathiascode2017-02-261-13/+9
| | | Fixes wrong IDs causing particles to become unknown to the server.
* 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/+17
|
* Initial support for the 1.11 protocol.Mattes D2016-12-161-0/+3623