summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename files to match codeTiger Wang2021-05-044-9/+9
|
* Add player statistics to API (#5193)nshah252021-05-034-329/+325
| | | | | | * Fixed issue #5166 Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Chest, weather, crash, and miscellaneous fixes (#5215)Tiger Wang2021-04-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Alpha-sort cChestEntity * Chests: use SendUpdateBlockEntity * Pathfinder: fix out of range Y * 1.13: correct weather packet ID * Chests: fix neighbour scanner + Add OnAddToWorld and overload to scan neighbours there, instead of in the constructor/OnUse. This fixes hoppers accessing newly loaded double chests and seeing a null m_Neighbour, thus thinking its a single chest. * Fix typo in cross coords computation. * Simplify hopper logic. * Block entities: ASSERT that type is correct If you match the block type first before calling DoWithBlockEntity, the corresponding block entity must either be empty or correspond to the block type. * Chunk: fix some forgotten PendingSendBE cleanup + Add cleanup in SetAllData, WriteBlockArea - Remove RemoveBlockEntity (used once), HasBlockEntity (not used) * Replace MakeIndex with MakeIndexNoCheck * Remove extraneous MarkDirty in hopper & chests
* Fix incorrect name in deserialiser for zombie pigmenTiger Wang2021-04-121-2/+3
|
* Fix sending incorrect date values on world changeTiger Wang2021-04-122-3/+3
| | | | Yak shave: make more things use cTickTime. Fix a couple of incorrect modulo-on-millisecond-value by making them use WorldTickAge.
* Fix Windows XP to 7 compatibility (#5167)Tiger Wang2021-03-281-1/+1
| | | | | * Partially reverts 01a4e696b * Unify thread names - Remove use of GetThreadId API
* Adding basic Banner functionality (#4806)12xx122021-03-155-6/+105
| | | | | | + Added item and block for banners Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Mitigate MSVC crash (#5146)Tiger Wang2021-03-061-1/+1
| | | Reference: http://ci.appveyor.com/project/Cuberite/cuberite/builds/38087390/job/p857ibg3x87naw36/messages
* Prepare ChunkData for BlockState storage (#5105)Tiger Wang2021-03-055-141/+171
| | | | | | | | | | | | | | | | | | | | | | | * Rename ChunkData Creatable test * Add missing Y-check in RedstoneWireHandler * Remove ChunkDef.h dependency in Scoreboard * Prepare ChunkData for BlockState storage + Split chunk block, meta, block & sky light storage + Load the height map from disk - Reduce duplicated code in ChunkData - Remove saving MCSBiomes, there aren't any - Remove the allocation pool, ref #4315, #3864 * fixed build * fixed test * fixed the debug compile Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
* Mark UNREACHABLE with intrinsicsTiger Wang2021-02-201-2/+0
|
* Fix debug macro situation (#5114)Tiger Wang2021-01-262-6/+6
| | | Use the standard NDEBUG.
* zlib -> libdeflate (#5085)Tiger Wang2021-01-1111-382/+201
| | | | | | + Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
* Warnings improvementsTiger Wang2020-12-181-14/+2
| | | | | | | | | * 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
* Adding new monster types to enum and saving/loading for easier future implementation (#4941)12xx122020-11-236-389/+1008
| | | | | | | | | | | * added new monster types to enum added string <-> enum conversion in namespace serializer added loading functions added to saving * renamed zombie pigman to zombified piglins in enum Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Fix flower and foliage generation (#4723)mBornand2020-11-141-0/+0
| | | | | | | | | | | | | | | | | | | * fix flower generation - remove wrong mushroom and flower generation + add "tiny" mushrooms in Mushrooms biomes + add "tiny" mushrooms in Mega Taiga and variants + add tulip generation for plains biomes * Turn numbers into constants - Remove duplication of grass generation - Remove fern in inappropriate biomes * added roofed forest flowers to ini file * fixed crash with biMesaPlateuM + Use empty() + Emplace directly + Avoid a string copy in BiomeName + Alias BiomeIndex to avoid multiple casts Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Ender Crytal Fix and report proper cmake file for luabindingscheck fail (#5017)12xx122020-11-061-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fixed network fixed explosion fixed ticking added network broadcast to Setter method added nullptr protection using macros in 1.10 Protocol_1_10.cpp revealed functions to LUA API small fixups, typos, less functions used fixed more doc readded info that saving is done only if the beam is displayed made the constructor transfer all needed members fixed wrong commit removed default parameters on SpawnEnderCrystal fixed wrong metadata moved call to destroy in the right place fixed some typos Fixed Ender Crystal * fixed documentation * fixed doc and added proper error message * Parameters, arrows * Parameters Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Add beam target, configurable base visibility to Ender Crystals (#5010)12xx122020-10-292-1/+42
| | | | | * Fixes #4990 Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Update comments and code for Load/SaveOneChunk so they match (#4992)Alexander Harkness2020-10-112-5/+5
| | | Fixes #4991
* Adding more customize options to mob spawners and improving the way to look for surrounding entities (#4955)12xx122020-10-102-3/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * added nearly any customize option * fixed unnecessary diff added comments * removed unnecessary const qualifier * fixed build * changed to ForEachEntityInBox * added docs * updated lua api description * checkstyle * added changes suggested by @peterbell10 And now the player may break the server by setting ridiculous ranges * updated docs changed cast to static cast * fixed clang * fixed clang on WSSAnvil.cpp Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-053-215/+228
| | | | | | | | | | | | | | | * 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>
* Fixing Mob spawner behaviour (#4930)12xx122020-09-272-20/+6
| | | | | | | | | | | | | | | | | | | * fixed mob spawner failure (whoopsie in the BlockEntity.GetChunkZ()) Style * fixed spawning behaviour * fixed saving entity type saving * checkstyle * removed debug log * removed short saving * Style Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Deleted BiomeDef.h and ChunkDef.h from Globals.h (#4885)KingCol132020-09-252-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Removed BiomeDef.h * Removed ChunkDef.h from Globals.h * Added to CONTRIBUTORS. * Re-added empty last line to Globals.h * Included stddef and StringUtils in BiomeDef.h * Fixed build tools compiling. It compiles, but at what cost? * Added include to src/Generating/Trees.h * Include added in ChunkGeneratorThread.h * Moved rearranged includes in LineBlockTracer.cpp * Re-arrange headers in ChunkInterface.cpp * Included ChunkDef.h in Path.h * Included ChunkDef.h in NBTChunkSerializer.h * Rearranged included and added required includes to headers. * Removed unnecessary included in StringUtils.h.
* Added end portal and enchanting table block entities12xx122020-09-203-54/+128
|
* Use tracing for explosions (#4845)Tiger Wang2020-09-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | * TNT: Implement tracing algorithm + Add intensity tracing * Fix iterating over all players to SendExplosion, even those not in range * Implemented TNT entity interaction * Fixed misaligned destruction tracing * Finalise TNT algorithm - Remove BlockArea and just use chunks Using SetBlock makes it so that we can update everything properly, and does appear to be faster. * BlockInfo learns about explosion attentuation * Rename Explodinator parameters * TNT: pull block destruction into common function Co-authored-by: Alexander Harkness <me@bearbin.net>
* Use pitch lookup in noteblock block entity (#4826)12xx122020-09-052-2/+2
| | | | | | | - Removed the calculation in the noteblock block entity I did the calculation in python if anyone is interested where the numbers are from Co-authored-by: 12xx12 <12xx12100@gmail.com>
* FastNBTWriter: AddString now uses string_viewTiger Wang2020-08-282-5/+5
| | | | * Avoids an allocation for all those string literals we pass in
* Save enderchest block entities to storageTiger Wang2020-08-283-4/+31
| | | | | + Add EnderChest saving, as Vanilla does - Remove CreateBlockEntities. Storage should save & load everything so looping over chunk data is not needed
* WorldStorage: Removed unused callback parametersTiger Wang2020-08-282-29/+13
|
* StatSerializer: use std::moveTiger Wang2020-08-212-7/+7
|
* Make StatSerializer a namespaceTiger Wang2020-08-212-91/+79
|
* Minor typo fixesTiger Wang2020-08-211-2/+2
| | | | * Also DeMorgan'd Emerald ore condition
* Add statistics upgrade mappingTiger Wang2020-08-192-13/+122
|
* Add Statistics and Achievements for newer Network standards12xx122020-08-195-97/+350
|
* Delete redundant std::move in World loaderTiger Wang2020-08-051-14/+14
|
* Replaced cpp14::make_unique<> with std::make_unique<>.Mattes D2020-08-011-71/+71
|
* 1.14 connection supportTiger Wang2020-07-262-2/+2
|
* Remove Schematic Chunk height limitationKrystilizeNevaDies2020-07-061-1/+1
|
* Upgrade to C++17 [CMake] (#4717)Tiger Wang2020-05-161-8/+2
| | | * Make our CMake slightly less insane
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Cleanup unneeded globals (#4736)peterbell102020-05-102-4/+4
|
* Update submodules (#4727)peterbell102020-05-093-7/+6
| | | | | | | | | | | | | 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.
* Remove old Android leftovers (#4722)Mat2020-05-074-16/+16
|
* Fix incorrect formatter invocationTiger Wang2020-05-041-2/+2
|
* NBT: Dynamic list-max-count protection. (#4697)Mattes D2020-04-303-11/+34
|
* Using Super.Mattes D2020-04-164-8/+8
|
* Oops, remember to save your files!Alexander Harkness2020-04-101-6/+0
|
* Add Zombie VillagersBond-0092020-04-103-11/+60
|
* Implement wither skeletons (#4563)Mat2020-04-043-41/+67
|
* Manage block entity lifetime with unique_ptr (#4080)peterbell102020-04-032-53/+51
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-035-11/+20
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-292-120/+121
|
* NBTChunkSerializer: Cleaned up interface.Mattes D2019-09-243-950/+889
| | | | | | Removed dependency on cChunkDataCallback. Moved all the serializing code into a worker class. Changed the serialization into a single-call action.
* Separated chunk generator from world / plugin interfaces.Mattes D2019-09-061-2/+2
| | | | The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
* Fix building with clang 8.0 (#4346)Bond-0092019-08-111-4/+6
|
* Add a formatting function for Vector3 (#4282)peterbell102018-09-241-7/+7
| | | | | | | | | | * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-296-9/+6
| | | | | | | 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.
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-263-3/+9
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* cIsThread: Reset m_ShouldTerminate after the thread has stopped (#4258)peterbell102018-07-221-1/+1
| | | | | This allows threads to be restarted after stopping. Fixes #4257
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-49/+49
| | | | | | | * 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.
* Deal with covered switches consistently (#4161)peterbell102018-02-052-50/+41
| | | | | | | * Fixes a number of "<function>: not all control paths return a value" warnings on MSVC. * Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults. * Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
* Add the fmt library (#4065)peterbell102018-01-035-13/+12
| | | | | | | * 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-222-3/+22
| | | | | | | | | | | | | | | | | | * Fix #4024 * Fix clang error * Add comment * Fix behaviour * Save Health as float * Changed m_Health to float * Remove redundant static_cast * Fix casts
* cWorld Threads: Seperate initialization and thread start.peterbell102017-10-212-5/+4
| | | | Prevents nullptr dereferences before Start has been called.
* Removed UTF-8 BOM (#4033)Lukas Pioch2017-09-192-2/+2
|
* Fix switch warnings (#4013)peterbell102017-09-143-52/+54
| | | | | | | | | | | | | | | * 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
* cBlockArea: use unique_ptrpeterbell102017-09-111-4/+4
|
* Made world data paths adjustable, and added API to temporarily disable saving chunks to disk. (#3912)Lane Kolbly2017-09-071-3/+3
|
* Switched player statistic store to save with UUID filenames. (#4002)Lane Kolbly2017-09-072-4/+10
|
* Changed some int parameters to vector parameters (#3937)Bond-0092017-09-071-2/+2
|
* Implement anvil chunk sparsingpeterbell102017-08-263-26/+25
|
* Add cUUID class (#3871)peterbell102017-08-253-26/+25
|
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-214-2/+119
|
* Represent cItem::m_Lore as an AStringVector (#3882)peterbell102017-08-182-5/+22
| | | | | | | | * Replace cItem::m_Lore with AStringVector * Reword deprecation warning * Fix lua bindings
* Merge pull request #3489 from cuberite/EntityOwnershipTiger Wang2017-08-181-53/+53
|\ | | | | * Changed entity ownership model to use smart pointers
| * Changed entity ownership model to use smart pointersTiger Wang2017-08-071-53/+53
| |
* | Replaced includes with forward declarationsLukas Pioch2017-08-131-2/+1
|/
* Removed unneeded includes (#3902)Lukas Pioch2017-08-061-1/+0
|
* Remove double includes part 2 (#3890)peterbell102017-08-033-11/+0
|
* Removed unused forward declarations (#3888)Lukas Pioch2017-08-032-6/+0
|
* Fix BSD buildpeterbell102017-08-021-0/+1
|
* Removed double includes (#3885)Lukas Pioch2017-08-021-2/+0
|
* cParsedNBT: Improved error reporting (#3876)peterbell102017-07-302-55/+206
| | | | | | * cParsedNBT: Improved error reporting * Fix typos
* Remove smart pointer macrospeterbell102017-07-211-1/+1
|
* Added basic ocelot behavior (#3829)Bond-0092017-07-123-13/+51
|
* Added bed entity (#3823)Lukas Pioch2017-07-074-0/+45
| | | | | | | | | | * Added bed entity * Export cBedEntity to lua * Set color of bed through item damage value * Added bed entity to APIDoc * NBT: Added loading and saving * Crafting recipes for the colored beds
* Load entities from old and new namesLukas Pioch2017-06-232-224/+150
|
* Anvil storage: load block entities from both old and new name-styles. (#3784)Mattes D2017-06-212-80/+129
| | | | * WSSAnvil: Load the sign text from JSON, too.
* BlockEntities: Support cloning self.Mattes D2017-06-162-78/+81
|
* Exported boatLukas Pioch2017-05-242-1/+8
| | | | | | | - 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
* Store cChunk::m_BlockEntities in a map (#3717)peterbell102017-05-222-4/+7
| | | | | | * Store block entities in a map from block index * Cleanup ForEachBlockEntity * Cleanup DoWithBlockEntityAt
* Clang 5.0 fixesLukas Pioch2017-05-212-2/+2
| | | | | - Added override keyword - Removed inherited member variables
* Corrected brewingstand and added support for fuelLukas Pioch2017-05-082-2/+11
|
* NBT: Corrected firework loadingLukas Pioch2017-03-221-2/+2
|
* Fixed minecart destruction using deallocated memory.Mattes D2016-12-151-0/+2
|
* Fixed TrappedChest saving. (#3423)Mattes D2016-11-072-5/+16
| | | Vanilla uses "Chest" in NBT for trapped chests.
* Use cChunkDef::Height for Y coord comparison where applicable.Moritz Borcherding2016-09-272-2/+2
|
* Fixed type-casting-related warnings.Mattes D2016-08-244-18/+21
|
* CMake: Remove needless minimum version specifications.Mattes D2016-07-181-2/+0
|
* SelfTests: Moved SchematicFileSerializer test into a separate project.Mattes D2016-06-181-36/+0
|
* Bulk clearing of whitespaceLogicParrot2016-02-0514-289/+289
|
* MCServer to CuberiteMathias2016-01-291-1/+1
|
* Changed the format of the MobHead data to allow MobHeads working on MInecraft 1.8bibo382016-01-112-4/+54
| | | | | | The NBT format now carries the texture data and transmit it to the client. See: http://minecraft.gamepedia.com/Head#Block_entity Related to #2674
* Renamed leftover strings to Cuberite / Server, as needed.Mattes D2016-01-011-1/+1
| | | | Also upgraded the user setting file for MSVC to 2013.
* Fix off by two error in ReadStringworktycho2015-12-181-1/+1
|
* Check for invalid tags when reading a compound tagtycho2015-12-181-2/+6
|
* Fixed String Parsing crash bugtycho2015-12-181-5/+1
| | | | Check string length against actual remaining data, not an abitary constant
* Test for correct coordinates when fishingGargaj2015-12-101-0/+1
| | | | Fun fact: this was able to actually deadlock the server depending on where you were standing :)
* changed mob age from char to intJulian Laubstein2015-11-162-28/+82
|
* Implemented brewingLukas Pioch2015-11-034-0/+71
|
* Update Loops required for JsonCPPLukas Pioch2015-10-261-2/+2
|
* Fixed a race condition between chunk loader and generator.Mattes D2015-10-042-32/+10
| | | | | | When using ChunkWorx to generate multiple chunks, the server would sometimes fail an assert because it would generate a chunk even when it was successfully loaded. This was caused by chunks queued in cWorld's m_SetChunkDataQueue and thus being marked as "InQueue" although they were already loaded. Solved by adding a new parameter to chunk coord callbacks specifying whether the operation succeeded or failed, and using that instead of the chunk presence flag to decide whether to generate or not.
* Namechange to CuberiteMattes D2015-09-252-2/+2
|
* Unified the doxy-comment format.Mattes D2015-07-316-21/+29
|
* Chunks that fail to load are offloaded to extra files.Mattes D2015-07-312-61/+107
| | | | Ref.: #1970
* Added reason parameter to load failures.Mattes D2015-07-311-13/+13
|
* Moved AString reading hack to cFile.Mattes D2015-07-311-16/+17
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-296-165/+161
|
* Added Rabbit Metadata values.bibo382015-07-172-44/+60
| | | | | Added the Rabbit Types and the MoreCarrotTicks value. Types are selected randomly on creation. Fixes #1867
* Merge pull request #2340 from hallucino/ageable-mobsNiLSPACE2015-07-152-12/+100
|\ | | | | Support ageable mobs
| * Support ageable mobsHallucino2015-07-142-12/+100
| | | | | | | | Move ageable stuff in Monster directly
* | Changing the shared_ptr/unique_ptr constructors to the make_shared/make_unique functionsbibo382015-07-121-64/+64
|/
* Fixes compilation failures on MacOSX 10.10Samuel Barney2015-07-092-36/+36
| | | | | * Replace old c-style casts with c++ casts * Added `-Wno-error=old-style-cast` to Protocol18x.cpp
* Externalized cPrefabPiecePool self-test.Mattes D2015-06-192-14/+16
|
* Fixed log files' timestampsTiger Wang2015-06-141-2/+2
| | | | | Also made Release mode log less technical information about the world storage threads.
* SelfTests are registered and executed after logging framework init.Mattes D2015-06-111-0/+6
| | | | Fixes #2228.
* Fixes multiple furnace issues, including from loading world storageHaoTNN2015-06-031-2/+3
|
* Fixed warnings in MSVC.Mattes D2015-06-021-0/+3
| | | | It complained about undefined return values or using uninitialized variables.
* Disable -Werror for warnings in tests.tycho2015-05-241-1/+1
|
* Made -Weverything an error.tycho2015-05-242-8/+12
|
* Make -Werror disabling file onlytycho2015-05-195-13/+21
| | | | Ad fix a load of warnings
* CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-098-14/+14
|
* More style checking.Mattes D2015-05-095-11/+11
| | | | Spaces around some operators are checked.
* cSetChunkData constructor explicitly requires std::move() instead ofWoazboat2015-04-271-1/+1
| | | | unsafely stealing data
* cPainting saving implementedTiger Wang2015-03-144-14/+47
| | | | Additionally, it now inherits from cHangingEntity.
* Fixed confusion over Item Frame directionsTiger Wang2015-03-132-55/+11
|
* Flower pots: In 1.8 items are saved with the name and not the id.Howaner2015-02-181-5/+12
|
* WSSAnvil: Fixed chunk data padding.Mattes D2015-02-081-2/+5
| | | | | When the chunk data fit perfectly into the old space, an extra 4 KiB of padding zeroes were written, overwriting the next chunk. Fixes #1730.
* Fixed negative return values in SchematicFileSerializer.Matyas Dolak2015-01-231-1/+3
| | | | Fixes CID 103165.
* Fixed warnings in FastNBT.cpp.Mattes D2015-01-201-39/+40
|
* WSSAnvil: Added clamping to entity coords.Mattes D2014-12-211-3/+3
| | | | Fixes CID 72854.
* FastNBT: Added a sanity check for number of list items.Mattes D2014-12-211-1/+8
| | | | Fixes CID 55812.
* Added RabbitsMasy982014-12-203-0/+27
|
* Added Entity GuardianMasy982014-12-183-0/+27
|
* Merge pull request #1657 from mc-server/PrepareChunkMattes D2014-12-112-17/+47
|\ | | | | Prepare chunk
| * Added a cWorld:PrepareChunk function.Mattes D2014-12-102-17/+47
| | | | | | | | | | It prepares the chunk - loads or generates it and lights it. The spawn prepare process uses this function.
* | Cosmetic touchups.Mattes D2014-12-111-4/+5
| | | | | | | | Removed trailing whitespace, added cast to remove warning, added file seeking in case of corrupt files.
* | Merge remote-tracking branch 'planetx/master'Mattes D2014-12-112-5/+33
|\ \ | |/ |/|
| * Check to see if header write out is requiredplanetx2014-12-081-17/+15
| |
| * Added timestamp to merged files WSSAnvilplanetx2014-12-081-1/+1
| |
| * Added timestamp to merged files WSSAnvilplanetx2014-12-081-62/+62
| |
| * Added timestamp to new files WSSAnvilplanetx2014-12-082-79/+149
| |
| * Added Timestamp info to chunks in WSSAnvilplanetx2014-12-072-87/+47
| |
* | Merge pull request #1555 from mc-server/c++11Mattes D2014-12-072-6/+6
|\ \ | | | | | | C++11
| * | Merge remote-tracking branch 'origin/master' into c++11Tiger Wang2014-12-061-10/+21
| |\| | | | | | | | | | | | | Conflicts: src/OSSupport/Thread.cpp
| * | Merged branch 'origin/master' into c++11.Mattes D2014-12-044-14/+89
| |\ \
| * \ \ Merge remote-tracking branch 'origin/master' into c++11Tiger Wang2014-11-232-2/+41
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Noise/Noise.h src/World.h
| * \ \ \ Merged branch 'master' into c++11.Mattes D2014-10-232-29/+40
| |\ \ \ \
| * | | | | Replace &*[0] accesses with .data()Tiger Wang2014-10-212-6/+6
| | | | | |
| * | | | | En masse NULL -> nullptr replaceTiger Wang2014-10-205-53/+53
| | | | | |
* | | | | | Replaced most auto_ptr with unique_ptr.Mattes D2014-12-061-61/+61
| |_|_|_|/ |/| | | |
* | | | | BasicStyle: Added missing braces to control statements.Mattes D2014-12-051-10/+21
| |_|_|/ |/| | |
* | | | MobSpawner fixes.Howaner2014-12-011-1/+1
| | | |
* | | | Many api fixes, add vanilla names to mob type -> string functions and mob spawner fixes.Howaner2014-11-291-1/+1
| | | |
* | | | Merge branch 'master' into MobSpawnerHowaner2014-11-291-2/+8
|\ \ \ \
| * | | | WSSAnvil: Fixed bad code in arrow loading.Mattes D2014-11-261-2/+8
| | |_|/ | |/| |
* | | | Finished mob spawner implementation.Howaner2014-11-183-2/+54
| | | |
* | | | Merge branch 'master' into MobSpawnerHowaner2014-11-188-1312/+135
|\| | | | | | | | | | | | | | | | | | | Conflicts: MCServer/Plugins/Core
| * | | Fixed 1.8 world item format reading.Howaner2014-10-291-2/+19
| | | |
| * | | Fixed compile (typos).Alexander Harkness2014-10-271-2/+2
| | | |
| * | | Another one.#Alexander Harkness2014-10-271-0/+22
| | |/ | |/|
| * | En masse NULL -> nullptr replaceTiger Wang2014-10-235-53/+53
| | |
| * | cItemFrame: Fixed a forgotten rename.Mattes D2014-10-211-1/+1
| | |
| * | Properly exported cItemFrame and cHangingEntity to Lua.Mattes D2014-10-212-28/+39
| |/
| * Removed WSSCompactTiger Wang2014-09-304-1227/+0
| |
| * Merge remote-tracking branch 'origin/master' into chestcartsTiger Wang2014-09-277-75/+175
| |\ | | | | | | | | | | | | Conflicts: src/Entities/Minecart.cpp
| * | Implemented Chest MinecartsTiger Wang2014-09-131-1/+1
| | |
* | | Merge branch 'master' into MobSpawnerHowaner2014-09-267-75/+175
|\ \ \ | | |/ | |/| | | | | | | | | | Conflicts: src/MobSpawner.h src/Mobs/Monster.h
| * | Merge pull request #1456 from Howaner/FixesMattes D2014-09-262-11/+11
| |\ \ | | | | | | | | Fixed player custom names in 1.8 and added type checking to map loading
| | * \ Merge branch 'master' into FixesHowaner2014-09-261-41/+41
| | |\ \
| | * | | Added type checking to map loading.Howaner2014-09-262-11/+11
| | | | |
| * | | | Fixed UNUSED macro so that it doesn't require type knowledge.madmaxoft2014-09-261-4/+4
| | |/ / | |/| | | | | | | | | | Introduced new UNUSED_VAR macro that is used when type knowledge is available (for local variables).
| * | | Merge pull request #1419 from mc-server/redstoneTestsworktycho2014-09-261-41/+41
| |\ \ \ | | |/ / | |/| | Added test mocking to IncrementalRedstoneSimulator
| | * | Merge branch 'master' into redstoneTestsTycho2014-09-254-11/+94
| | |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/Mobs/Monster.h
| | * | | Added first test to show the object can be createdTycho2014-09-171-41/+41
| | | |/ | | |/|
| * | | Anvil: Arrow Tile tags are a short in VanillaHowaner2014-09-252-7/+24
| | | |
| * | | Fixed hanging direction bugs.Howaner2014-09-251-1/+1
| | |/ | |/|
| * | derpHowaner2014-09-241-4/+4
| | |
| * | Don't create two entity lists.Howaner2014-09-242-7/+14
| | |
| * | Merge branch 'master' into WorldLoaderHowaner2014-09-242-4/+18
| |\ \
| | * | Anvil: Wolf collar color is a byte in Vanilla.madmaxoft2014-09-232-4/+18
| | | | | | | | | | | | | | | | | | | | Kept the old Int reading for compatibility reasons. Ref.: #1448
| * | | Merge branch 'master' into WorldLoaderHowaner2014-09-231-3/+3
| |\| |
| | * | Fixed a crash in WSSAnvil.madmaxoft2014-09-231-3/+3
| | | | | | | | | | | | | | | | Reported as #1448.
| * | | MCServer world compatiblity with vanilla and mcedit.Howaner2014-09-233-5/+52
| |/ /
| * | Merge branch 'master' into EntityCustomNameHowaner2014-09-236-100/+93
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/ClientHandle.cpp src/ClientHandle.h src/Protocol/Protocol.h src/Protocol/Protocol125.cpp src/Protocol/Protocol125.h src/Protocol/Protocol17x.cpp src/Protocol/Protocol17x.h src/Protocol/ProtocolRecognizer.cpp src/Protocol/ProtocolRecognizer.h src/World.cpp src/World.h
| | * | Fixed cParsedNBT::FindTagByPath().madmaxoft2014-09-201-1/+1
| | |/ | | | | | | | | | There was an off-by-one error in the name handling.
| * | Added CustomName saving.Howaner2014-09-022-0/+15
| | |
* | | Implemented mob spawner.Howaner2014-09-192-12/+29
| |/ |/|
* | Added Y-wise asserts to signs.Mattes D2014-09-061-0/+2
| | | | | | | | This should help detect #1313's second case.
* | Anvil: Fixed an off-by-one error in the loader.Mattes D2014-09-061-1/+1
| | | | | | | | Fixes #1307.
* | Fixed scoreboard loader type checks.Mattes D2014-09-061-10/+10
| | | | | | | | Fixes scoreboard loading error reported on the Dropper map in #1307.
* | WorldStorage no longer queues chunks into generator.Mattes D2014-09-052-49/+13
| |
* | Fixed loading empty chunks.Mattes D2014-09-051-1/+7
| | | | | | | | Reported on the Dropper map in #1307.
* | Rewritten chunk status to specify whether the chunk is in queue.Mattes D2014-09-051-5/+6
| | | | | | | | This fixes #1370.
* | Anvil: Fixed loading block entities with invalid Y coord.Mattes D2014-09-051-1/+1
| |
* | Anvil: Cleanly refuse to store data that is too large.madmaxoft2014-09-041-1/+7
| | | | | | | | Each chunk in MCA needs to be less than 1 MiB compressed; chunks that are larger will be refused with a log message.
* | Merge pull request #1351 from LO1ZB/remove-a_RelYMattes D2014-09-033-24/+22
|\ \ | | | | | | remove y-coord from chunks
| * | commitLO1ZB2014-09-031-1/+1
| | |
| * | hopefully the last commit for removing y-coord from chunks. :)LO1ZB2014-09-031-1/+1
| | |
| * | remove y-coord from chunksLO1ZB2014-08-283-24/+22
| | |
* | | Anvil: switched inflate to stream mode.madmaxoft2014-09-031-18/+6
| | | | | | | | | | | | This removes the fixed-size buffer which could have caused #1307 and #1366.
* | | Clang wants volatile...madmaxoft2014-09-021-1/+1
| | |
* | | Added strict error reporting to chunk loading.madmaxoft2014-09-021-1/+29
| |/ |/| | | | | This should help with #1307.
* | Merge branch 'master' into fixesmadmaxoft2014-08-302-214/+255
|\ \
| * | WSSAnvil: Removed leftover debugging code.madmaxoft2014-08-301-4/+0
| | |
| * | Rewritten block entity loading.Mattes D2014-08-292-212/+257
| |/ | | | | | | | | | | Block entities are now loaded based on the blocktype at the coords they specify; before loading, their type ("id" NBT tag) is checked. The chunk now expects that all block entities given to it via cChunk::SetAllData() have their valid blocktype; asserts if they don't. Fixes #1354.
* | Merge branch 'master' of https://github.com/mc-server/MCServerTiger Wang2014-08-291-0/+4
|\| | | | | | | | | Conflicts: src/Server.cpp
| * Added initializers for class members.Mattes D2014-08-211-0/+4
| | | | | | | | As reported by Coverity, these weren't initialized.
* | Removed unused codeTiger Wang2014-08-291-1/+0
|/
* CheckBasicStyle: multi-level indent change.madmaxoft2014-08-041-3/+5
|
* Refactored case-conversion functions.madmaxoft2014-08-041-1/+6
| | | | StrToLower() returns a modified copy of the string, InPlaceLowercase() modifies the string in-place.
* Anvil: Wolf owner not saved if not present.madmaxoft2014-08-041-2/+8
|
* Wolf uses UUID for owner.madmaxoft2014-08-033-14/+69
| | | | Fixes #1277.
* Fixed a ToLua warning - operator = not supported.madmaxoft2014-08-031-1/+1
|
* Renamed "select..." methods to "set..." and better IsValidEffect() function.Howaner2014-07-311-2/+2
|
* Renamed functions and added beacon json saving.Howaner2014-07-313-4/+24
|
* Added beacon load/save.Howaner2014-07-304-1/+71
|
* Slight cleanup after portalsTiger Wang2014-07-292-7/+1
|
* Merge branch 'master' into portalsTiger Wang2014-07-294-8/+10
|\ | | | | | | | | Conflicts: src/World.h
| * Moved potion static functions to EntityEffect to create splash potions through worldarchshift2014-07-261-1/+1
| |
| * Removed redundant semicolons and re-added warningarchshift2014-07-242-3/+3
| |
| * Added a queue for setting chunk data.madmaxoft2014-07-242-4/+6
| | | | | | | | Fixes #1196.
* | Merge remote-tracking branch 'origin/master' into portalsTiger Wang2014-07-227-67/+98
|\| | | | | | | | | | | | | | | 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-52/+58
| |
| * Style: Normalized spaces after if, for and while.madmaxoft2014-07-211-18/+18
| |
| * NBTChunkSerializer.cpp: Added break after serializing the splash potionarchshift2014-07-201-0/+1
| |
| * Code style: Fixed braces on separate lines.madmaxoft2014-07-191-2/+3
| |
| * Fixed style: spaces after commas.madmaxoft2014-07-193-5/+5
| |
| * Merge pull request #1214 from mc-server/anti-globMattes D2014-07-191-6/+29
| |\ | | | | | | CMake - Explicitly lists all source files
| | * Subdirs: Only add_library if not using MSVCarchshift2014-07-191-2/+4
| | |
| | * WorldStorage/CMakeLists.txt: Replaced glob with list of filesarchshift2014-07-191-5/+26
| | |
| * | Splash potions: Renamed PotionParticleType to PotionColor for clarityarchshift2014-07-192-2/+2
| |/
* | Merge branch 'master' into portalsTiger Wang2014-07-1814-131/+160
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-4/+3
| |
| * More trailing whitespace fixes.madmaxoft2014-07-171-1/+1
| |
| * Basic style fixes.madmaxoft2014-07-177-22/+22
| |
| * Normalized comments.madmaxoft2014-07-179-31/+31
| | | | | | | | | | 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.
| * Restructured cSplashPotionEntity code.madmaxoft2014-07-152-2/+2
| | | | | | | | | | The callback doesn't need declaration in the header. Renamed PotionName to PotionParticleType.
| * Merge branch 'master' into potionsmadmaxoft2014-07-155-25/+38
| |\
| | * Merge branch 'master' into SheepHowaner2014-07-137-71/+53
| | |\
| | | * Merge pull request #1154 from mc-server/trappedchestsTiger Wang2014-07-135-21/+27
| | | |\ | | | | | | | | | | Implemented trapped chests & others
| | | | * cNBTChunkSerializer: Fixed alignment.madmaxoft2014-07-121-14/+14
| | | | |
| | | | * Suggestions and bug fixTiger Wang2014-07-121-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | | | * SuggestionsTiger Wang2014-07-111-4/+4
| | | | |
| | | | * Made things consistentTiger Wang2014-07-081-2/+4
| | | | |
| | | | * Implemented trapped chests & othersTiger Wang2014-07-075-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
| | * | | Code fixes.Howaner2014-06-291-1/+1
| | | | |
| | * | | Save IsSheared from Sheep.Howaner2014-06-281-4/+11
| | | | |
| * | | | Added splash potions to NBT serialization and retrievalarchshift2014-07-124-0/+41
| | |/ / | |/| |
| * | | Merge pull request #1135 from mc-server/fixesTiger Wang2014-07-092-18/+21
| |\ \ \ | | |_|/ | |/| | Fixes to projectiles and the undead
| | * | Various fixedTiger Wang2014-07-041-7/+4
| | | | | | | | | | | | | | | | | | | | * Fixed potential invalid pointer dereferencing, fixes #1117 * Fixed ender pearls not being loaded properly
| | * | SuggestionsTiger Wang2014-07-022-11/+17
| | | |
| * | | Removed world-saving log messages.madmaxoft2014-07-042-33/+5
| | | | | | | | | | | | | | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1518
| * | | Removed unneeded codeTiger Wang2014-06-304-38/+1
| | | |
| * | | Properly implemented enderchestsTiger Wang2014-06-294-0/+38
| | |/ | |/|
* | | Merge branch 'master' of https://github.com/mc-server/MCServer into portalsTiger Wang2014-06-242-16/+8
|\| |
| * | Add entity health saving.Howaner2014-06-242-16/+8
| |/
* | Merge branch 'master' into portalsTiger Wang2014-06-213-6/+5
|\| | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Entities/Entity.h src/Entities/Player.h
| * MCA saver marks chunks as populated.madmaxoft2014-06-201-0/+3
| | | | | | | | Fixes #140.
| * Nullify deleted pointers.archshift2014-06-191-0/+1
| |
| * Merge branch 'master' into GlobalFixesHowaner2014-06-175-13/+11
| |\
| * | The motion is already set in AddBasicEntity()Howaner2014-06-171-5/+0
| | |
| * | Code improvementsHowaner2014-05-281-1/+0
| | |
| * | Add throw sound and fix arrow server crash.Howaner2014-05-281-0/+1
| | |
* | | Time and weather is saved, part of #1058Tiger Wang2014-06-041-3/+10
| | | | | | | | | | | | Also fixed unreliability in Health and LootPickup loading.
* | | Health of monsters is now savedTiger Wang2014-06-042-0/+2
| |/ |/|
* | Fixed mob loading, part of #1058Tiger Wang2014-06-041-1/+1
| |
* | Merge branch 'master' into chunksparsing/structsTycho2014-05-244-18/+228
|\|
| * Merge pull request #998 from mc-server/StatManagerMattes D2014-05-182-0/+201
| |\ | | | | | | Statistic Manager
| | * Fixesandrew2014-05-132-3/+8
| | |
| | * Fixed stat serializationandrew2014-05-111-5/+22
| | |
| | * Statistic Managerandrew2014-05-112-0/+179
| | |
| * | More switch warnings.archshift2014-05-121-0/+7
| | |
| * | Fixed a few more switch warnings.archshift2014-05-121-17/+20
| | |
| * | Fixed a warning and a complaint about a never-read variable.archshift2014-05-111-1/+0
| |/
* | Renamed cChunkBuffer to cChunkDataTycho2014-05-211-1/+1
| |
* | Fixed issue with types not being defined for an unused parameterTycho2014-05-182-2/+2
| |
* | Merge branch 'master' into chunksparsing/structsTycho2014-05-109-79/+142
|\| | | | | | | | | Conflicts: src/Chunk.h
| * Merge pull request #992 from mc-server/coverity_fixesMattes D2014-05-092-1/+9
| |\ | | | | | | Coverity fixes
| | * Range Check on schematic sizeworktycho2014-05-091-1/+1
| | | | | | | | | Fixes CID 55830
| | * Check the height and width values read.worktycho2014-05-091-0/+8
| | | | | | | | | Fixes CID 55831
| * | Fixed size_t in FireworksSerializer.Mattes D2014-05-091-2/+2
| | |
| * | Fixed message formatting.Mattes D2014-05-091-2/+2
| | |
| * | Even more size_t fixes.Mattes D2014-05-091-4/+4
| | |
| * | More size_t fixes.Mattes D2014-05-092-6/+6
| | |
| * | Build fixes after the last size_t batch.Mattes D2014-05-096-15/+15
| | |
| * | Fixed MSVC 64-bit build warnings.Mattes D2014-05-095-36/+38
| |/
| * Merge pull request #989 from Howaner/AnvilMattes D2014-05-072-12/+59
| |\ | | | | | | Add repair cost to cItem, add custom name to NBTChunkSerializer and fix ...
| | * Change m_RepairCost to int.Howaner2014-05-072-2/+2
| | |
| | * Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner2014-05-072-12/+59
| | |
| * | Fix MagmaCube save.Howaner2014-05-072-3/+9
| |/
* | Merge branch 'master' into chunksparsing/structsTycho2014-05-031-2/+2
|\| | | | | | | | | Conflicts: src/Chunk.cpp
| * Fixed warnings in FastNBT.madmaxoft2014-05-011-2/+2
| |
* | Merge branch 'master' into chunksparsing/structsTycho2014-05-013-11/+27
|\|
| * Anvil saver pads data to 4K boundaries.madmaxoft2014-05-011-0/+5
| | | | | | | | Fixes #524.
| * Merge pull request #940 from Howaner/GlobalFixesMattes D2014-04-282-2/+2
| |\ | | | | | | Add entity invulnerable
| | * Revert "Changed the old invulnerable methods from the wither to the new."Howaner2014-04-282-9/+2
| | | | | | | | | This reverts commit d50f8f6f11f69e7e1e56be92fb2d72a5014a3e34.
| | * Changed the old invulnerable methods from the wither to the new.Howaner2014-04-262-2/+9
| | |
| | * FixesHowaner2014-04-262-2/+2
| | |
| * | Merge pull request #954 from mc-server/projectiles-splitMattes D2014-04-282-3/+7
| |\ \ | | | | | | | | Totally refactored ProjectileEntity.h, splitting up into several files.
| | * | Fixed projectile source filenames, indentationsarchshift2014-04-282-7/+7
| | | |
| | * | Moved cGhastFireballEntity out of ProjectileEntity.harchshift2014-04-271-0/+1
| | | |
| | * | Moved cFireChargeEntity out of ProjectileEntity.harchshift2014-04-271-0/+1
| | | |
| | * | Moved cThrownSnowballEntity out of ProjectileEntity.harchshift2014-04-271-0/+1
| | | |
| | * | Moved cThrownEnderPearl out of ProjectileEntity.harchshift2014-04-271-0/+1
| | | |
| | * | Moved cThrownEggEntity out of ProjectileEntity.harchshift2014-04-271-1/+1
| | | |
| | * | Moved cArrowEntity out of ProjectileEntity.harchshift2014-04-272-2/+2
| | | |
| * | | Merge pull request #948 from jfhumann/staticFixesMattes D2014-04-271-1/+9
| |\ \ \ | | |/ / | |/| | Fixes motivated by Coverity #1
| | * | Fix for minor resource leak (CID 43616)jfhumann2014-04-261-1/+9
| | | |
| * | | Further refactored, Reverted Minecart changearchshift2014-04-261-4/+4
| | | | | | | | | | | | | | | | Other small changes.
| * | | Removed unused assignments.archshift2014-04-261-1/+0
| | | |
| * | | Merge remote-tracking branch 'upstream/master'archshift2014-04-251-0/+1
| |\ \ \ | | | |/ | | |/|
| * | | Small changes; warning fixing.archshift2014-04-251-4/+4
| | | |
* | | | Merge branch 'master' into chunksparsing/structsTycho2014-04-2710-37/+38
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Chunk.h
| * | | Cmake generated projects for IDEs include headers in project files.archshift2014-04-251-0/+1
| |/ /
| * | Fixed class capitalization for the cave spider.archshift2014-04-241-1/+1
| | |
| * | Fixed references to renamed files.archshift2014-04-241-1/+1
| |/
| * Merge remote-tracking branch 'origin/master' into fixesjfhumann2014-04-182-2/+2
| |\ | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Authenticator.cpp src/ClientHandle.cpp src/Entities/Minecart.cpp src/Protocol/Protocol17x.cpp
| | * Rewrote redstone powering to use power levelsTiger Wang2014-04-152-2/+2
| | |
| * | Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-183-4/+4
| |/
| * Removed check for enqueuing a chunk that is already enqueued to be loadedTycho2014-04-081-1/+1
| | | | | | | | | | This remaval is safe as cWorldStorage checks for duplicate chunks when dequeuing and removes an expensive iteration whilst holding the queue lock
| * Fixed silly Clang's warnings in FastNBT.madmaxoft2014-04-041-28/+28
| |
* | Implemented Chunk Sparsing with segmentsTycho2014-04-264-11/+9
|/
* Merge branch 'MacFixes'Tycho2014-04-021-1/+1
|\ | | | | | | | | | | Conflicts: src/DeadlockDetect.cpp src/World.cpp
| * Added one more missing newline.Samuel Barney2014-03-251-1/+1
| |
* | Added schematic string serializer self-test.madmaxoft2014-04-021-0/+33
| |
* | BlockArea: Switched internal coords to Vector3i.madmaxoft2014-03-251-5/+5
| |
* | Merge pull request #833 from mc-server/EnderCrystalMattes D2014-03-254-0/+35
|\ \ | |/ |/| Ender crystals
| * Ender crystalsandrew2014-03-254-0/+35
| |
* | Wither invulnerabilityandrew2014-03-243-3/+19
|/
* Fixed a crash in firework rockets.madmaxoft2014-03-171-2/+8
| | | | Fixes #816.
* Merge pull request #809 from Howaner/BlockEntitysMattes D2014-03-164-31/+240
|\ | | | | More entity saving.
| * Add anvil direction.Howaner2014-03-161-1/+9
| |
| * Remove old debug messages.Howaner2014-03-151-3/+0
| |
| * Merge branch 'master' into BlockEntitysHowaner2014-03-159-24/+404
| |\
| * | Add item frame saving.Howaner2014-03-154-2/+130
| | |
| * | Add health and age load to pickup's.Howaner2014-03-152-6/+20
| | |
| * | Add ExpOrb saving.Howaner2014-03-154-28/+90
| | |
* | | Add new leaves to all classes.Howaner2014-03-161-0/+1
| |/ |/|
* | Added additional macros to support the MSVC size_t format and changed all formats to use the macrosTycho2014-03-121-5/+5
| |
* | Merge branch 'Werror' into warningsTycho2014-03-122-1/+24
|\ \ | | | | | | | | | | | | Conflicts: src/Globals.h
| * \ Merge branch 'master' into WerrorTycho2014-03-122-1/+24
| |\ \ | | | | | | | | | | | | | | | | Conflicts: src/Generating/PieceGenerator.cpp
| | * \ Merge remote-tracking branch 'xdot/master'madmaxoft2014-03-121-1/+1
| | |\ \
| | | * | Unified Vector classesandrew2014-03-111-1/+1
| | | | |
| | * | | Renamed cBlockArea Offset to WEOffset.madmaxoft2014-03-121-2/+2
| | | | | | | | | | | | | | | | | | | | Even in getters / setters.
| | * | | Merge branch 'master' into cBlockArea_Offsetmadmaxoft2014-03-127-5/+406
| | |\| |
| | * | | Renamed m_Offset to m_WEOffsetSTRWarrior2014-03-111-3/+3
| | | | |
| | * | | This allows a blockarea to have an Offset.STRWarrior2014-03-101-0/+23
| | | | |
* | | | | Fixed a load of format string errorsTycho2014-03-111-5/+5
|/ / / /
* | | | Fixed xofts issuesTycho2014-03-102-1/+5
| | | |
* | | | Removed Some unnessicary macrosTycho2014-03-101-2/+2
| | | |
* | | | Use string.reserve to avoid the need to do inplace byteswapTycho2014-03-101-10/+6
| | | |
* | | | Removed unused macro from WSSCompactTycho2014-03-101-1/+0
| | | |
* | | | Fixed alignment issues in Fireworks SerializerTycho2014-03-101-7/+7
| | | |
* | | | Merge branch 'master' into WerrorTycho2014-03-107-5/+406
|\ \ \ \ | | |/ / | |/| |
| * | | Fixed MSVC2008 compilation.madmaxoft2014-03-101-4/+4
| | | |
| * | | Merge pull request #768 from Howaner/BlockEntitysTiger Wang2014-03-094-1/+44
| |\ \ \ | | | |/ | | |/| Add TNT load/save
| | * | Merge branch 'master' into BlockEntitysHowaner2014-03-082-32/+134
| | |\|
| | * | Change TNT Fuse to ticksHowaner2014-03-082-3/+2
| | | |
| | * | Add TNT Save/Load and add Netbeans projects to .gitignoreHowaner2014-03-084-1/+45
| | | |
| * | | Merge branch 'master' into ballisticmissilesTiger Wang2014-03-099-49/+282
| |\ \ \ | | | |/ | | |/| | | | | | | | | Conflicts: src/ClientHandle.cpp
| * | | Hexified coloursTiger Wang2014-03-091-16/+16
| | | |
| * | | Fixed data length issuesTiger Wang2014-03-091-2/+3
| | | |
| * | | Demonstrated issues with GetDataLength()Tiger Wang2014-03-092-5/+11
| | | |
| * | | Fixed compileTiger Wang2014-02-272-3/+2
| | | |
| * | | Implemented ballistic missiles (fireworks)Tiger Wang2014-02-275-4/+356
| | | | | | | | | | | | | | | | + Added fireworks
* | | | Its a const not a macroTycho2014-03-091-1/+1
| | | |
* | | | Take 5Tycho2014-03-091-1/+1
| | | |
* | | | Take 4Tycho2014-03-091-1/+1
| | | |
* | | | Unsigned types take 3Tycho2014-03-091-1/+1
| | | |
* | | | Fix gcc error attempt 2Tycho2014-03-091-1/+1
| | | |
* | | | Fixed gcc errorTycho2014-03-091-1/+1
| |/ / |/| |
* | | Fixed cBlockArea schematic string saving signature.madmaxoft2014-03-072-6/+5
| | |
* | | Merge pull request #763 from Howaner/BlockEntitysMattes D2014-03-075-3/+91
|\ \ \ | | |/ | |/| Add Flower Pots
| * | Add Flower PotsHowaner2014-03-075-3/+91
| | |
* | | Added cBlockArea serialization to string.madmaxoft2014-03-072-32/+135
|/ / | | | | | | Fixes #665.
* | Added more documentation for FastNBT parser.madmaxoft2014-03-021-3/+45
| |
* | Shortened enumsandrew2014-03-011-7/+7
| |
* | Improved comments in float size check.madmaxoft2014-03-011-2/+2
| |
* | Better fix for the 32-bit float reading.madmaxoft2014-02-281-4/+5
|/
* Fixed a gcc warning in FastNBT.h.madmaxoft2014-02-261-2/+11
|
* Merge pull request #710 from TheJumper/masterMattes D2014-02-243-0/+198
|\ | | | | Fixed Mob Drops, Add Rare, Uncommon and Gear Drops, Looting inflicts Drops
| * Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper2014-02-233-0/+198
| |
| * Rename SkullEntity to MobHeadEntityHowaner2014-02-234-18/+18
| |
| * Add Heads completelyHowaner2014-02-231-1/+1
| |
| * Add Skulls/HeadsHowaner2014-02-234-5/+64
| |
* | Fixed MCServer not compiling with C++03 compilersSTRWarrior2014-02-241-2/+2
| |
* | Maps: Improvementsandrew2014-02-231-1/+5
| |
* | Manual merge (Fixed conflicts)andrew2014-02-204-5/+66
|\ \
| * \ Merge pull request #697 from Howaner/SkullMattes D2014-02-194-5/+64
| |\ \ | | |/ | |/| Add Skulls/Heads to MCServer
| | * Rename SkullEntity to MobHeadEntityHowaner2014-02-194-18/+18
| | |
| | * Add Heads completelyHowaner2014-02-181-1/+1
| | |
| | * Add Skulls/HeadsHowaner2014-02-174-5/+64
| | |
| * | Merge branch 'master' into itemframesTiger Wang2014-02-181-0/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/Entities/Entity.h src/WorldStorage/NBTChunkSerializer.cpp
| | * | Implemented paintings, fixes #689Tiger Wang2014-02-181-0/+1
| | |/ | | | | | | | | | + Implemented paintings
| * / Implemented item frames, a part of #689Tiger Wang2014-02-181-0/+1
| |/ | | | | | | | | + Implemented Item Frames * Fixed Pitch and Yaw being wrongly flipped in the protocol (XOFT!)
* | Documented cMapandrew2014-02-191-0/+2
| |
* | Map item handler; Fixed several bugsandrew2014-02-172-4/+14
| |
* | Send map when selectedandrew2014-02-141-3/+6
| |
* | IDCount Serializationandrew2014-02-132-1/+103
| |
* | Implementation of in-game mapsandrew2014-02-132-0/+241
|/
* Fixed #573STRWarrior2014-02-121-4/+4
|
* Fixed compile and some warnings in MSVSTiger Wang2014-02-091-2/+2
|
* Partial fix for #130Tiger Wang2014-02-031-0/+1
|
* Added saving of angry flag.Kirill Kirilenko2014-02-022-0/+7
|
* Fixed sitting tag.Kirill Kirilenko2014-02-022-5/+5
|
* Added saving of collar's color.Kirill Kirilenko2014-02-012-4/+11
|
* Added reading saved state of the wolf (sitting or standing).Kirill Kirilenko2014-01-311-0/+6
|
* Inversed condition.STRWarrior2014-01-311-1/+1
|
* Wolf: If Owner tag is missing a normal ownerless wolf will spawn.STRWarrior2014-01-311-9/+6
|
* Fixed bad variable.STRWarrior2014-01-301-1/+1
|
* Check if the tag is found.STRWarrior2014-01-301-0/+5
|
* Fixes #606STRWarrior2014-01-302-2/+9
|
* Item-loading now checks for weird bytes.madmaxoft2014-01-261-3/+9
|
* Merge pull request #575 from worktycho/GeneratingBenchmarkMattes D2014-01-252-0/+201
|\ | | | | More Interfaces to decouple Generator from the rest of the code
| * Fixed exportsTycho2014-01-251-4/+1
| |
| * Fixed spelling errorTycho2014-01-222-1/+1
| |
| * Added manual bindings for moved functionsTycho2014-01-221-2/+4
| |
| * formatting changesTycho2014-01-222-6/+26
| |
| * Merge branch 'master' into GeneratingBenchmarkTycho2014-01-223-1/+442
| |\ | | | | | | | | | | | | Conflicts: src/World.h
| * | Actually implemented interfacesTycho2014-01-202-21/+28
| | |
| * | Moved Schematic file methods to seperate classTycho2014-01-202-0/+175
| | |
* | | Fixed a few compile-time and runtime warnings in ScoreboardSerializer.madmaxoft2014-01-241-8/+4
| | |
* | | Fixed crash with failed entity-loading.madmaxoft2014-01-241-2/+7
| | | | | | | | | | | | | | | | | | This should fix issues reported in: http://forum.mc-server.org/showthread.php?tid=1328 http://forum.mc-server.org/showthread.php?tid=1308
* | | Fixed scoreboard.dat structureandrew2014-01-231-5/+6
| | |
* | | Fixed scoreboard serializationandrew2014-01-231-35/+26
| | |
* | | Improved code safety for the Compact world storage.Mattes D2014-01-231-104/+72
| | | | | | | | | | | | That was a huge chunk of smelly code.
* | | Command block fixes 2andrew2014-01-232-17/+40
| |/ |/|
* | cWorld now saves/loads the scoreboardandrew2014-01-221-5/+10
| |
* | Merge branch 'master' of https://github.com/mc-server/MCServerandrew2014-01-214-2/+109
|\|
| * Merge pull request #569 from worktycho/EnchantmentsFixMattes D2014-01-194-2/+109
| |\ | | | | | | Enchantments fix
| | * Switched EnchantmentSerilizer to namespaceTycho2014-01-194-10/+11
| | |
| | * Spilt Writing of Enchantments to seperate classTycho2014-01-194-2/+108
| | | | | | | | | | | | | | | | | | | | | Created a new class cEnchantmentSerializer to serilize Enchantments to NBT. This breaks a dependecy chain between cChunkGenerator and cWorld. cEnchantmentSerializer is seperate from NBTWriter as it needs to access private members of cEnchantments so having it seperate reduces the spread of the frein modifier
* | | Scoreboard protocol supportandrew2014-01-211-0/+4
| | |
* | | Scoreboard serializationandrew2014-01-201-5/+72
| | |
* | | Scoreboard deserializationandrew2014-01-203-1/+366
|/ /
* | Parse the MC|AdvCdm plugin messageandrew2014-01-181-1/+1
| |
* | Command blocks: Execute()andrew2014-01-181-1/+1
| |
* | Command block (de)serializationandrew2014-01-184-18/+80
|/
* Added user setting compression factorTycho2014-01-176-18/+25
|
* Merge pull request #534 from mc-server/SpawnMinecartMattes D2014-01-171-1/+1
|\ | | | | Added cWorld::SpawnMinecart.
| * Renamed cEmptyMinecart to cRideableMinecartSTRWarrior2014-01-121-1/+1
| |
| * EmptyMinecarts should be able to get a block inside of them.STRWarrior2014-01-121-1/+1
| |
* | Removed internal cEntity::GetRot() usage.madmaxoft2014-01-171-1/+1
| |
* | Removed obsoleted functionsTiger Wang2014-01-162-2/+2
|/
* Fixed a few MSVC warnings.madmaxoft2014-01-071-5/+8
|
* Fixed wrong enqueueing.madmaxoft2014-01-061-2/+9
| | | | Fixes #505.
* Merge branch 'master' into threadsafequeueTycho Bickerstaff2014-01-022-8/+8
|\
| * More memory alignment fixes.madmaxoft2014-01-021-3/+3
| | | | | | | | Ref.: #420.
| * Fixed unaligned memory access in FastNBT.madmaxoft2014-01-021-5/+5
| | | | | | | | This should fix #420.
* | fixed a few remaining issues with worldstorageTycho Bickerstaff2014-01-022-24/+6
| |
* | rewrote queue not to use promises for waitsTycho Bickerstaff2014-01-022-15/+9
| |
* | refactored chunk Queue to seperate classTycho Bickerstaff2013-12-312-97/+67
| |
* | added link dependency between WorldStorage and OSSupportTycho Bickerstaff2013-12-221-0/+2
|/
* Preliminary mobile entity savingTiger Wang2013-12-253-12/+788
| | | | | | | * Fixes #252 * Alleviates #380 + Adds mob saving * Fixed some debug !ASSERTs
* Merge branch 'master' into cmakeTycho Bickerstaff2013-12-204-7/+15
|\
| * Attempt at fixing cChunkDef::Height signedness.madmaxoft2013-12-202-3/+11
| |
| * Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft2013-12-202-4/+4
| |
* | moved Worldstorage to globsTycho Bickerstaff2013-12-111-1/+5
| |
* | more cmakeTycho Bickerstaff2013-12-101-0/+7
|/
* Moved json includes to where they are really needed.madmaxoft2013-11-282-1/+1
|
* Fixed VC2008 compilation, normalized include paths.madmaxoft2013-11-272-2/+2
|
* Fixed the remaining derpsAlexander Harkness2013-11-273-4/+4
|
* Further attempts to fix compileTiger Wang2013-11-253-4/+4
|
* Attempt to fix compilationTiger Wang2013-11-243-4/+4
|
* Moved source to srcAlexander Harkness2013-11-2410-0/+4925