summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix improper destruction of BEs on /regenTiger Wang2021-04-121-12/+19
|
* Move some redstone implementations into the source fileTiger Wang2021-03-281-0/+1
|
* Fix chunk block changes being sent out of order (#5169)Tiger Wang2021-03-281-39/+49
| | | | * Flush out all pending, buffered changes at the end of each tick, after every chunk is ticked. This makes every block update client-side in unison, instead of unlucky ones only being sent 1 tick later. * Re-add buffer for outgoing network data; IOCP async WSASend has higher overhead than expected... Fixes regression introduced in 054a89dd9
* Do not fake a tool when converting to pickups (#5170)Tiger Wang2021-03-281-3/+2
| | | | | * When the cause of destruction was world-induced (CanBeAt check failed) there is no tool. Pass the nullptr directly to ConvertToPickups and let it handle it. * Fixes #4795 - Remove unused a_Digger parameter to ConvertToPickups.
* Unify DoWithBlockEntity (#5168)Tiger Wang2021-03-281-350/+48
| | | | | | + DoWith calls now broadcast the block entity and mark the chunk dirty + Add block entity change queue to synchronise BE updates with block updates * Fixed a few incorrect assertions about BE type - Remove manual overloads
* Properly deprecate more XYZ parameter'd functions (#5147)Tiger Wang2021-03-151-2/+1
| | | * Fixes #5144
* Some emplace_back replacements (#5149)12xx122021-03-071-2/+2
| | | * replace push_back with emplace_back when a new object was created in the function call
* Prepare ChunkData for BlockState storage (#5105)Tiger Wang2021-03-051-52/+27
| | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix debug macro situation (#5114)Tiger Wang2021-01-261-2/+2
| | | Use the standard NDEBUG.
* cChunk: don't inherit from cChunkDef (#5106)Tiger Wang2021-01-181-56/+33
|
* Clarify cClientHandle, cPlayer ownership semanticsTiger Wang2021-01-121-10/+16
| | | | | | | | + A cPlayer, once created, has a strong pointer to the cClientHandle. The player ticks the clienthandle. If he finds the handle destroyed, he destroys himself in turn. Nothing else can kill the player. * The client handle has a pointer to the player. Once a player is created, the client handle never outlasts the player, nor does it manage the player's lifetime. The pointer is always safe to use after FinishAuthenticate, which is also the point where cProtocol is put into the Game state that allows player manipulation. + Entities are once again never lost by constructing a chunk when they try to move into one that doesn't exist. * Fixed a forgotten Super invocation in cPlayer::OnRemoveFromWorld. * Fix SaveToDisk usage in destructor by only saving things cPlayer owns, instead of accessing cWorld.
* Convert most calls to blocking GetHeight/GetBiomeAt to direct chunk accessesTiger Wang2021-01-111-7/+51
| | | | * Hopefully fixes #5094
* zlib -> libdeflate (#5085)Tiger Wang2021-01-111-1/+0
| | | | | | + Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
* Fix potential destruction crashes (#5095)Tiger Wang2021-01-021-0/+9
| | | | | | | | | | * 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
* Make SetAllData's MarkDirty() the chunk's responsibilityTiger Wang2020-12-261-1/+6
|
* Avoid a gratuitous dirty when loading chunks with entitiesTiger Wang2020-12-261-0/+22
| | | | Loaded entities are directly moved into the chunk data, instead of having to go through cWorld, as if they were just spawned. This avoid dirtying the chunk.
* unique_ptr<cChunkMap> to plain memberTiger Wang2020-12-221-2/+2
|
* Warnings improvementsTiger Wang2020-12-181-2/+9
| | | | | | | | | * 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
* Add correct implementation of crops (#4802)0ddlyoko2020-11-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [FIX] Add correct implementation of seed drops. > Official percentage of drops has been implemented * Fix C++ conventions * Change "Vals" variable to "m_Vals" * [FIX] Add correct implementation of Carrots, Potatoes, Wheat & Beetroots seed * Add Fortune support with crops Add fortune support with Wheat, Carrots, Potatoes & Beetroots seeds * [FIX] Right-clicking on a grown Beetroot in survival consume 2 bone meals Fix #4805 * Add documentation for "cWorld::IsFullGrownPlantAt" method * Fix dispenser that full grown a plant > Change methods cItemDyeHandler::FertilizePlant & cItemDyeHandler::growPlantsAround to static * Display particle even if tree doesn't grow * When right-clicking on a full grown melon / pumpkin seed, no longer produce a melon / pumpkin Before this commit, when you right-click on a melon or a pumpkin seed, a melon / pumpkin block spawned. With this commit, it no longer spawns * [FIX] Do not create melon / pumpkin block when right-clicking with a bone meal This fix will prevent the creation of a melon / pumpkin block when you right-click with a bone meal on a melon / pumpkin plant - It just detect if the plant is full grown. if yes, the method "Grow" is not called - Remove IsFullGrownPlant Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Do not call into things we don't own in destructorsTiger Wang2020-09-251-16/+21
| | | | | - Remove improper accesses in cChunk destructor * Fixes #4894
* Unify block entity pickup conversionTiger Wang2020-09-251-14/+28
| | | | | - Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-12/+5
| | | | | | | | | | | | | * BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net>
* Reverse order of ChunkSender priorities (#4858)Tiger Wang2020-09-121-2/+2
| | | | | * Reduces confusion when using overloaded operator< and priority_queue Co-authored-by: peterbell10 <peterbell10@live.co.uk>
* Use tracing for explosions (#4845)Tiger Wang2020-09-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Save enderchest block entities to storageTiger Wang2020-08-281-52/+6
| | | | | + Add EnderChest saving, as Vanilla does - Remove CreateBlockEntities. Storage should save & load everything so looping over chunk data is not needed
* Clean up pickup collection to use ForEachEntityInBoxTiger Wang2020-08-281-36/+0
|
* Simplify MoveEntityToNewChunkTiger Wang2020-08-281-7/+3
| | | | | - No longer try getting from the chunkmap if GetNeighborChunk fails, since nothing else does this and entities (in future) will not tick close to an unloaded chunk edge * GetRelNeighborChunk uses FindChunk
* Clean up GenerateChunk/TouchChunkTiger Wang2020-08-281-19/+2
| | | | | | - Remove TouchChunk - Remove unused bool return value in GenerateChunk - Remove ShouldGenerateIfLoadFailed
* Remove unneeded MarkDirty, SendToClients parameters of SetMetaTiger Wang2020-08-281-9/+6
| | | | | | | | Partially reverts #3129, whose addition of these parameters was superseded by #3149 that fixed generated leaves' metas. References: https://github.com/cuberite/cuberite/pull/4417#discussion_r334950513 e0bcd754009f16480437b2c1fa5e7fbedab31496
* Remove level of indirection in cChunk storageTiger Wang2020-08-211-18/+19
| | | | - No more unique_ptr storage
* const-ify some Chunk functionsTiger Wang2020-08-081-4/+4
|
* WakeUpSimulators correct Y computationTiger Wang2020-08-051-6/+7
| | | | + Add Y validity check to SimulatorManager
* Code cleanup in cChunk.PlaceBlock() for checking if BlockEntity should be spawned (#4812)12xx122020-08-041-27/+4
| | | * Changed switch for call in cChunk for call to function cBlockEntity to remove unnecessary confusions while implementing new BlockEntities
* Corrected wakeup sequencesTiger Wang2020-08-041-2/+2
| | | | | | | * Pistons/Ice no longer need to FastSetBlock first (#4600), and the former don't drop items when broken in creative - Begin migration away from stationary fluids * Tick the chunk after applying a client's changed * Broadcast pending blocks at the end of a tick
* OnBroken/OnPlaced are for entity actionsTiger Wang2020-08-041-30/+3
| | | | | | * Call OnPlaced/OnBroken in PlaceBlock/DigBlock - Remove unused Placing/Breaking handlers * Have the blockhandler's Check handle neighbour updating, instead of QueueTickBlockNeighbors
* Use std::queue for the block tick queueTiger Wang2020-08-021-10/+8
|
* Remove unused block tick related cChunk functionsTiger Wang2020-08-021-45/+14
|
* Always use relative coordinates in AddBlockTiger Wang2020-08-021-34/+6
| | | | | + Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available
* Do not impose redstone wakup penalty for all blocksTiger Wang2020-08-021-19/+6
|
* Delegate simulator wakeup to cChunkTiger Wang2020-08-021-0/+4
|
* Reduce unnecessary wakeupsTiger Wang2020-07-251-7/+22
| | | | - cSimulator no longer wakes up positions already woken by cChunk::SetBlock
* Use relative vectors in cChunk::DoWithTiger Wang2020-07-251-32/+32
|
* Send entities in cChunkSender (#4532)Mat2020-06-241-13/+0
| | | Confer issue #3696
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-2/+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
* Add cEntity::GetBoundingBox, and use where appropriate. (#4711)Alexander Harkness2020-05-031-3/+2
| | | * Add cEntity::GetBoundingBox, and use where appropriate.
* Modify pickup collection behaviour to correspond to vanilla.Alexander Harkness2020-05-031-16/+4
| | | | As documented here: https://www.spigotmc.org/threads/item-pickup-radius.337271/#post-3141146
* Get biome at world coords on mob spawn (#4692)Mat2020-04-251-3/+4
|
* More Vector3 in cBlockHandler (#4644)Mattes D2020-04-171-34/+15
| | | | | * cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works.
* Manage block entity lifetime with unique_ptr (#4080)peterbell102020-04-031-21/+10
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-0/+1
| | | | | | | | | 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
* Lock hopper when powered by redstone (#4347)Bond-0092020-03-271-0/+11
| | | | | | | | | * Lock hopper when powered by redstone * Add to manual bindings * Add hopper API documentation Co-authored-by: Mat <mail@mathias.is>
* Fixed unloading of chunks that contain player entities (#4508)Max Luchterhand2020-03-181-0/+16
| | | | Co-authored-by: peterbell10 <peterbell10@live.co.uk> Co-authored-by: mluchterhand <mluchterhand@max.de>
* Blocks only drop pickups when using correct tool (#4505)Max Luchterhand2020-03-181-1/+7
| | | Co-authored-by: mluchterhand <mluchterhand@max.de>
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-301/+75
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-59/+59
|
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-6/+6
|
* Cactus can now grow and will be dropped if there is no place to grow.Lukas Pioch2019-09-291-4/+17
|
* Fixed MSVC warnings (#4400)Mattes D2019-09-271-6/+6
|
* Separated chunk generator from world / plugin interfaces.Mattes D2019-09-061-18/+1
| | | | The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
* Add a formatting function for Vector3 (#4282)peterbell102018-09-241-5/+5
| | | | | | | | | | * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-1/+8
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Broadcast refactor (#4264)peterbell102018-07-241-401/+1
| | | | | | | | | | | | | | | | | | | | | | | * Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions
* Optimise chunk set (#4260)peterbell102018-07-231-89/+70
| | | | | | | | | | | | | | | | | Closes #1244 Initially I was just going to add the cChunkData to cSetChunkData but profiling revealed that the copying wasn't even the biggest slowdown. Much more time was being spent in cChunk::CreateBlockEntities and cChunk::WakeUpSimulators than was in memcpy so I've made those significantly faster as well. Optimisations performed: * cSetChunkData now stores blocks in a cChunkData object * cChunkData objects can now perform moves even if they are using different pools * cChunk::CreateBlockEntities now iterates in the correct order and only over present chunk sections * Similarly for cChunk::WakeUpSimulators * cSetChunkData::CalculateHeightMap now shortcuts to the highest present chunk section before checking blocks directly
* 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.
* cChunk and cChunkData: Use vectors for block get and set functions (#4172)peterbell102018-02-041-20/+11
| | | | | * cChunkData: Change interface to use Vector3i * cChunk: Add Vector3i overloads for bounded block get and set functions.
* Fix explosion interaction with block entities. (#4052)peterbell102017-09-271-3/+4
| | | | | | * WriteBlockArea: Fix erasing of block entities. * cChunkMap::DoExplosionAt destroys block entities
* BroadcastBlockBreakAnimation and BroadcastBlockEntity use vectors (#4038)Bond-0092017-09-251-6/+6
|
* Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly2017-09-191-6/+6
| | | | | | | | | | | | | | | | | | * 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
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-49/+34
|
* cBlockArea: change MakeIndex to return size_tpeterbell102017-09-111-1/+1
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-35/+50
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-50/+35
|
* Snow only generates on blocks with a block light level of 10 or less (#3931)Bond-0092017-08-211-1/+7
|
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-0/+22
|
* Merge pull request #3918 from peterbell10/GetBlockEntityTiger Wang2017-08-181-7/+11
|\ | | | | cChunk: Don't assume GetBlockEntity coords are valid
| * cChunk: Don't assume GetBlockEntity coords are validpeterbell102017-08-101-7/+11
| |
* | Merge pull request #3489 from cuberite/EntityOwnershipTiger Wang2017-08-181-50/+77
|\ \ | | | | | | * Changed entity ownership model to use smart pointers
| * | Changed entity ownership model to use smart pointersTiger Wang2017-08-071-50/+77
| |/
* / Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-4/+7
|/
* Break the cactus block when it grows next to a block. (#3851)Bond-0092017-07-181-4/+31
|
* Simulators: Added area-based wakeup.Mattes D2017-07-161-1/+0
|
* BigFlower fixes (#3826)peterbell102017-07-071-1/+1
| | | | | | | * BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
* Added bed entity (#3823)Lukas Pioch2017-07-071-0/+12
| | | | | | | | | | * 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
* cBlockArea supports block entities. (#3795)Mattes D2017-06-241-7/+51
|
* Generated tall flowers have flower type meta in both blockspeterbell102017-06-191-1/+1
|
* Remove sign conversionpeterbell102017-06-161-1/+1
|
* FastRandom rewrite (#3754)peterbell102017-06-131-12/+19
|
* Store cChunk::m_BlockEntities in a map (#3717)peterbell102017-05-221-476/+183
| | | | | | * Store block entities in a map from block index * Cleanup ForEachBlockEntity * Cleanup DoWithBlockEntityAt
* Removed asserts about chunk queued.Mattes D2017-01-191-1/+0
| | | | The assumption is not needed and was invalid under a stress-test.
* Initial support for the 1.11 protocol.Mattes D2016-12-161-2/+2
|
* Spectators added (#2852)bibo382016-10-121-1/+10
|
* cChunk::SetAlwaysTicked implies cChunk::stay (#3361)LogicParrot2016-10-091-0/+2
|
* Configurable dirty unused chunk cap to avoid RAM overuse (#3359)LogicParrot2016-09-031-0/+13
| | | Configurable dirty unused chunk cap to avoid RAM overuse
* Makes tall grass and large flowers bonemealableQUSpilPrgm2016-06-031-0/+31
| | | | Adds the bonemeal particle effect to some more places
* Update Dispensers and let them act more like in VanillaQUSpilPrgm2016-06-031-8/+11
| | | | | | | | - Added code to make bonemeal, potions, minecarts, XP bottles and boats work inside dispensers - Dispensers are now able to place TNT if the block is transparent but not air - Added return value that indicates the success of pumpkin, melon, sugarcane and cactus growing functions - Changed return value of "GrowRipePlant" so that it actually indicates if the block was able to grow - Fixed "GrowSugarcane" and "GrowCactus" in "GrowRipePlant" so that it only grows them a single block
* 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135)Pokechu222016-05-141-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Semistable update to 15w31a I'm going through snapshots in a sequential order since it should make things easier, and since protocol version history is written. * Update to 15w34b protocol Also, fix an issue with the Entity Equipment packet from the past version. Clients are able to connect and do stuff! * Partially update to 15w35e Chunk data doesn't work, but the client joins. I'm waiting to do chunk data because chunk data has an incomplete format until 15w36d. * Add '/blk' debug command This command lets one see what block they are looking at, and makes figuring out what's supposed to be where in a highly broken chunk possible. * Fix CRLF normalization in CheckBasicStyle.lua Normally, this doesn't cause an issue, but when running from cygwin, it detects the CR as whitespace and creates thousands of violations for every single line. Lua, when run on windows, will normalize automatically, but when run via cygwin, it won't. The bug was simply that gsub was returning a replaced version, but not changing the parameter, so the replaced version was ignored. * Update to 15w40b This includes chunk serialization. Fully functional chunk serialization for 1.9. I'm not completely happy with the chunk serialization as-is (correct use of palettes would be great), but cuberite also doesn't skip sending empty chunks so this performance optimization should probably come later. The creation of a full buffer is suboptimal, but it's the easiest way to implement this code. * Write long-by-long rather than creating a buffer This is a bit faster and should be equivalent. However, the code still doesn't look too good. * Update to 15w41a protocol This includes the new set passengers packet, which works off of the ridden entity, not the rider. That means, among other things, that information about the previously ridden vehicle is needed when detaching. So a new method with that info was added. * Update to 15w45a * 15w51b protocol * Update to 1.9.0 protocol Closes #3067. There are still a few things that need to be worked out (picking up items, effects, particles, and most importantly inventory), but in general this should work. I'll make a few more changes tomorrow to get the rest of the protocol set up, along with 1.9.1/1.9.2 (which did make a few changes). Chunks, however, _are_ working, along with most other parts of the game (placing/breaking blocks). * Fix item pickup packet not working That was a silly mistake, but at least it was an easy one. * 1.9.2 protocol support * Fix version info found in server list ping Thus, the client reports that it can connect rather than saying that the server is out of date. This required creating separate classes for 1.9.1 and 1.9.2, unfortunately. * Fix build errors generated by clang These didn't happen in MSVC. * Add protocol19x.cpp and protocol19x.h to CMakeLists * Ignore warnings in protocol19x that are ignored in protocol18x * Document BLOCK_FACE and DIG_STATUS constants * Fix BLOCK_FACE links and add separate section for DIG_STATUS * Fix bat animation and object spawning The causes of both of these are explained in #3135, but the gist is that both were typos. * Implement Use Item packet This means that buckets, bows, fishing rods, and several other similar items now work when not looking at a block. * Handle DIG_STATUS_SWAP_ITEM_IN_HAND * Add support for spawn eggs and potions The items are transformed from the 1.9 version to the 1.8 version when reading and transformed back when sending. * Remove spammy potion debug logging * Fix wolf collar color metadata The wrong type was being used, causing several clientside issues (including the screen going black). * Fix 1.9 chunk sending in the nether The nether and the end don't send skylight. * Fix clang build errors * Fix water bottles becoming mundane potions This happened because the can become splash potion bit got set incorrectly. Water bottles and mundane potions are only differentiated by the fact that water bottles have a metadata of 0, so setting that bit made it a mundane potion. Also add missing break statements to the read item NBT switch, which would otherwise break items with custom names and also cause incorrect "Unimplemented NBT data when parsing!" logging. * Copy Protocol18x as Protocol19x Aditionally, method and class names have been swapped to clean up other diffs. This commit is only added to make the following diffs more readable; it doesn't make any other changes (beyond class names). * Make thrown potions use the correct appearence This was caused by potions now using metadata. * Add missing api doc for cSplashPotionEntity::GetItem * Fix compile error in SplashPotionEntity.cpp * Fix fix of cSplashPotionEntity API doc * Temporarilly disable fall damage particles These were causing issues in 1.9 due to the changed effect ID. * Properly send a kick packet when connecting with an invalid version This means that the client no longer waits on the server screen with no indication whatsoever. However, right now the server list ping isn't implemented for unknown versions, so it'll only load "Old" on the ping. I also added a GetVarIntSize method to cByteBuffer. This helps clean up part of the code here (and I think it could clean up other parts), but it may make sense for it to be moved elsewhere (or declared in a different way). * Handle server list pings from unrecognized versions This isn't the cleanest way of writing it (it feels odd to use ProtocolRecognizer to send packets, and the addition of m_InPingForUnrecognizedVersion feels like the wrong technique), but it works and I can't think of a better way (apart from creating a full separate protocol class to handle only the ping... which would be worse). * Use cPacketizer for the disconnect packet This also should fix clang build errors. * Add 1.9.3 / 1.9.4 support * Fix incorrect indentation in APIDesc
* Out of world blocks are now always considered air blocksLogicParrot2016-04-231-10/+0
|
* Reduced unnecessary block updatesLogicParrot2016-04-221-10/+12
|
* Revert "Move mob tick code to cChunk"LogicParrot2016-04-061-40/+10
|
* Move mob tick code to cChunkLogicParrot2016-04-061-10/+40
|
* Improved player freeze codeLogicParrot2016-04-051-2/+13
|
* Players never fall through unloaded chunks or end up inside solids on teleportLogicParrot2016-03-311-1/+1
|
* Entities are never lostLogicParrot2016-03-301-3/+2
|
* Fix #3030Alexander Harkness2016-02-201-9/+1
| | | | Logicparrot's instructions
* Proper entity destruction in non-ticking chunksLogicParrot2016-02-191-48/+34
|
* cMonster::m_Target safety across worldsLogicParrot2016-02-031-1/+9
|
* Fixed cChunk::m_Entities corruption upon world travelLogicParrot2016-02-021-1/+28
|
* Updated old forum linksMathias2016-01-311-1/+1
|
* Spiders now friendly at daylight, new cChunk functionsLogicParrot2016-01-211-69/+94
|
* Reorganised the redstone simulatorTiger Wang2015-12-181-96/+0
| | | | | | -> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved
* allow use failures to propagate from the entity/block to the playerGargaj2015-12-131-2/+3
|
* Add enum for Sound and Particle EffectsDave Tucker2015-11-241-1/+1
| | | | | | Fixes #2603 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
* Adjusted height validation using cChunkDef::IsValidHeight()Julian Laubstein2015-11-231-9/+9
|
* Implemented brewingLukas Pioch2015-11-031-0/+53
|
* Maked it compileable for clang-3.7Lukas Pioch2015-09-251-1/+1
|
* Fixed wrong assumtion regarding RemoveClienttycho2015-09-191-1/+5
| | | | Remove client can be called with a client that is not present in the chunk
* Fixed erasetycho2015-09-191-1/+1
|
* Removed a significant performance issue.tycho2015-09-181-78/+62
| | | | | | Iterating through the list of clients in chunks was taking up a significant amount of time with larger numbers of clients due to processor stalls. Changing the data structure to a vector fixed the issue.
* Unified the doxy-comment format.Mattes D2015-07-311-1/+0
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-25/+25
|
* Merge pull request #2224 from cuberite/ChunkQueueCollapsingworktycho2015-07-041-16/+0
|\ | | | | Chunk queue collapsing: MK II
| * Reinstate "Chunk queue collapsing"Tiger Wang2015-06-101-16/+0
| | | | | | | | | | This reinstates commit f36acb683594daff5af3971dcbe3c3a171628b78 and reverts commit adfbc42c021e1bcfcb355933c0fd784306ce0e18.
* | Added neighbor specification in the OnNeighborChanged() block callback.Mattes D2015-07-011-1/+1
| | | | | | | | | | Fixes the OnNeighborChanged endless recursion with large melon / pumpkin fields. Fixes #2213.
* | BlockArea: Fixed a crash with areas higher than chunk height.Mattes D2015-06-301-1/+1
| |
* | Call Neighbour changed handlers when a melon is createdtycho2015-06-231-0/+3
| | | | | | | | Should prevent cascading farmland updates on breaking melons
* | Fixed melon metadata when growing from stem.Mattes D2015-06-231-6/+9
|/
* Implemented nether portal scanning code.Lane Kolbly2015-06-101-1/+1
|
* Revert "Chunk queue collapsing"worktycho2015-06-071-0/+16
|
* Moved Chunk Broadcasts over to the regular queuetycho2015-06-051-16/+0
|
* Make -Werror disabling file onlytycho2015-05-191-2/+2
| | | | Ad fix a load of warnings
* Merge remote-tracking branch 'origin/master' into warningsTiger Wang2015-05-101-12/+12
|\ | | | | | | | | | | Conflicts: src/Mobs/Monster.cpp src/Vector3.h
| * CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-091-9/+9
| |
| * More style checking.Mattes D2015-05-091-3/+3
| | | | | | | | Spaces around some operators are checked.
* | Fixed some Visual Studio warningsTiger Wang2015-05-091-1/+1
|/
* Merge pull request #1826 from mc-server/UnifyPacketizerMattes D2015-03-241-4/+4
|\ | | | | Unify packetizer
| * Fixed signedness warnings in Protocol.Mattes D2015-03-211-2/+2
| |
| * Changed cEntity::m_UniqueID to UInt32.Mattes D2015-03-211-2/+2
| |
* | Correct world height validations.Tommy Santerre2015-03-201-3/+3
|/ | | | | Unify the way we test block above the current one (Height - 1 instead of a_RelY + 1). Allow generation of world of flat height = 255
* Fixed client kick/crash if many block changes happendHowaner2015-03-091-3/+15
|
* Weather: Snow starts forming when the top block is at the right height or higherSTRWarrior2015-02-251-66/+57
|
* Fixed flowing water turning into ice when snowingSTRWarrior2015-02-251-1/+1
|
* fix logic bug in cChunk::FastSetBlock filtering out leaves meta changesRaekye2015-01-261-7/+9
| | | | - send update if it's not a leaves block and (the original checks)
* filter out leaves meta changes from being sent to the clientRaekye2015-01-261-0/+4
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Refactored all player block placing to go through hooks.Mattes D2014-12-241-8/+8
| | | | Fixes #1618.
* cChunk: Fixed missing initialization.Mattes D2014-12-211-0/+2
| | | | Fixes CID 72670.
* Merge branch 'master' into redstoneTiger Wang2014-12-131-9/+11
|\
| * Merged branch 'origin/master' into c++11.Mattes D2014-12-041-7/+10
| |\
| | * Merge branch 'master' into MobSpawnerHowaner2014-11-291-6/+6
| | |\
| | | * Chunk: Fixed same-name iterators.Mattes D2014-11-271-5/+5
| | | |
| | * | Merge branch 'master' into MobSpawnerHowaner2014-11-181-60/+60
| | |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: MCServer/Plugins/Core
| | * \ \ Merge branch 'master' into MobSpawnerHowaner2014-09-261-5/+9
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/MobSpawner.h src/Mobs/Monster.h
| | * | | | Implemented mob spawner.Howaner2014-09-191-2/+5
| | | | | |
| * | | | | Merge remote-tracking branch 'origin/master' into c++11Tiger Wang2014-11-231-1/+1
| |\ \ \ \ \ | | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | Conflicts: src/Noise/Noise.h src/World.h
| | * | | | Moved all Noise-related files into a separate folder.Mattes D2014-11-181-1/+1
| | | |_|/ | | |/| |
| * | | | Merged branch 'master' into c++11.Mattes D2014-10-241-1/+1
| |\| | |
| * | | | En masse NULL -> nullptr replaceTiger Wang2014-10-201-51/+51
| | | | |
| * | | | Merge branch 'master' of https://github.com/mc-server/MCServerTiger Wang2014-10-201-1/+1
| |\ \ \ \
| * | | | | Migrated random generators to std::randomTiger Wang2014-10-191-1/+0
| | | | | |
* | | | | | Cleaned up simulatorsTiger Wang2014-10-251-3/+3
| |_|/ / / |/| | | |
* | | | | Use 3 priorities.Howaner2014-10-231-1/+1
| | | | |
* | | | | Merge branch 'master' into ChunkLoaderHowaner2014-10-231-51/+51
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/ChunkSender.cpp src/ClientHandle.cpp src/World.h
| * | | | | En masse NULL -> nullptr replaceTiger Wang2014-10-231-51/+51
| | |/ / / | |/| | |
* | | | | Use two lists and 2 chunk send prioritys.Howaner2014-10-211-1/+1
| | | | |
* | | | | Merge branch 'master' into ChunkLoaderHowaner2014-10-211-7/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/ClientHandle.cpp
| * | | | Fixed error with non-const functionJulian Laubstein2014-10-191-1/+1
| |/ / /
| * | | Merge pull request #1502 from mc-server/furnacesTiger Wang2014-10-181-1/+1
| |\ \ \ | | | | | | | | | | Improved furnaces
| | * | | Furnaces now update their block entity typeTiger Wang2014-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | Therefore improving cChunk's variable boundary checking.
| | * | | Improved furnacesTiger Wang2014-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-5/+5
| |/ / /
* / / / Stream 4 chunks per tick. Added priority.Howaner2014-10-061-1/+1
|/ / /
* | | Update Chunk.cppworktycho2014-09-281-1/+1
| | |
* | | Use factory method to construct redstone simulator dataTycho2014-09-281-1/+1
| |/ |/|
* | Merge branch 'master' of https://github.com/mc-server/MCServerTycho2014-09-261-0/+3
|\ \
| * | Fixed issue with castingtycho2014-09-261-0/+3
| | |
* | | Removed more unessicary includesTycho2014-09-261-0/+1
|/ /
* | Merge branch 'master' into redstoneTestsTycho2014-09-251-2/+2
|\ \ | | | | | | | | | | | | Conflicts: src/Mobs/Monster.h
| * | Merge branch 'master' into 1.8-ProtocolHowaner2014-09-121-1/+1
| |\|
| * | 1.8: Added ParticleEffect packet.Howaner2014-09-111-2/+2
| | |
* | | Merge branch 'master' into redstoneTestsTycho2014-09-171-1/+1
|\ \ \ | | |/ | |/| | | | | | | Conflicts: src/Blocks/ChunkInterface.h
| * | Fixed a redstone sim failure with droppers.Mattes D2014-09-111-1/+1
| |/
* / Possibly decoupled IncrementalRedstoneSimulator from the rest of the serverTycho2014-09-111-3/+3
|/ | | | THis wil hopefully allow for unit testing
* Removed chunk's unused Y coord.Mattes D2014-09-061-3/+3
| | | | This fixes the second issue of #1313.
* Rewritten chunk status to specify whether the chunk is in queue.Mattes D2014-09-051-12/+38
| | | | This fixes #1370.
* Merge remote-tracking branch 'origin/master' into EntitiesInBoxmadmaxoft2014-09-041-4/+3
|\
| * Merge pull request #1351 from LO1ZB/remove-a_RelYMattes D2014-09-031-4/+3
| |\ | | | | | | remove y-coord from chunks
| | * remove y-coord from chunksLO1ZB2014-08-281-4/+3
| | |
* | | Added cWorld::ForEachEntityInBox()madmaxoft2014-09-031-0/+25
|/ /
* / Rewritten block entity loading.Mattes D2014-08-291-0/+10
|/ | | | | | 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.
* Code formatting fixes.Howaner2014-08-191-0/+1
|
* CheckBasicStyle checks the src folder as well.madmaxoft2014-08-141-10/+16
|
* Fixed style issuesTycho2014-08-061-3/+3
|
* Removed dependecy of redstone simulator on NoteBlockTycho2014-08-051-0/+1
|
* Refactored Redstone simulator not to depend on TNTEntity or DropSpenserENtity DirectlyTycho2014-08-051-0/+34
|
* Exported the beacon.Howaner2014-07-301-0/+33
|
* Merge branch 'master' into portalsTiger Wang2014-07-291-23/+17
|\ | | | | | | | | Conflicts: src/World.h
| * Added a queue for setting chunk data.madmaxoft2014-07-241-23/+17
| | | | | | | | Fixes #1196.
* | Speed improvements, crash fixes, & self-suggestionsTiger Wang2014-07-221-12/+7
| |
* | Merge remote-tracking branch 'origin/master' into portalsTiger Wang2014-07-221-46/+47
|\| | | | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Entities/Player.cpp src/Root.cpp src/World.cpp
| * Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-43/+43
| |
| * Style: Normalized spaces after if, for and while.madmaxoft2014-07-211-2/+3
| |
| * Fixed style: spaces after commas.madmaxoft2014-07-191-3/+3
| |
* | SuggestionsTiger Wang2014-07-211-3/+3
| |
* | Bug and crash fixesTiger Wang2014-07-201-3/+2
| | | | | | | | | | | | | | | | | | * Fixes end portals' solidity * Fixed crashes to do with multithreading and removing an entity from the wrong world * Fixed crashes due to bad merge * Fixed crashes due to an object being deleted twice * Simplified cWorld::Start() and added comments to configuration files
* | Merge branch 'master' into portalsTiger Wang2014-07-181-94/+125
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Normalized comments.madmaxoft2014-07-171-2/+2
| | | | | | | | | | 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.
| * Fixed spaces around single-line comments.madmaxoft2014-07-171-11/+11
| | | | | | | | There should be at least two spaces in front and one space after //-style comments.
| * Fixed basic whitespace problems.madmaxoft2014-07-171-14/+14
| | | | | | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
| * Changed BroadcastSoundEffect function to take floating pos.Howaner2014-07-131-2/+2
| |
| * Merge pull request #1154 from mc-server/trappedchestsTiger Wang2014-07-131-3/+5
| |\ | | | | | | 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-071-3/+5
| | | | | | | | | | | | | | | | | | | | | + Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
| * | Fixed style consistency.madmaxoft2014-07-101-59/+62
| | |
| * | Implemented support for forced chunk ticking.madmaxoft2014-07-101-2/+28
| |/ | | | | | | Fixes #1160.
| * Added generic entity-collecting.Mattes D2014-06-271-2/+2
| | | | | | | | | | Now any cEntity can be collected, not only cPickups. This should help PR #1098.
* | Merge branch 'master' of https://github.com/mc-server/MCServer into portalsTiger Wang2014-06-241-0/+6
|\|
| * Added asserts for cChunk::GetBlockEntity() coords.Mattes D2014-06-241-0/+6
| |
* | Merge branch 'master' into portalsTiger Wang2014-06-211-2/+7
|\| | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Entities/Entity.h src/Entities/Player.h
| * Nullify deleted pointers.archshift2014-06-191-0/+4
| |
| * Merge branch 'master' of github.com:mc-server/MCServerTycho2014-06-161-1/+3
| |
* | Fixed invalid iteratorsTiger Wang2014-06-211-23/+10
| |
* | Fixed order of initalisationTycho2014-06-121-2/+2
| |
* | Removed unnessicary indirection from Entity iterator listTycho2014-06-121-5/+5
| |
* | Portals animate and delay correctlyTiger Wang2014-06-121-41/+33
| |
* | 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
| * Redstone fixes and improvements [SEE DESC]Tiger Wang2014-06-051-0/+1
| | | | | | | | | | | | | | | | Haha, see desc. * Improved redstone speed through a marking dirty system. Only a select few devices are still continuously simulated * Fixed redstone crashing with recent piston changes
* | Portal improvements and suggestionsTiger Wang2014-06-101-1/+14
| |
* | SuggestionsTiger Wang2014-06-051-2/+5
| |
* | Removed use of autoTiger Wang2014-06-041-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into portalsTiger Wang2014-06-041-163/+52
|\|
| * Merge remote-tracking branch 'origin/pistonfixes'Tiger Wang2014-06-021-14/+16
| |\ | | | | | | | | | | | | Conflicts: src/Chunk.cpp
| | * Suggestions twoTiger Wang2014-06-011-7/+9
| | |
| | * More comments!Tiger Wang2014-05-291-5/+4
| | |
| | * Hopefully fixed piston duplication issuesTiger Wang2014-05-251-5/+6
| | | | | | | | | | | | | | | * Fixes #879 * Fixes #714
| * | Added comments, reformatted code.madmaxoft2014-05-291-3/+3
| | |
| * | Implemented style changesTycho2014-05-241-2/+2
| | |
| * | Fixed stylistic issuesTycho2014-05-211-2/+2
| | |
| * | Renamed cChunkBuffer to cChunkDataTycho2014-05-211-19/+19
| | |
| * | Fixed minor style issuesTycho2014-05-211-4/+4
| | |
| * | Fixed bug in setting metasTycho2014-05-101-18/+0
| | |
| * | Merge branch 'master' into chunksparsing/structsTycho2014-05-101-1/+19
| |\| | | | | | | | | | | | | Conflicts: src/Chunk.h
| * | Fixed bad mergeTycho2014-04-271-13/+9
| | |
| * | Merge branch 'master' into chunksparsing/structsTycho2014-04-271-14/+19
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Chunk.h
| * | | Implemented Chunk Sparsing with segmentsTycho2014-04-261-153/+33
| | | |
* | | | Implemented end and nether portalsTiger Wang2014-05-311-36/+38
| | | |
* | | | Cauldrons fillTiger Wang2014-05-291-1/+0
| |_|/ |/| |
* | | Merge branch 'master' into redstoneimprovementsTiger Wang2014-05-041-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/ClientHandle.cpp src/Entities/FallingBlock.cpp src/Mobs/AggressiveMonster.cpp src/Simulator/IncrementalRedstoneSimulator.cpp
| * | | Fixed a buffer overflow in cChunk:SetLight().madmaxoft2014-05-021-2/+2
| | |/ | |/| | | | | | | There are only half as many bytes for light than there are blocktypes.
* / | Redstone simulator now directly accesses cChunkTiger Wang2014-04-271-1/+19
|/ / | | | | | | | | | | * Redstone simulator performance improvements * Added return values to some functions * Minor fixes
* | Merge pull request #863 from mc-server/chunkysparsingMattes D2014-04-261-33/+97
|\ \ | | | | | | Chunky sparsing
| * | Implemented commentsTiger Wang2014-04-251-6/+6
| | |
| * | Fixed indentTiger Wang2014-04-241-1/+1
| | |
| * | Another small speed improvement?Tiger Wang2014-04-241-12/+2
| | |
| * | Implemented suggestionsTiger Wang2014-04-241-22/+6
| |/
| * Replaced all the .data() calls so the code compiles in VS2008Tycho2014-04-101-5/+5
| |
| * Maybe speed improvements?Tiger Wang2014-04-071-47/+28
| | | | | | | | | | * Use a single index to determine from when to begin copying data * Use heightmap to determine first nonair block
| * Attempt to fix errorsTiger Wang2014-04-071-2/+2
| |
| * Blocklight and skylight now compressedTiger Wang2014-04-071-24/+82
| |
| * Nibbletypes are compressedTiger Wang2014-04-051-15/+34
| | | | | | | | | | + Added nibble compression * Fixed an off by one
| * Speed and memory improvementsTiger Wang2014-04-041-61/+14
| | | | | | | | * Changed array to be continuous, so no more layer splitting
| * Merge remote-tracking branch 'origin/master' into chunkysparsingTiger Wang2014-04-031-1/+12
| |\
| * | Fixed some bugsTiger Wang2014-04-031-3/+5
| | | | | | | | | | | | | | | * Fixed undefined behaviour * Fixed compression failure
| * | Performance improvements and chunk flipping fixedTiger Wang2014-04-021-30/+32
| | |
| * | Sort of implementation of chunk sparsingTiger Wang2014-03-231-17/+92
| | | | | | | | | | | | | | | | | | | | | Issues: * Chunks are flipped * Slow/inefficient/badly coded * Only blocktypes are 'compressed'
* | | Merge pull request #909 from jfhumann/fixesMattes D2014-04-221-2/+2
|\ \ \ | | | | | | | | | | | | | | | | 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-2/+2
| | | |
* | | | Implemented the skeleton code for the beacon.STRWarrior2014-04-121-0/+2
|/ / / | | | | | | | | | There is no handling for the GUI. It can now check how big the pyramid is under the beacon.
* | / Fixed missing - that caused all neighbour lookups to go to the chunkmapTycho2014-04-081-1/+1
| |/ |/|
* | Merge pull request #838 from mc-server/lilypadsworktycho2014-03-301-1/+1
|\ \ | | | | | | Lilypads
| * | Fixed a potential crashTiger Wang2014-03-281-1/+1
| |/
* / Fixed chunk neighbor-getting for long distances.madmaxoft2014-03-271-0/+11
|/ | | | This fixes a server hang when teleporting to coords too far away.
* Add Lua Bindings for FlowerPotEntity.h and add documentation.Howaner2014-03-071-1/+1
|
* Add Flower PotsHowaner2014-03-071-0/+35
|
* g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-5/+5
|
* Removed an unused member variable from cChunk.madmaxoft2014-02-241-7/+0
|
* Merge pull request #697 from Howaner/SkullMattes D2014-02-191-0/+35
|\ | | | | Add Skulls/Heads to MCServer
| * Rename SkullEntity to MobHeadEntityHowaner2014-02-191-3/+3
| |
| * Add Heads completelyHowaner2014-02-181-0/+33
| |
| * Add Skulls/HeadsHowaner2014-02-171-0/+2
| |
* | Added cWorld:SetAreaBiome() API function.madmaxoft2014-02-181-0/+32
|/ | | | Fixes #675.
* Initial ChunkStay code.madmaxoft2014-02-081-1/+0
|
* Changed Signiture of OnUpdateTycho2014-02-021-4/+10
|
* Changed pointers to referencesTycho2014-02-011-1/+1
|
* Changed signitures of Several BLockHandler MethodsTycho2014-02-011-2/+4
| | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
* Basic command block implementationandrew2014-01-181-0/+34
|
* Disabled excessive entity-related logging in Debug mode.madmaxoft2014-01-161-2/+15
|
* fixed bad mergeTycho Bickerstaff2013-12-221-4/+0
|
* merged in changesTycho Bickerstaff2013-12-221-0/+9
|\
| * Merge branch 'master' of github.com:mc-server/MCServerTycho Bickerstaff2013-12-221-0/+16
| |\
| * | Chunk is now warnings cleanTycho Bickerstaff2013-12-211-3/+2
| | |
* | | merged in warnings changesTycho Bickerstaff2013-12-221-11/+4
| |/ |/|
* | Implented BroadcastParticleEffectSTRWarrior2013-12-221-0/+16
|/
* Fixed the rest of constructor reorders.madmaxoft2013-12-201-20/+21
|
* Attempt at fixing cChunkDef::Height signedness.madmaxoft2013-12-201-6/+1
|
* This adds the cWorld::BroadcastEntityEffect and cWorld::BroadcastRemoveEntityEffect functions.STRWarrior2013-12-151-0/+32
|
* Implemented note block playing and fixed wireTiger Wang2013-12-141-0/+32
| | | | Game of Thrones music in Minecraft, here I come!
* Improved redstone loading performanceTiger Wang2013-12-131-2/+10
|
* Fixed QueueSetBlock not sending to client changesTiger Wang2013-12-131-2/+1
|
* Redstone data is now loaded on chunk loadTiger Wang2013-12-131-0/+6
|
* Fixed warning unchecked enum value at Chunk.cpp line 841worktycho2013-12-091-2/+4
|
* Merge branch 'master' of https://github.com/mc-server/MCServer into fixesnfeaturesTiger Wang2013-12-081-1/+1
|\ | | | | | | | | | | | | Conflicts: src/Bindings/Bindings.cpp src/Bindings/Bindings.h src/Blocks/BlockHandler.cpp
| * Moved bindings-related to a Bindings subfolder.madmaxoft2013-12-081-1/+1
| | | | | | | | Ref.: #407
* | Added basic ender chestsTiger Wang2013-12-071-0/+2
| | | | | | | | Note that they just mirror chests now, so no per player inventory.
* | Renamed animation functionTiger Wang2013-12-071-2/+2
| | | | | | | | | | Renamed BroadcastPlayerAnimation to BroadcastEntityAnimation. Not just players can have animations, you know.
* | Fixed duplication glitch with QueueSetBlockTiger Wang2013-12-061-5/+26
|/ | | | | | | If a coordinate was queued, and then the block there was broken, it would reappear: double items! Also now just sets meta if previous and current blocktypes matched.
* Fixed an error in cChunk's block ticking.madmaxoft2013-12-041-2/+2
| | | | Absolute coords were passed to a handler expecting relative coords.
* Changed cBlockHandler->OnUpdate() to use cChunk directly.madmaxoft2013-11-301-1/+18
|
* Fixed VC2008 compilation, normalized include paths.madmaxoft2013-11-271-1/+1
|
* Fixed some of tiger's derpyness.Alexander Harkness2013-11-271-1/+1
|
* Fixed loads more of them.Alexander Harkness2013-11-261-1/+1
|
* Attempt to fix compilationTiger Wang2013-11-241-2/+2
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-7/+51
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+2732