summaryrefslogtreecommitdiffstats
path: root/src/UI (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Pickups: improve coalescing implementationPickupsTiger Wang2022-07-191-5/+2
| | | | | + Add ability to coalesce before spawning in to world. * Adapt coalescing for pickup entities already in the world to be more like Vanilla.
* Fixed Compiler Warningsx12xx12x2022-01-144-13/+13
|
* Simplify diff and remove excessive logging.Kingsley Collie2022-01-131-92/+87
|
* Refactor into switch statementKingsley Collie2022-01-131-90/+91
|
* Account for shift clicking or removing fuel from furnance.KingCol132022-01-131-1/+5
|
* Reject non-fuels being placed in the furnace fuel slot.KingCol132022-01-131-0/+11
|
* ItemHandler initialisation is a constant expression (#5344)x12xx12x2021-12-022-14/+11
| | | | | * Transition to non-pointer item handler * That is my destructor - I decide when I leave this world * I declare your destruction private and you final
* Migrate off CircleCI to Jenkins (#5230)Alexander Harkness2021-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * Add Jenkinsfile * cd src * Escape wildcards * Refactor stages * Remove CircleCI junk * Make clang-tidy do something * updated regex to include only the files in the base src directory * fixed errors displayed by new clang tidy version * adjust clang core count to actual count * Update README with new Jenkins build Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
* Add player statistics to API (#5193)nshah252021-05-031-13/+13
| | | | | | * Fixed issue #5166 Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Some emplace_back replacements (#5149)12xx122021-03-071-1/+1
| | | * replace push_back with emplace_back when a new object was created in the function call
* MultiVersionProtocol: fix two crashesTiger Wang2021-01-191-1/+0
| | | | | | | | | | | | First one: add missing exception handler in ProcessProtocolIn Second: remove faulty logic dealing with incomplete packets. `a_Data = a_Data.substr(m_Buffer.GetUsedSpace() - m_Buffer.GetReadableSpace());` was incorrect; it attempted to apply a length derived from m_Buffer to an unrelated a_Data. Its purpose was to give cProtocol the data the client sent, minus initial handshake bytes. However, we can use the knowledge that during initial handshake, there is no encryption and every byte can be written unchanged into m_Buffer, to just call cProtocol with a data length of zero. This will cause it to parse from m_Buffer - wherein we have already written everything the client sent - with no a_Data manipulation needed. Additionally, removed UnsupportedButPingableProtocolException (use of exception as control flow) and encode this state as m_Protocol == nullptr, id est "no protocol for this unsupported version", which is then handled by cMultiVersionProtocol itself.
* Fixed horse UI desync when taking saddle out (#5108)wereii2021-01-161-0/+3
| | | due to overlooked fallthrough
* Fix potential destruction crashes (#5095)Tiger Wang2021-01-021-1/+0
| | | | | | | | | | * Fix potential destruction crashes * Fix destructors accessing destroyted objects * Fix cPlayer not destroying windows (Destroyed never called) * Tentatively fixes #4608, fixes #3236, fixes #3262 - Remove cEntity::Destroyed() and replace with cEntity::OnRemoveFromWorld() * Add missing call to OnRemoveFromWorld
* Comment and code style fixTiger Wang2020-12-211-8/+11
| | | | | + Add static keyword - Don't capture everything in lambda
* Warnings improvementsTiger Wang2020-12-181-7/+7
| | | | | | | | | * Turn off global-constructors warning. These are needed to implement cRoot signal handler functionality * Add Clang flags based on version lookup instead of a compile test. The CMake config process is single threaded and slow enough already * Reduced GetStackValue verbosity + Clarify EnchantmentLevel, StayCount, AlwaysTicked, ViewDistance signedness + Give SettingsRepositoryInterface a move constructor to simplify main.cpp code - Remove do {} while (false) construction in redstone handler
* Anvil fixes (#4976)KingCol132020-10-101-47/+61
| | | | | | | | | | | | | * Rewrite to use wiki target/sacrifice terminology. * Fix negative damages. * Prevent repairing if output matches target. * Make target and sacrifice const. * Pre-PR tidy-up * Keep m_MaximumCost updated.
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-9/+9
| | | | | | | | | | | | | | | * Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Remove SetProperty(...cPlayer)Tiger Wang2020-10-036-133/+89
| | | | Enchantment table, anvil windows are already opened one per-player.
* Enchanting table shows detail on hover. Enchanting is deterministic. (#4937)KingCol132020-10-014-37/+93
| | | | | * Use lapis for enchanting, subtract correct number of levels, ClientHandle now selects from pregenerated list. Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Added end portal and enchanting table block entities12xx122020-09-202-3/+3
|
* Add Statistics and Achievements for newer Network standards12xx122020-08-191-13/+13
|
* Added HandleCraftItem call to ShiftClickedResult to make sure achievements are awarded (#4791)12xx122020-08-011-0/+3
|
* Introduce recipe book functionality (#4493)Tobias Wilken2020-07-146-17/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce recipe book functionality The recipe book helps especially new players. Missing it gives the impression that cuberite is not as advanced as it is. The handling of the recipe book uses the following functions: - Unlock Recipes (https://wiki.vg/index.php?title=Protocol&oldid=14204#Unlock_Recipes) to make recipes available and show the notification for new recipes. Initialization is done on player login for known ones, the update is done when new items are discovered. - Craft Recipe Request (https://wiki.vg/index.php?title=Protocol&oldid=14204#Craft_Recipe_Request) when the user selects a recipe from the recipe book to fill the slots. Known recipes are initialized on player login via `Unlock Recipes` with `Action` 0. As soon as a new recipe is discovered this is added via `Unlock Recipes` with `Action` 1. To be able to know and recognize new recipes the player class is extended with `KnownItems` and `KnownRecipes`. As soon as a player touches an item this is compared to the list of `KnownItems`, if the item is unknown the recipes are checked for this item and the other ingredients are checked with the list of `KnownItems`. If a full match is discovered the recipe is unlocked with the client and stored in the `KnownRecipes`. To unlock recipes the recipe ID is sent to the client. A mapping file (for protocol 1.12.2) translated the minecraft recipe names to ids. The crafting.txt is extended with and minecraft recipe names is possible. Limitations: Only a single recipe is added to the crafting area. Multiple clicks or shift click does not increase the number of builds. Co-authored-by: peterbell10 <peterbell10@live.co.uk> * Address first issues mentioned by @peterbell10 - Some linting - Extract loading of recipe specific protocol mapping into a function - Build `RecipeNameMap` only once - Use `std::optional` - Extract `LoadRecipe` from `Window` * Start to implement new suggestions * Update with suggestions from @peterbell10 * Some minor cleanup * Update protocol packet IDs * Remove unused include * Include header in cmake * Change a vector to integer counter * Change dromedaryCase method names to PascalCase * Address suggestions from @madmaxoft * Read Protocol subdirectories to load recipe books To load all recipebooks iterate over the `Protocol` subdirectories to find mapping files. Co-authored-by: peterbell10 <peterbell10@live.co.uk>
* cWindow: Convert XYZ to Vector3 (#4764)MaxwellScroggs2020-07-048-40/+21
|
* Upgrade to C++17 [CMake] (#4717)Tiger Wang2020-05-161-9/+5
| | | * Make our CMake slightly less insane
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
* Update submodules (#4727)peterbell102020-05-091-1/+1
| | | | | | | | | | | | | Closes #4708 This updates jsoncpp, mbedtls, TCLAP and SQLiteCpp to their latest stable release. A few additional changes were needed: * jsoncpp deprecated Reader, FastWriter and StyledWriter which I've replaced with some helper functions in JsonUtils.cpp * SQLiteCpp changed how it builds with external sqlite libraries, now expecting them to be installed. The simplest path was to remove sqlite from cuberite's submodule and just use SQLiteCpp's internal version.
* Improve entity position updates (#4701)Tiger Wang2020-05-041-4/+1
| | | | | | | | | * Make puking pickups fly nicer * Improve entity position updates * Move determination of whether a delta is too big for a packet into the protocol handlers + Less jittery movement + Generalise CollectEntity to take any entity
* Using Super.Mattes D2020-04-1625-104/+126
|
* Inventory changes (#4561)Mat2020-03-281-5/+2
| | | Co-Authored-By: peterbell10 <peterbell10@live.co.uk>
* Toss all items from enchantment table (#4569)Mat2020-03-281-2/+2
|
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-2912-18/+19
|
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-293-7/+4
| | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
* Handle the lapis slot separately (#4286)Nate2018-08-171-0/+36
| | | | | This is my attempt to fix #4112. The root cause of the issue was that the lapis slot was treated exactly the same as the enchanting slot, so it on the server side it would only ever slot one item. My fix is to check if its the second slot in the window, then check if it's lapis (it would slot whatever). If it is lapis I call the base click handler.
* Experience orb (#4259)changyong guo2018-08-021-1/+1
| | | | | | | * Replace cWorld::FindClosesPlayer with cWorld::DoWithClosestPlayer * Implement experience reward splitting into the orb sizes used in vanilla * Modified speed calculation in cExpOrb::Tick to make the orbs fly towards the player Fixes #4216
* cWorld: Manually bind deprecated broadcast functions (#4265)peterbell102018-07-271-3/+4
| | | Ref: https://github.com/cuberite/cuberite/pull/4264#discussion_r204769193
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-262-2/+6
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-3/+3
| | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
* Smelting Gives Experience (#4094)Alex Sweet2018-04-111-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Smelting Exp Smelting now gives experience * Furnace.txt update Exp rewards are entered in furnace.txt, Reward calculation is now done is the furnaceentity class * furnace.txt update Changed alignment tabs to spaces Included documentation of exp in recipe * Updated StringToFloat changed strtod to strtof * Explicit Float to Int * Reworked Smelting Rewards * No C casts -Adds new function to the api -Sets reward counter to 0 in furnace constructor * Style and exp lock removed -Fixed style mistakes accoring to PR notes -XP isn't locked to a single player anymore * No Smelter API -Removed SetLastSmelter and GetLastSmelter -Fixed comments -Fixed log reward amounts
* A player's inventory is always opened by its owner. (#4176)peterbell102018-01-281-4/+6
| | | | | Fixes #4093 Window updates are only broadcast to players in the m_OpenedBy list. Normally players are added after sending a window open packet but no packet is sent for a player's inventory. This meant broadcasts were never sent for the inventory window.
* cWindow: Fix slot area priority when double click stacking. (#4086)peterbell102018-01-152-34/+6
| | | Fixes #4084
* Add the fmt library (#4065)peterbell102018-01-032-1/+2
| | | | | | | * 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.
* Implement horse inventory (#4053)peterbell102017-10-215-0/+241
| | | | | | | | | | * Implement horse inventory * Fix sign conversions * Add API doc for ItemCategory::IsHorseArmor * Improve HandleOpenHorseInventory comment and style fixes.
* Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly2017-09-195-27/+17
| | | | | | | | | | | | | | | | | | * Made BroadcastSoundEffect take vector parameters. * Added docs for new vectored methods * Removed old code * Fixed lua warnings * Made old BroadcastSoundEffect not an override. * m_Block to m_BlockPos, used Vector3d constructor where prettier. * a_Block to a_BlockPos * Changed thunderbolt a_Block to a_BlockPos
* Fix switch warnings (#4013)peterbell102017-09-142-7/+5
| | | | | | | | | | | | | | | * 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
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-112-9/+11
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-022-13/+11
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-012-11/+13
|
* Add cLuaWindow OnClicked Callback (#3901)Lane Kolbly2017-08-171-1/+1
|
* Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-4/+4
|
* Replaced includes with forward declarationsLukas Pioch2017-08-131-1/+2
|
* Removed double includes (#3885)Lukas Pioch2017-08-022-2/+0
|
* Added anvil enchantment handling. (#3857)Lane Kolbly2017-07-281-4/+5
| | | + Added anvil enchantment handling.
* Handle middle mouse drag (#3847)peterbell102017-07-132-10/+41
|
* FastRandom rewrite (#3754)peterbell102017-06-131-4/+3
|
* Off-hand/shield slot functional, save and load slot, bow + arrow functional (#3725)Pablo Beltrán2017-05-242-0/+18
| | | Fixes #3714.
* Clang 5.0 fixesLukas Pioch2017-05-214-7/+7
| | | | | - Added override keyword - Removed inherited member variables
* Corrected brewingstand and added support for fuelLukas Pioch2017-05-083-77/+80
|
* Updated sounds and effect IDs (#3422)mathiascode2017-02-153-7/+7
|
* Fixed bindings for cBlockArea:Read and Write. (#3568)Mattes D2017-02-052-3/+3
| | | The original bindings accepted nil as the World param, causing a crash.
* Removed ClientHandle.h dependencies from common headers.Mattes D2016-11-185-0/+5
|
* Spectators added (#2852)bibo382016-10-121-0/+8
|
* Fixed type-casting-related warnings.Mattes D2016-08-241-2/+2
|
* CMake: Remove needless minimum version specifications.Mattes D2016-07-181-2/+0
|
* Updated API documentation.Mattes D2016-07-181-2/+6
|
* Changed cLuaWindow callbacks to use cLuaState::cCallback.Mattes D2016-06-271-1/+1
|
* Revert "Lua callback"Mattes D2016-03-211-1/+1
|
* Changed cLuaWindow callbacks to use cLuaState::cCallback.Mattes D2016-03-171-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-057-123/+123
|
* Updated old forum linksMathias2016-01-311-1/+1
|
* Renamed leftover strings to Cuberite / Server, as needed.Mattes D2016-01-011-1/+1
| | | | Also upgraded the user setting file for MSVC to 2013.
* Reorganised the redstone simulatorTiger Wang2015-12-181-12/+4
| | | | | | -> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved
* Moved variables into scope, removed unused variables and fixed variablesLukas Pioch2015-12-171-2/+1
|
* Add enum for Sound and Particle EffectsDave Tucker2015-11-241-3/+4
| | | | | | Fixes #2603 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
* Implemented brewingLukas Pioch2015-11-036-0/+372
|
* Unified the doxy-comment format.Mattes D2015-07-313-66/+54
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-295-43/+42
|
* Fixed custom recipes result clientside bug.Mattes D2015-07-261-0/+8
| | | | Fixes #2345.
* Fix commentstycho2015-05-281-6/+9
|
* Merge branch 'master' into PreventNewWarningstycho2015-05-282-12/+10
|\ | | | | | | | | Conflicts: src/Inventory.cpp
| * Merge pull request #2061 from mc-server/fixesAlexander Harkness2015-05-272-12/+10
| |\ | | | | | | Fixes
| | * Fixes #2041Tiger Wang2015-05-241-3/+3
| | |
| | * Fixes #2003Tiger Wang2015-05-182-9/+7
| | |
* | | Made -Weverything an error.tycho2015-05-243-7/+18
| | |
* | | Merge branch 'master' into PreventNewWarningstycho2015-05-231-1/+1
|\| |
| * | Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.Lukas Pioch2015-05-231-1/+1
| |/
* / Make -Werror disabling file onlytycho2015-05-191-0/+5
|/ | | | Ad fix a load of warnings
* CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-091-1/+1
|
* More style checking.Mattes D2015-05-094-4/+4
| | | | Spaces around some operators are checked.
* Narrowed WindowID to use only 7 bits.Mattes D2015-04-212-3/+7
| | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1876
* Changed cEntity::m_UniqueID to UInt32.Mattes D2015-03-211-7/+10
|
* Moved window code into cpp filesHowaner2015-03-1021-516/+836
|
* Readded old commentHowaner2015-02-061-0/+2
|
* Readded old DistributeStackToAreas() comment.Howaner2015-01-251-2/+5
|
* C++11 and function rename.Howaner2014-12-1713-48/+51
|
* Implemented vanilla-like shift click.Howaner2014-12-1315-105/+380
| | | This fixes many visual bugs.
* Own classes for all windows.Howaner2014-12-1316-591/+633
|
* Merge remote-tracking branch 'origin/master' into c++11Tiger Wang2014-12-061-1/+1
|\ | | | | | | | | Conflicts: src/OSSupport/Thread.cpp
| * Fixed reported parentheses around comparisons.Mattes D2014-12-051-1/+1
| |
* | Merged branch 'master' into c++11.Mattes D2014-10-231-1/+1
|\|
| * En masse NULL -> nullptr replaceTiger Wang2014-10-234-44/+44
| |
* | Replace &*[0] accesses with .data()Tiger Wang2014-10-211-2/+2
| |
* | En masse NULL -> nullptr replaceTiger Wang2014-10-204-44/+44
|/
* Merge pull request #1502 from mc-server/furnacesTiger Wang2014-10-182-27/+11
|\ | | | | Improved furnaces
| * Improved furnacesTiger Wang2014-10-032-27/+11
| | | | | | | | | | | | | | | | * Fixed progress bar on 1.8 * Fixed bugs * Improved code * Fixes #1068 * Fixes #1070
* | Functions in cPluginManager get references instead of pointers.Mattes D2014-10-151-2/+2
|/
* SuggestionsTiger Wang2014-09-271-11/+57
|
* Merge remote-tracking branch 'origin/master' into chestcartsTiger Wang2014-09-272-1/+30
|\ | | | | | | | | Conflicts: src/Entities/Minecart.cpp
| * 1.8: Fixed inventory open packet.Howaner2014-09-112-1/+30
| |
* | e.t.c. -> etc.Tiger Wang2014-09-131-1/+1
| | | | | | etcetera, not egg tray conglomerate :P
* | Added newlinesTiger Wang2014-09-131-1/+5
| |
* | Implemented Chest MinecartsTiger Wang2014-09-135-68/+95
|/
* Added comments.Hownaer2014-08-281-1/+3
|
* Fixed crashes and use std::swap.Hownaer2014-08-281-6/+3
|
* Enchanting table improvements.Hownaer2014-08-284-134/+101
|
* Renamed functions and added beacon json saving.Howaner2014-07-311-2/+2
|
* Added beacon.Howaner2014-07-304-0/+276
|
* Merge branch 'master' into portalsTiger Wang2014-07-292-3/+16
|\ | | | | | | | | Conflicts: src/World.h
| * Change comment.Howaner2014-07-261-1/+1
| |
| * Merge branch 'master' into InventoryHowaner2014-07-263-9/+15
| |\
| * | Add armor items directly to the armor slots.Howaner2014-07-202-3/+3
| | |
| * | Moved comment.Howaner2014-07-181-1/+1
| | |
| * | Fixed the armor slot in creative mode. Also removed that armor get directly to the armor slot. It is extremely buggy and unnecessary.Howaner2014-07-181-0/+13
| | |
* | | Merge remote-tracking branch 'origin/master' into portalsTiger Wang2014-07-223-9/+15
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Entities/Player.cpp src/Root.cpp src/World.cpp
| * | Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-212-4/+4
| | |
| * | Subdirs: Only add_library if not using MSVCarchshift2014-07-191-1/+3
| | |
| * | UI/CMakeLists.txt: Replaced glob with list of filesarchshift2014-07-191-5/+9
| |/
* | Merge branch 'master' into portalsTiger Wang2014-07-185-97/+365
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Blocks/WorldInterface.h src/ClientHandle.cpp src/ClientHandle.h src/Entities/Player.cpp src/Entities/Player.h src/Generating/FinishGen.cpp src/Protocol/Protocol.h src/Protocol/Protocol125.cpp src/Protocol/Protocol125.h src/Protocol/Protocol16x.cpp src/Protocol/Protocol16x.h src/Protocol/Protocol17x.cpp src/Protocol/Protocol17x.h src/Protocol/ProtocolRecognizer.cpp src/Protocol/ProtocolRecognizer.h src/Root.h src/World.cpp
| * Fixed tabs used for alignment.madmaxoft2014-07-171-2/+2
| |
| * More trailing whitespace fixes.madmaxoft2014-07-171-1/+1
| |
| * Basic style fixes.madmaxoft2014-07-174-8/+8
| |
| * Normalized comments.madmaxoft2014-07-172-25/+25
| | | | | | | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
| * Changed BroadcastSoundEffect function to take floating pos.Howaner2014-07-131-5/+5
| |
| * Merge pull request #1154 from mc-server/trappedchestsTiger Wang2014-07-132-9/+63
| |\ | | | | | | Implemented trapped chests & others
| | * Suggestions and bug fixTiger Wang2014-07-121-1/+1
| | | | | | | | | | | | | | | | | | * Fixed hoppers pushing/pulling to/from (trapped)chests that do not form a double-chest with the chest type directly connected to said hopper; thank you, @madmaxoft
| | * Implemented trapped chests & othersTiger Wang2014-07-072-9/+63
| | | | | | | | | | | | | | | | | | | | | + Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
| * | Merge pull request #1157 from Howaner/WindowMattes D2014-07-093-41/+237
| |\ \ | | |/ | |/| Add more inventory actions.
| | * Removed unused include line.Howaner2014-07-091-1/+0
| | |
| | * Added inventory number click.Howaner2014-07-092-1/+43
| | |
| | * Added drop window action.Howaner2014-07-063-25/+113
| | |
| | * Add middle click.Howaner2014-07-052-21/+88
| | |
| * | Fixed crafting grid updating.Mattes D2014-07-062-2/+21
| |/ | | | | | | Fixes #1152.
| * Merge pull request #1138 from mc-server/enderchestMattes D2014-07-022-5/+4
| |\ | | | | | | Properly implemented enderchests
| | * Removed bad commentTiger Wang2014-06-291-1/+0
| | |
| | * Properly implemented enderchestsTiger Wang2014-06-292-4/+4
| | |
| * | Only fixes the server crash.Howaner2014-07-011-6/+0
| | |
| * | Fix server-crash with non-existing items.Howaner2014-07-011-1/+7
| |/
* | Merge branch 'master' into portalsTiger Wang2014-06-101-0/+1
|\| | | | | | | | | | | | | | | | | Conflicts: src/ClientHandle.cpp src/Entities/Player.cpp src/Entities/Player.h src/Protocol/Protocol125.cpp src/Protocol/Protocol17x.cpp
| * Merge pull request #1011 from SphinxC0re/SomeWarningFixesMattes D2014-06-041-0/+1
| |\ | | | | | | Fixed some warnings
| | * Changed the m_slotarea positionJulian Laubstein2014-05-191-2/+2
| | |
| | * Fixed some warnings in Server.cpp, and in UI/Julian Laubstein2014-05-192-2/+4
| | |
* | | SuggestionsTiger Wang2014-06-041-1/+1
|/ /
* | derpworktycho2014-06-041-1/+1
| |
* | Make sure m_StackSizeToBeUsedInRepair Always has a valid valueworktycho2014-06-041-1/+3
| |
* | Players can't set items in the result slot, when they shift a item.Howaner2014-06-012-0/+39
| |
* | Add HandleSmeltItem() call for achievements.Howaner2014-06-011-7/+11
| |
* | Missing return;Howaner2014-06-011-0/+1
| |
* | Set DraggingItem to Slot directly.Howaner2014-05-311-1/+1
| |
* | Fix DBL bug.Howaner2014-05-311-5/+4
| |
* | Change "Slot.IsEmpty()" to "Slot.m_ItemCount <= 0"Howaner2014-05-311-1/+1
| |
* | Fix the furnace result slot.Howaner2014-05-301-2/+90
| |
* | Merge pull request #998 from mc-server/StatManagerMattes D2014-05-182-1/+47
|\ \ | |/ |/| Statistic Manager
| * cEntity::Killed(cEntity *) Handler; Achievement triggers; cPlayer::AwardAchievement()andrew2014-05-122-1/+47
| |
* | Fixed anvil exp removingtonibm192014-05-161-1/+1
|/
* Fixed MSVC 64-bit build warnings.Mattes D2014-05-092-2/+2
|
* Change m_RepairCost to int.Howaner2014-05-071-9/+3
|
* Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner2014-05-071-24/+36
|
* Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count()Howaner2014-05-061-6/+5
|
* Fix SetRepairedItemName() in SlotArea.cppHowaner2014-05-051-1/+1
|
* Add comments to CanTakeResultItem()Howaner2014-05-051-5/+5
|
* Add doxycomments to cSlotAreaAnvil functions.Howaner2014-05-051-0/+2
|
* Add anvil shift click.Howaner2014-05-052-5/+86
|
* This isn't a enchantment table :DHowaner2014-05-051-1/+1
|
* Add clicks, exp subtraction, item check, ...Howaner2014-05-054-16/+204
|
* Add MC|ItemName plugin message.Howaner2014-05-054-8/+16
|
* Add anvil window and slot area.Howaner2014-05-054-0/+229
|
* Cmake generated projects for IDEs include headers in project files.archshift2014-04-251-0/+1
|
* Add armor to switch() in ItemHandler.cppHowaner2014-04-241-1/+1
|
* Fix armor in survival mode.Howaner2014-04-242-1/+80
|
* Merge pull request #909 from jfhumann/fixesMattes D2014-04-221-5/+6
|\ | | | | | | | | Bug fixes and optimizations. We need to visit the API functions and check that they return only those values expected. `cWorld::CreateProjectile()` seems affected, too, by the same issue of ToLua returning extra values. In the cleanest form, these functions will need moving to ManualBindings.cpp
| * Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-181-5/+6
| |
* | Fixed MSVC compilation.madmaxoft2014-04-201-1/+1
| |
* | Fixed Codedaniel09162014-04-192-8/+5
| |
* | Modified many thingsdaniel09162014-04-173-55/+54
| |
* | Fixed double enchanting itemsdaniel09162014-04-161-2/+2
| |
* | Added Book Enchantingdaniel09162014-04-151-1/+1
| |
* | Add more checks to cSlotAreaEnchantingHowaner2014-04-153-99/+212
| |
* | Added ItemPlaceCount in SlotAreadaniel09162014-04-142-0/+35
| | | | | | | | Thanks to Howaner for helping
* | Blocked enchanting a item twicedaniel09162014-04-142-8/+10
| |
* | Fixed Bookshelf Checkingdaniel09162014-04-141-8/+10
| | | | | | | | Code by LO1ZB
* | Bug fixesdaniel09162014-04-142-21/+19
| |
* | Fixed invisibility enchantmentsdaniel09162014-04-132-0/+4
| |
* | Some Fixesdaniel09162014-04-131-1/+1
| |
* | Fixed Bookshelves Checking (not completly)daniel09162014-04-121-7/+10
| |
* | Added complete Enchanting Systemdaniel09162014-04-123-20/+135
| | | | | | | | http://minecraft.gamepedia.com/Enchantment_mechanics
* | Merge remote-tracking branch 'upstream/master' into Enchantingdaniel09162014-04-074-8/+65
|\|
| * Fixed non-virtual destructors warnings.madmaxoft2014-03-281-0/+4
| |
| * Added additional macros to support the MSVC size_t format and changed all formats to use the macrosTycho2014-03-121-1/+1
| |
| * Fixed a load of format string errorsTycho2014-03-111-1/+1
| |
| * Fixed multiple gcc warnings about unused params.madmaxoft2014-02-282-3/+33
| |
| * Fixed indentation once and for all.Mike Hunsinger2014-01-241-15/+15
| |
| * Fixed indentation and doxygen comments... For real this time.Mike Hunsinger2014-01-241-12/+12
| |
| * Fixed spacing and doxycomments.Mike Hunsinger2014-01-241-12/+10
| |
| * Removed extra lineMike Hunsinger2014-01-231-2/+0
| |
| * Split TossItem into three Toss functions (Held, Equipped and Pickup)Mike Hunsinger2014-01-231-5/+32
| |
* | Added Enchantment-Slot-Level generatingdaniel09162014-04-071-9/+19
| |
* | Some updates for enchantingdaniel09162014-01-242-13/+13
| |
* | first changes for enchanting (not finished)daniel09162014-01-204-0/+141
|/ | | | | | | | - added enchanting table block handler and added it to the blockhandler - added enchanting window - drop item in the slot 0 when the player close the window - added enchanting packet (1.7 only) - some more...
* Removed internal cEntity::GetRot() usage.madmaxoft2014-01-171-1/+1
|
* Really did what xoft wantedTiger Wang2014-01-161-5/+8
|
* Removed obsoleted functionsTiger Wang2014-01-162-4/+4
|
* Possibly did what xoft wantedTiger Wang2014-01-161-10/+3
|
* Implemented custom names and loreTiger Wang2014-01-151-0/+7
| | | | | | + Added custom names and lore + Added saving and loading + Added writing and parsing of NBT
* More MSVC warning fixes.madmaxoft2014-01-071-2/+2
|
* added zlib and UITycho Bickerstaff2013-12-181-0/+11
|
* added default fallthrough clause to switch at line 178 of src/UI/Window.cppTycho Bickerstaff2013-12-081-0/+4
|
* Reordered Listed Initalisation order in src/UI/Window.cppTycho Bickerstaff2013-12-081-2/+2
| | | | | | | Reordered the Listed Initalisation order for CWindow to the executed initalisation order. The compiler initalises values in the order the fields are declared not the initalisations listed
* Removed unused variable ResultSlotTycho Bickerstaff2013-12-081-1/+0
|
* Fixed Warning Unhandeled enum values in switch as src/UI/SlotArea.cpp line 54worktycho2013-12-091-1/+4
|
* Added basic ender chestsTiger Wang2013-12-074-0/+106
| | | | Note that they just mirror chests now, so no per player inventory.
* Moved source to srcAlexander Harkness2013-11-245-0/+2521