summaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-20Mark UNREACHABLE with intrinsicsTiger Wang18-56/+27
2021-02-11Clang 7?Tiger Wang2-17/+0
2021-02-11Fix march=native not being enabledTiger Wang1-2/+2
* LINUX doesn't exist apparently, use UNIX instead + Add some platform-specific logic to determine whether to use mcpu or march - Remove duplicated compile option comments + Add STATUS level to messages
2021-02-10MSVC warningsTiger Wang3-48/+0
2021-02-08CompositeChat: use variants12xx123-281/+107
2021-02-07Explodinator performance optimisationsTiger Wang3-133/+133
Thanks @lixfel (#4246)
2021-02-07Explodinator: fix divide by zeroTiger Wang3-14/+14
2021-02-07Fix #5118Tiger Wang7-558/+454
2021-02-06Adds playerlist header and footer broadcasting (1.8-1.13)dImrich14-310/+372
2021-01-28Creative mode hits immediately disappear boats (#5117)Simerson1-0/+10
Instant destroy boat in creative mode + boat one-shot in creative mode + Add boat instant destroy in creative + Instant break boat in creative
2021-01-26Fix debug macro situation (#5114)Tiger Wang28-113/+95
Use the standard NDEBUG.
2021-01-22Redstone: inline -> staticTiger Wang21-89/+89
2021-01-22End crystal placement (#5112)Damián Imrich4-7/+92
* End crystal placement * End crystal placement - fixed error and added some comments * Removed unused includes * Update src/Items/ItemEndCrystal.h Co-authored-by: Alexander Harkness <me@bearbin.net> * End Crystal placement, early-return pattern enforcement * End crystal Item finish? * Small changes Fixed a crashbug in ender crystal destruction. According to vanilla 1.16 testing, end crystals don't place if any entity intersects the box, not just other end crystals. Check return value of SpawnEnderCrystal. Add header in SeeMake. Cafe Stile Redux. * The stylechecker relies on CMakeLists * There is another Co-authored-by: Alexander Harkness <me@bearbin.net> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2021-01-22Implementation of totem of undying behaviour (#5111)Damián Imrich3-0/+56
* notchian totem of undying * ... * .... * Update src/Entities/Pawn.cpp Co-authored-by: Alexander Harkness <me@bearbin.net> * DeductTotem func * fixed build errors * Added myself to CONTRIBUTORS * Small changes Co-authored-by: Peter <peter@cassoviacode.com> Co-authored-by: Alexander Harkness <me@bearbin.net> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2021-01-19MultiVersionProtocol: fix two crashesTiger Wang5-93/+70
First one: add missing exception handler in ProcessProtocolIn Second: remove faulty logic dealing with incomplete packets. `a_Data = a_Data.substr(m_Buffer.GetUsedSpace() - m_Buffer.GetReadableSpace());` was incorrect; it attempted to apply a length derived from m_Buffer to an unrelated a_Data. Its purpose was to give cProtocol the data the client sent, minus initial handshake bytes. However, we can use the knowledge that during initial handshake, there is no encryption and every byte can be written unchanged into m_Buffer, to just call cProtocol with a data length of zero. This will cause it to parse from m_Buffer - wherein we have already written everything the client sent - with no a_Data manipulation needed. Additionally, removed UnsupportedButPingableProtocolException (use of exception as control flow) and encode this state as m_Protocol == nullptr, id est "no protocol for this unsupported version", which is then handled by cMultiVersionProtocol itself.
2021-01-18cChunk: don't inherit from cChunkDef (#5106)Tiger Wang9-71/+43
2021-01-16Fixed horse UI desync when taking saddle out (#5108)wereii1-0/+3
due to overlooked fallthrough
2021-01-12Clarify cClientHandle, cPlayer ownership semanticsTiger Wang21-1119/+498
+ 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.
2021-01-11Convert most calls to blocking GetHeight/GetBiomeAt to direct chunk accessesTiger Wang14-88/+204
* Hopefully fixes #5094
2021-01-11zlib -> libdeflate (#5085)Tiger Wang67-1289/+1218
+ Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
2021-01-02Fix potential destruction crashes (#5095)Tiger Wang33-460/+405
* 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
2020-12-30Command Blocks: fix a crashTiger Wang1-3/+3
* Don't store a temporary
2020-12-26Avoid an std::list in StreamNextChunkTiger Wang1-22/+22
2020-12-26Streamline ClientHandle chunk send a littleTiger Wang2-38/+4
- Removed RemoveFromAllChunks. On destruction cWorld::RemovePlayer calls RemoveClientFromChunks already, and there's no need to manually clear the chunk lists.
2020-12-26Don't prematurely exit "downloading terrain" screen on joinTiger Wang1-1/+0
- Remove leftover SendPlayerMoveLook from #1500
2020-12-26Make SetAllData's MarkDirty() the chunk's responsibilityTiger Wang2-7/+6
2020-12-26Avoid a gratuitous dirty when loading chunks with entitiesTiger Wang2-15/+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.
2020-12-26Silverfish: correct search cubeTiger Wang1-1/+1
2020-12-26Daylight Sensor: remove redundant delayTiger Wang1-3/+0
Daylight Sensors are already always ticked.
2020-12-26ViewDistance: unsigned -> signedTiger Wang8-39/+26
2020-12-22Replace custom ChunkCoordinate with cChunkCoordsTiger Wang2-20/+6
2020-12-22unique_ptr<cChunkMap> to plain memberTiger Wang6-166/+144
2020-12-21Prepare for 1.15+ (#4856)Tiger Wang26-66530/+72531
+ Add type-safe container for states * Split registry Blocks into BlockTypes, BlockStates so the block types enumeration can be #included without too much penalty * Ensure Registry uses type-safe container
2020-12-21Improve Enderman targetingTiger Wang2-15/+17
* Fix look angle checks * Do LOS trace from eye-height
2020-12-21Monsters: improve targetingTiger Wang8-63/+92
* Replace DoWithNearestPlayer with bounding box search (avoid iterating through all players in world). * Do line-of-sight checks from eye-to-eye. + Added LOS and LOS lost timer to target lost checks, in addition to distance.
2020-12-21Chunk: use FAST_FLOOR_DIVTiger Wang3-17/+6
2020-12-21Improve Silverfish searchTiger Wang2-33/+71
* Start from the inside out, don't always look at the entire search space by bailing out randomly
2020-12-21Comment and code style fixTiger Wang6-48/+47
+ Add static keyword - Don't capture everything in lambda
2020-12-21Remove unused Temporary namespaceTiger Wang8-9/+1
- Remove unused temporary mapping generation at startup
2020-12-20Enable LOS checks for Hostile Mobs.the1robert1-1/+1
2020-12-19Trace to surface of cube.KingCol131-6/+6
2020-12-19New pull request for daylight sensor (#5066)Aiden Neill8-54/+184
* Fixes #4918 Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-12-18Added dimension check to nether portal (#5068)cflep1-0/+6
+ Added dimension check to nether portal
2020-12-18Ignore CanFly flag sent by the clientmathiascode3-9/+4
2020-12-18Warnings improvementsTiger Wang28-207/+217
* 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
2020-12-18Horsies: don't always broadcast metadataTiger Wang1-1/+10
2020-12-05Fixes incorrect var name in RsaPrivateKey.cppAzurethi1-1/+1
Fixed an incorrect variable name in src/mbedTLS++/RsaPrivateKey.cpp : cRsaPrivateKey::Decrypt.
2020-12-01Light the nether portal when switching dimensions (#5062)cflep1-1/+1
* Fixes #5007
2020-11-28BlockInfo: float-equal for Clang onlyTiger Wang1-0/+4
2020-11-28Lilypads: add missing boundary checkTiger Wang1-2/+9
2020-11-28Fix lilypad displacing block above (#5056)Derek Qu1-39/+61
* Fix lilypad displacing block above Side fixes: * Fix lilypad displacing half slabs * Fix lilypad being placed on flowing water and non-water blocks in general Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-11-26Note Block Left Click Fix V2 (#5052)Derek Qu3-1/+46
+ Add function to play note block on left click
2020-11-25Added magma block contact damage (#5055)Aiden Neill5-4/+58
* Added magma block contact damage * Fireproof entities do not take damage from magma * Fire resistance prevents magma damage * No magma damage when hovering over magma block
2020-11-23Adding new monster types to enum and saving/loading for easier future implementation (#4941)12xx1217-447/+1553
* 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>
2020-11-14HTTPServerConnection: more robust error handlingTiger Wang1-21/+18
* Fix passing a nullptr to downstream code when the request was malformed + Reset the connection on errors * Fixes #5029
2020-11-14Fix flower and foliage generation (#4723)mBornand4-100/+162
* 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>
2020-11-13Some const and inheritance correctness (#5014)12xx122-8/+5
* Some const and inheritance correctness * Devirtualise SendBlockTo(Vector3i) Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-11-11changing cComposite Chat to newer c++ standart (#5028)12xx122-63/+65
* upgraded to new C++ for loops and fixed errors * readded delete instruction * now using unique ptr * added test for text only (that was causing an error for me) * using unique ptr constructor * added move constructor and deleted copy constructor * fixed deconstuctor http prefixes are constexpr and std::string_view * fixed whitespace Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-11-06Add correct implementation of crops (#4802)0ddlyoko8-188/+213
* [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>
2020-11-06Ender Crytal Fix and report proper cmake file for luabindingscheck fail (#5017)12xx1212-41/+90
* 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>
2020-11-06Players are no longer kicked when clicking on bedrock (#5023)Tiger Wang5-104/+57
* Players are no longer kicked when clicking on bedrock * Fixes #5022
2020-11-02Rein in light spread by correcting falloff valueTiger Wang1-26/+2
* Fixes #5018
2020-11-02Added new flowers on bonemeal use (#5011)12xx122-35/+169
+ Added new biome-dependent flower placement * Update planter algorithm Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-10-29Add beam target, configurable base visibility to Ender Crystals (#5010)12xx1212-6/+177
* Fixes #4990 Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-10-24Remove BLOCKENTITY_PROTODEFTiger Wang21-153/+10
2020-10-24TNT Changes (#4970)KingCol134-49/+80
+ Make TNT drop pickups, change a few comments. + Give each ray random intensity, instead of each explosion. * Use direction instead of destination, rewrite for pairs of edges.
2020-10-18cBlockInfo: further cleanup (#5001)Tiger Wang3-1154/+1062
* cBlockInfo: further cleanup + Use switch statements instead of lookup in dynamically initialised arrays - Remove some deprecated bindings * Update Stubs removing references to BlockInfoArray
2020-10-15added const correctness on some functions in cPlayer (#4999)12xx122-4/+7
Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-10-12Remove debug output on PieceStructuresGen.cpp (#4984)12xx121-21/+19
- Remove debug output on PieceStructuresGen.cpp - Removed Stopwatch import Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-10-11Update comments and code for Load/SaveOneChunk so they match (#4992)Alexander Harkness2-5/+5
Fixes #4991
2020-10-11Simple end gen (#4973)NiLSPACE2-86/+89
* Fixed current end generator * Implemented new simplified end generation which includes a void between the main island and other islands * Fixed basic style * Hopefully fixed clang errors.
2020-10-11Adding Silverfish Spawning Blocks (#4946)12xx128-13/+187
* added breaking, spawning, animation * checkstyle * added undocumented API symbols * added changes suggested by @peterbell10 * added natural ore like generation * fixed spawning two silverfishes * fixed clang * fixed clang try 2 * updated comment unified offset * final clang fix * added spawning for more silverfishes if one was damaged * fixed spawning on one hit kill * fixed spawning on one hit kill fixed spawning by potion damage * fixed clang * fixed broken build * fixed broken build * I should read the error message properly fixed build now? * added small changes suggested by @peterbell10 Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-10-10Adding more customize options to mob spawners and improving the way to look for surrounding entities (#4955)12xx124-83/+123
* 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>
2020-10-10Anvil fixes (#4976)KingCol133-49/+63
* Rewrite to use wiki target/sacrifice terminology. * Fix negative damages. * Prevent repairing if output matches target. * Make target and sacrifice const. * Pre-PR tidy-up * Keep m_MaximumCost updated.
2020-10-09Adding wolf breading and moving breeding functionality to cMonster (#4951)12xx129-233/+352
* added wolf breading * mpoved breeding to monster * checkstyle * fixed my IDE "helping" * removed magic number and fixed faster aging * added flooring to age manipulation * fixed copiler error * fixed typo * moved tps to Defines.h * removed the TPS constant from the lua API exposure * added inline constexpr added explanation * fixed broken build * "fixed" build Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-10-09added check if the digger is a nullptr (#4981)12xx123-0/+9
Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-10-09Beacon now checks for players in surrounding square (#4972)12xx121-21/+14
* Beacon now check for players in surrounding square not every player * added proper BoundingBox Co-authored-by: Alexander Harkness <me@bearbin.net> * one symbol to change everything one symbol to break the whole build Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-10-09Add default value nullptr for parameter a_Digger and added digger toLukas Pioch1-2/+2
cWorld:DigBlock in lua api
2020-10-09Include sys/select.h on non-glibc Linux platforms (#4977)Bart Ribbers1-0/+4
Otherwise fd_set will be unknown for example on Musl libc systems
2020-10-08Merged OnBreak with OnPlayerBreak (#4967)12xx1222-87/+141
Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell10143-861/+872
* 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>
2020-10-04Fixed current end generator (#4968)NiLSPACE2-44/+2
2020-10-03Remove SetProperty(...cPlayer)Tiger Wang15-143/+99
Enchantment table, anvil windows are already opened one per-player.
2020-10-02Fix instant mining of blocks not being recognised, tweak anti-cheat (#4938)KingCol136-49/+109
* Tried to fix a small issue... Ended up rewriting a bunch of god awful, opaque code with no source and no sense. Who names a function GetPlayerRelativeBlockHardness??? It's gone now. We're safe again. * Testing anti-cheat. * Tidy up debug logging. * Remove empty member declaration. * Rewrite GetDigSpeed slightly for better readability. * GetMiningProgressPerTick now returns 1 when instantly mined. Fixed hasily written typo. * Comment style and typo fixes.
2020-10-01Enchanting table shows detail on hover. Enchanting is deterministic. (#4937)KingCol1313-109/+213
* Use lapis for enchanting, subtract correct number of levels, ClientHandle now selects from pregenerated list. Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-30C++17 stuffTiger Wang3-9/+2
2020-09-29Doors: check power & toggle correctlyTiger Wang2-32/+63
* Fixed upper half ignoring its updates * Fixes #4945 * Fixed doors playing sound effects when they didn't actually toggle
2020-09-29HandleEnchantItem: use a lambda (#4944)Tiger Wang1-5/+8
2020-09-28Fortune Drops (#4932)KingCol1313-72/+149
+ Implemented and standardized all clamped discrete random drops. + Changed cItems Add from push_back to emplace_back. Implement fortune for crops. + Enabled hoes to be enchanted with efficiency, silk touch and fortune. Made leaves, gravel and crops affected by fortune. Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-28Enchanting consumes lapis, removes correct number of levels (#4934)KingCol131-11/+51
* Use lapis for enchanting, subtract correct number of levels. * Enforced distancing regulation better than our government. Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-28Plugin reload <plugin_name> feature (#4942)[IPSA] Chris de Claverie4-26/+75
+ Add `reload <pluginname>` * Fixes #365 Co-authored-by: Alexander Harkness <me@bearbin.net> Co-authored-by: pwnOrbitals <c.de-claverie@pm.me> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-27Fixing Mob spawner behaviour (#4930)12xx126-143/+137
* 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>
2020-09-25Remove unused Temporary namespaceTiger Wang4-717/+2
2020-09-25Do not call into things we don't own in destructorsTiger Wang9-55/+35
- Remove improper accesses in cChunk destructor * Fixes #4894
2020-09-25Grass spread: check chunk & light validity correctlyTiger Wang1-2/+2
2020-09-25Fix the build. Merge conflict between two PRs (#4936)Alexander Harkness1-1/+1
2020-09-25Deleted BiomeDef.h and ChunkDef.h from Globals.h (#4885)KingCol1324-22/+25
* 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.
2020-09-25Put phonograph on right part of visual spectrumTiger Wang2-1/+2
2020-09-25BlockEntity: clarify ConvertToPickups behaviourTiger Wang1-1/+1
2020-09-25Unify block entity pickup conversionTiger Wang77-211/+178
- Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
2020-09-25Small cleanup in JukeboxesTiger Wang2-13/+18
* Fixed creative players not tracking stats, and the code trying to "place" a record when they used one
2020-09-25Fix cItems::AddItemGrid adding empty itemsTiger Wang1-3/+6
2020-09-24Fix ice behaviour in world (#4927)12xx124-3/+89
+ Added proper ice melting under light influence Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-23TABS OUT OF BED! TABS IN THE CORRIDORS!Tiger Wang2-2/+2
2020-09-23Limit fortune level, style fixesTiger Wang8-40/+45
2020-09-22Added dtEnvitonment to player damage text (#4925)12xx121-0/+1
+ Added dtEnvironment to string conversion + Added dtEnvironment to player damage strings
2020-09-21added dtEnvironment to string conversion12xx121-0/+2
2020-09-21Implement redstone quasi-connectivity (#4889)Tiger Wang5-28/+76
2020-09-21Implement Dropspenser Hook (#4903)KrystilizeNevaDies7-4/+39
* Implement Dropspenser Hook Implemented a hook for dropspensing. HOOK_DROPSPENSE When plugin callback returns true then dropspense is cancelled * Update src/Bindings/PluginManager.h Co-authored-by: peterbell10 <peterbell10@live.co.uk> * Create OnDropSpense.lua * Fix indent * Forgot include Forgot to include the plugin manager. Although now im confused why it was working on my end without including the plugin manager * Update plugins.lua with dropspense * fix typos * haha notepad++ go brr Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-09-21Trapdoor crash fix (#4890)theophriene1-6/+28
* [WIP] Trapdoor crash fix * Fixed code style * Updated commentary in the code * Updated commentary in the code again * Fix copy-past error * Fix another copy-past error! * Fixed orientation & clipping * Remove redundant clause * Some code cleanup * Fixed compilation error * Moved logic into helper function, slightly reorganised the caller * Fixed comments * Fixed comments, what an idiot * Added to CONTRIBUTORS * Fixed bitwise error * Use cYawRotator * Reduce indent Co-authored-by: Elias Thomson <fiv.pids@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-21Synchronously save chunks on server shutdown (#4900)Alexander Harkness3-1/+17
+ Synchronously save chunks on server shutdown. Fixes #4884
2020-09-20Implement fortune for ores, glowstone and sea lanterns (#4897)KingCol135-19/+48
* Implemented fortune for ores, glowstone and sea lanterns (but nothing organic or flint). * Cleanup printf * Stopped playing golf, gave the Camels a FirstHump and moved the FortuneDropMult comment. Thanks for the review :). * Got rid of FortuneDropMult and replaced with Peter's massive optimization/simplification. * Fixed default lapis max droprate (8 -> 9). * Clamp max drops for non-redstone ores to 10. * Comment justifying the clamp.
2020-09-20Cauldron: backport "use" behaviour to 1.12 (#4902)Tiger Wang1-10/+20
* Cauldron: backport "use" behaviour to 1.12
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang112-2101/+1652
* 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>
2020-09-20Added armor and shulker box cleaning (#4875)12xx121-2/+57
+ Added armor and shulker box cleaning
2020-09-20Added end portal and enchanting table block entities12xx1222-321/+657
2020-09-19Fixed missing case: in entity damaging crashin the server (#4899)12xx121-0/+1
* made snow golems not crashing the server anymore * changed damage type to environment * updated damage in API dopcumentation and changed enderman damage type * removed incidental d in the code * added dtEnvironment to ArmorCoversAgainst Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-09-19Changing jungle trees a bit (#4823)12xx121-12/+28
* switch range on jungle tree generation and renamed a confusing variable * changed two numbers to match vanilla behaviour * made jungle trees closer to vanilla behaviour - matched variable names to new checkstyle - made branch generation independent from noise at block position * replaced random provider with Noise * implemented changes suggested by peterbell10 * changed the way to determine the size of the leaves on branches Co-authored-by: peterbell10 <peterbell10@live.co.uk> Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: peterbell10 <peterbell10@live.co.uk> Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-09-19Fix silk-touching glowing redstone (#4893)KingCol132-1/+7
* Add src/BlocksRedstoneOre.h to CMakeLists.txt * Fixed silk touch pickaxe not dropping redstone ore (and dropping null item instead)
2020-09-18Style, no need to tag struct with sTiger Wang1-9/+9
2020-09-18Remove unused ServerPort argumentTiger Wang5-21/+20
2020-09-18Add State enum to protocolTiger Wang8-62/+55
2020-09-18Remove unused ServerPort memberTiger Wang2-3/+1
2020-09-18Cleanup Protocol classesTiger Wang5-49/+46
* Visibility, static, ordering changes
2020-09-18Adding Generator For Single Piece Structures (#4830)12xx124-0/+275
* the beginning of a magnificent work - added basic files and classes without functionality * fixed checkstyle * added imports * moved imports * - Adding SinglePieceStructureGen - Adding a cPrefabChestStructure to generate Chests with contents - Added the options and calls to the ComposableGenerator * moved Globals to .h file * removed the chest thingy from the code (for now) * Update SinglePieceStructureGen.cpp * readded whitespace * renamed to SinglePieceStructuresGen for consistency added new classes to test * fixed small things (mostly style and cleanup) removed loottables * added small changes suggested by madmaxoft * small change to documentation * added check for allowed biomes * check only the biome of the origin position * fixed error on IsBiomeAllowed * added new cubesets * updated structures for with sponging * updated biome names * updated metadata to prevent crashing removed debug output * updated structures with sponging * added sponging to deserterWell to make it disappear in sand * small change in meta * rename DesertTemple -> DesertPyramid * minor style changes Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-09-17Fixed leaves and wheat not breakable with piston (#4882)Elias Thomson1-1/+4
* Fixed leaves and wheat not breakable with piston * Fixed alpha-sort * Add beetroots Co-authored-by: Elias Thomson <fiv.pids@gmail.com>
2020-09-17Fixed snow golems and added documentation to damage type and added damage type for damage from environment to mobs (#4877)12xx124-4/+5
* made snow golems not crashing the server anymore * changed damage type to environment * updated damage in API dopcumentation and changed enderman damage type * removed incidental d in the code Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-09-17BlockHandler: no dynamic allocation (#4862)Tiger Wang4-226/+538
* BlockHandler: no dynamic allocation
2020-09-17Add some const qualifiers to functions (#4874)12xx124-11/+11
* add some const qualifiers to functions * added changes suggested by @tigerw Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-09-15Fixed doors not breakable by piston (#4869)Elias Thomson1-0/+5
Co-authored-by: Elias Thomson <dev@eliasthomson.com>
2020-09-13Rail: avoid invalid game states (#4864)Tiger Wang1-12/+10
+ Check CanBeAt Ref: #4859 Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-09-13Beds: derestrict clicking block face (#4863)Tiger Wang1-20/+8
Ref: https://github.com/cuberite/cuberite/issues/4860#issuecomment-691545904
2020-09-12Reverse order of ChunkSender priorities (#4858)Tiger Wang7-34/+31
* Reduces confusion when using overloaded operator< and priority_queue Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-09-12Use tracing for explosions (#4845)Tiger Wang22-299/+530
* 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>
2020-09-10fixed missing include for FreeBSD. (#4852)SatoKaito1-1/+8
2020-09-05Add more statistic tracking (#4837)12xx1218-6/+88
+ Added possible 1.8 stats + Added stat tracking for 1.8.2 + Added stat tracking for 1.9 + Added the breed cow achievement Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-09-05Use pitch lookup in noteblock block entity (#4826)12xx125-47/+188
- 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>
2020-09-05WriteConsoleInput can return FALSE when running as servicTiger Wang1-6/+2
2020-09-05Reformat messages in NonCtrlHandlerTiger Wang1-12/+16
2020-09-05Streamline startup sequenceTiger Wang13-681/+737
* Clean up cRoot & main * Move some OS-specifics into OSSupport
2020-09-03Rename AddEntityIfNotPresent to AddPlayerTiger Wang3-17/+7
+ Always make a chunk for the player to go into * Fixes #4847
2020-08-29Entities can fail to add into a chunkTiger Wang3-11/+10
- MoveEntityToNewChunk, AddEntity can fail. Ensure we handle these cases correctly
2020-08-29Unused/duplicate function cleanupTiger Wang5-29/+2
* FaceIntToBlockFace in 1.8/1.9 protocol merged - Removed undefined permissions stuff in Player header
2020-08-28Remove redundant DoWithChunkAt in chestsTiger Wang2-12/+6
2020-08-28Minor style fixesTiger Wang3-1/+13
2020-08-28FastNBTWriter: AddString now uses string_viewTiger Wang2-5/+5
* Avoids an allocation for all those string literals we pass in
2020-08-28Broadcaster: don't loop over all entities to broadcast one's positionTiger Wang1-1/+1
* Use ForClientsWithEntity
2020-08-28Save enderchest block entities to storageTiger Wang5-71/+38
+ Add EnderChest saving, as Vanilla does - Remove CreateBlockEntities. Storage should save & load everything so looping over chunk data is not needed
2020-08-28WorldStorage: Removed unused callback parametersTiger Wang3-50/+13
2020-08-28Clean up pickup collection to use ForEachEntityInBoxTiger Wang3-54/+22
2020-08-28Chunk: Make StayCount/AlwaysTicked unsignedTiger Wang1-3/+2
2020-08-28Simplify MoveEntityToNewChunkTiger Wang2-8/+4
- 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
2020-08-28Clean up GenerateChunk/TouchChunkTiger Wang6-128/+9
- Remove TouchChunk - Remove unused bool return value in GenerateChunk - Remove ShouldGenerateIfLoadFailed
2020-08-28ChunkMap: do not wantonly make empty chunksTiger Wang5-245/+133
- Removed calls that constructed an empty chunk, found it was invalid, and did nothing with said chunk Partially addresses #2324
2020-08-28Remove unneeded MarkDirty, SendToClients parameters of SetMetaTiger Wang10-51/+32
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
2020-08-281.13+: Send length-prefixed server Brand stringTiger Wang2-18/+4
Ref: 5176c22656a8fb5485ab04100daa93bb761bb8f6
2020-08-27Removed constMattes D1-2/+2
2020-08-27Changed tree-growing functions in cWorld to use Vector3i coords.Mattes D4-54/+168
2020-08-27Added a "reloadweb" command for reloading web admin config.Mattes D1-1/+9
2020-08-25Fix doors and trapdoors closing on server restartPeter Bell2-2/+6
2020-08-21ChunkDataSerializer: don't repeatedly mallocateTiger Wang5-171/+216
+ Store an instance of the class, the way it seems it is meant to be used.
2020-08-21CompressPacket: reserve CompressedSize, not the uncompressed sizeTiger Wang1-3/+3
+ Assign the length data to a_CompressedData to overwrite it, mirroring the behaviour of cByteBuffer::ReadAll
2020-08-21StatSerializer: use std::moveTiger Wang2-7/+7
2020-08-21Make StatSerializer a namespaceTiger Wang3-95/+81
2020-08-21Consolidate various Chunk serialisers under one roofTiger Wang2-141/+43
* Merge most into WriteSectionDataSeamless
2020-08-21Remove unused variables in ChestEntity/BlockEntityWithItemsTiger Wang2-4/+0
2020-08-21Made cProtocol::Version, EntityMetadata enums less verboseTiger Wang11-273/+273
2020-08-21Remove complex templated SendBlockChangeTiger Wang4-94/+48
If we're sending enough blocks to have virtual calls be an issue, we should resend the chunk instead.
2020-08-21Replace PowerData struct with PowerLevelTiger Wang25-189/+171
* We no longer need to track the powering block with the removal of SolidBlockHandler. PowerLevel is now just an unsigned char
2020-08-21cChunk's deleted copy constructor needs constTiger Wang1-1/+1
2020-08-21Remove level of indirection in cChunk storageTiger Wang4-87/+67
- No more unique_ptr storage
2020-08-21Remove std::make_unique from redstone handler creationTiger Wang28-545/+494
2020-08-21Minor typo fixesTiger Wang2-18/+20
* Also DeMorgan'd Emerald ore condition
2020-08-19Adding block entity transmission to 1.13 (#4829)12xx122-1/+38
+ Adding block entity transmission to 1.13 + Added HandlePacketSetBeaconEffect Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-08-19Add statistics upgrade mappingTiger Wang2-13/+122
2020-08-19Add FileStream wrapperTiger Wang3-1/+43
2020-08-19Add statistics palette for 1.15 & 1.16Tiger Wang4-6/+171
2020-08-19Add Statistics and Achievements for newer Network standards12xx1231-507/+1047
2020-08-12Add enhanced Gold generation in Mesa-Type Biomes (#4821)12xx123-0/+48
* added enhanced gold generation in mesa-type-biomes * fixed typo in comment * added enhanced gold generation in mesa biomes - fixed small checkstyle errors Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-08-10Update FinishGen.cpp12xx121-1/+0
2020-08-10small issues addressed in #4817 fixed because was merged to fast12xx122-10/+2
2020-08-09Fix enderchest placement rotationion2321-2/+2
2020-08-09Adding Emeralds to generation (#4817)12xx123-1/+55
* Adding Emeralds to generation * fixed crash * fixed documentation and changed function name to match others * forgot to change the name in the doc * removed debug output - sorry build servers Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-08-09Fix arrows preventing block placemention2322-0/+12
2020-08-08Remove the redstone solid block handlerTiger Wang35-568/+731
- Remove cSolidBlockHandler * Functionality now integrated into simulator dispatcher * Fix door double open/close issues, arisen due to the top/bottom halves getting different power + Small migration to block states for redstone wire
2020-08-08const-ify some Chunk functionsTiger Wang2-11/+11
2020-08-06Revert "Hotpatch optional for macOSX builds on buildserver"Alexander Harkness1-4/+4
This reverts commit 5e3f51f5ff39ac7219f1f0fcbc27340949f95ade.
2020-08-05Update bed behavior (#4545)Mat2-7/+30
2020-08-05imprementing plugin message to send server brand (#4786)12xx121-2/+6
* fixed issue #4773 Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-08-05Fix big tree ring radius calculations. Ring radius now stays within range.Alexander Harkness1-2/+2
2020-08-05edit commentmBornand1-1/+1
2020-08-05update commentmBornand1-1/+1
2020-08-05correct errormBornand1-3/+1
2020-08-05correct errormBornand1-1/+3
2020-08-05large conifers sapplings growmBornand1-1/+6
2020-08-05error in comment endmBornand1-1/+1
2020-08-05add Large conifersmBornand3-18/+288
2020-08-05WakeUpSimulators correct Y computationTiger Wang2-7/+12
+ Add Y validity check to SimulatorManager
2020-08-05Delete unreferenced variableTiger Wang1-1/+0
2020-08-05Adjust incorrect palette inclusionsTiger Wang3-3/+3
2020-08-05Delete redundant std::move in World loaderTiger Wang1-14/+14
2020-08-05Hotpatch optional for macOSX builds on buildserverAlexander Harkness1-4/+4
2020-08-04Code cleanup in cChunk.PlaceBlock() for checking if BlockEntity should be spawned (#4812)12xx121-27/+4
* Changed switch for call in cChunk for call to function cBlockEntity to remove unnecessary confusions while implementing new BlockEntities
2020-08-04Simply Y-check in door handlerTiger Wang1-1/+1
2020-08-04Continue with placement when using iron doorsTiger Wang1-2/+4
2020-08-04Door drops respect player gamemodeTiger Wang2-12/+11
* Rely on caller to handle converting to pickups, all OnBroken needs to do is to maintain the unity of the door * Fixes #4797 * Fixes #4796
2020-08-04Corrected wakeup sequencesTiger Wang10-139/+70
* 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
2020-08-04OnBroken/OnPlaced are for entity actionsTiger Wang16-260/+92
* Call OnPlaced/OnBroken in PlaceBlock/DigBlock - Remove unused Placing/Breaking handlers * Have the blockhandler's Check handle neighbour updating, instead of QueueTickBlockNeighbors
2020-08-04Do not GetBlock individually in simulatorsTiger Wang7-75/+93
* Have the simulator manager get the block and pass it on + Add new overload for WakeUp, called when the manager wakes face positions
2020-08-02Use std::queue for the block tick queueTiger Wang2-11/+9
2020-08-02Remove unused block tick related cChunk functionsTiger Wang4-81/+17
2020-08-02Always use relative coordinates in AddBlockTiger Wang21-228/+136
+ Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available
2020-08-02Add WakeUp/AddBlock distinctionTiger Wang20-120/+140
* WakeUp is for singular changes (block breaking for example). The simulator should check blocks around the position and discover other affected blocks as it sees fit * AddBlock is for when you know a whole area is to be updated; chunk loading, or area wakeups for example + Prepares for correct handling of destroyed blocks after removal of SolidBlockHandler in the redstone simulator
2020-08-02Do not impose redstone wakup penalty for all blocksTiger Wang1-19/+6
2020-08-02Delegate simulator wakeup to cChunkTiger Wang2-12/+12
2020-08-02Ensure updating relatives calls the correct base caseTiger Wang9-14/+15
* Fixed recursive base unintentionally scheduling the origin position for an update because it called the wrong function
2020-08-01Replaced cpp14::make_unique<> with std::make_unique<>.Mattes D34-253/+248
2020-08-01Added HandleCraftItem call to ShiftClickedResult to make sure achievements are awarded (#4791)12xx121-0/+3
2020-07-28Correct Serialise393/477 version annotationsTiger Wang1-2/+3
2020-07-261.14 connection supportTiger Wang20-71/+609
2020-07-26Remove redundant ErasePowerData callTiger Wang1-7/+5
* Also fix a return that should've been continue
2020-07-26Toggleables: update simulators when changedTiger Wang2-4/+26
2020-07-26Clang Tidy fixTiger Wang1-11/+11
2020-07-26Comparators: use <= in comparison modeTiger Wang1-1/+1
2020-07-26Use SimulateChunk in redstone simulatorTiger Wang27-828/+766
+ Improved performance, reduces bottleneck in chunkmap lookup * Stop allocating and throwing away lots of small vectors in Update/GetValidSourcePositions return values - Remove unused GetPowerLevel virtual
2020-07-26Fix incorrect big flower translationTiger Wang1-4/+6
* Upgrade palette had incorrect values for upper half of large flowers
2020-07-26Call BlockEntityWithItems from ChestEntity slot changed handlerTiger Wang2-37/+53
* Small degree of unification for what to do with the current entity * Make sure to do necessary actions for both sides of a double chest
2020-07-25Reduce unnecessary wakeupsTiger Wang2-19/+22
- cSimulator no longer wakes up positions already woken by cChunk::SetBlock
2020-07-25Use relative vectors in cChunk::DoWithTiger Wang3-66/+63
2020-07-25Correct placement for tripwire hooksTiger Wang1-22/+29
https://github.com/cuberite/cuberite/commit/487f9a2aa9b5497495cef1ac3b9c7a603e69f862#r40900869
2020-07-24Redstone: check validity of GetBlockTiger Wang1-1/+5
2020-07-23zh-cn translation in resource fileTiger Wang2-22/+88
+ Add resource description + Add more descriptive flags
2020-07-23Update submodulesTiger Wang10-68/+43
2020-07-20Remove some unused inclusionsTiger Wang10-40/+22
2020-07-20Remove GetProtocolVersion unneeded commentsTiger Wang4-7/+4
2020-07-19Remove ProtocolPalettesTiger Wang5-231/+0
2020-07-19Inherit constructors, remove duplicationTiger Wang8-84/+19
2020-07-19Remove Waterlogged value from registryTiger Wang7-38203/+31198
(apparently they're going to remove it, we don't want such a large breaking change) * Also alpha sort ids, parameters
2020-07-19Precompile unordered_map/setTiger Wang12-26/+13
+ Add inclusions to Globals.h * Sort Globals.h - Remove sys/stat.h from Globals.h
2020-07-19Use 1.13.1 block paletteTiger Wang2-18/+47
2020-07-19Implement "caching" in ChunkDataSerializerTiger Wang9-202/+122
+ When sending a chunk to multiple clients, group them by protocol version and send the same data
2020-07-19Reduce duplication in CompressPacketTiger Wang1-42/+76
- Remove line 1742 that wrote data which was then immediately cleared * Store the compress/no compress threshold in a constant - Remove adding a noncompressed header in SendPacket, CompressPacket handles everything now
2020-07-191.13.1, 1.13.2 connection supportTiger Wang4-13/+185
2020-07-19Add 1.13.1 to 1.15.2 mappingsTiger Wang13-15/+29585
2020-07-18Delete unused memberTiger Wang2-4/+0
2020-07-18Use cMultiVersionProtocol's bufferTiger Wang4-37/+33
2020-07-18Delete duplicated status request handlersTiger Wang16-536/+182
Here we go again...
2020-07-181.13 items supportTiger Wang23-90/+67621
+ Add 1.16 block and item definitions
2020-07-18Move IsValidSocket out of global namespaceTiger Wang2-17/+23
2020-07-17Initial work on 1.13 entity metadata (#4539)Mat4-181/+1086
* Initial work on 1.13 entity metadata * Largely complete metadata Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-07-17cProtocolRecognizer goes on a diet (#4770)Tiger Wang10-1167/+250
- Removed inheritance from cProtocol
2020-07-14SimplePlaceableItemHandler styleTiger Wang1-4/+9
2020-07-14cWorld * -> cWorld (#4771)Tiger Wang6-129/+96
* cWorld * -> cWorld
2020-07-14Introduce recipe book functionality (#4493)Tobias Wilken32-73/+761
* Introduce recipe book functionality The recipe book helps especially new players. Missing it gives the impression that cuberite is not as advanced as it is. The handling of the recipe book uses the following functions: - Unlock Recipes (https://wiki.vg/index.php?title=Protocol&oldid=14204#Unlock_Recipes) to make recipes available and show the notification for new recipes. Initialization is done on player login for known ones, the update is done when new items are discovered. - Craft Recipe Request (https://wiki.vg/index.php?title=Protocol&oldid=14204#Craft_Recipe_Request) when the user selects a recipe from the recipe book to fill the slots. Known recipes are initialized on player login via `Unlock Recipes` with `Action` 0. As soon as a new recipe is discovered this is added via `Unlock Recipes` with `Action` 1. To be able to know and recognize new recipes the player class is extended with `KnownItems` and `KnownRecipes`. As soon as a player touches an item this is compared to the list of `KnownItems`, if the item is unknown the recipes are checked for this item and the other ingredients are checked with the list of `KnownItems`. If a full match is discovered the recipe is unlocked with the client and stored in the `KnownRecipes`. To unlock recipes the recipe ID is sent to the client. A mapping file (for protocol 1.12.2) translated the minecraft recipe names to ids. The crafting.txt is extended with and minecraft recipe names is possible. Limitations: Only a single recipe is added to the crafting area. Multiple clicks or shift click does not increase the number of builds. Co-authored-by: peterbell10 <peterbell10@live.co.uk> * Address first issues mentioned by @peterbell10 - Some linting - Extract loading of recipe specific protocol mapping into a function - Build `RecipeNameMap` only once - Use `std::optional` - Extract `LoadRecipe` from `Window` * Start to implement new suggestions * Update with suggestions from @peterbell10 * Some minor cleanup * Update protocol packet IDs * Remove unused include * Include header in cmake * Change a vector to integer counter * Change dromedaryCase method names to PascalCase * Address suggestions from @madmaxoft * Read Protocol subdirectories to load recipe books To load all recipebooks iterate over the `Protocol` subdirectories to find mapping files. Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-07-13Remove unnecessary includesTiger Wang2-13/+2
2020-07-06Remove Schematic Chunk height limitationKrystilizeNevaDies1-1/+1
2020-07-06Comment capitalisationTiger Wang1-2/+2
2020-07-06Use enum to represent light statesTiger Wang1-19/+34
2020-07-06Reduced packet spam when entities idleTiger Wang3-4/+12
* Try not to send look packets when nothing's changed.
2020-07-06Made grass spreader prettierTiger Wang3-65/+91
2020-07-06Update fmtlib to 7.0.0Peter Bell4-8/+5
2020-07-04cWindow: Convert XYZ to Vector3 (#4764)MaxwellScroggs11-43/+24
2020-06-26Merged trivial item handlers into cSimplePlaceableItemHandler (#4766)Franklin Kong9-306/+45
- Remove unused files Co-authored-by: aiugai <aiugai@umich.edu> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-06-26Cactus cannot be placed on a forbidden blocks (#4767)morsmordere1-0/+34
Co-authored-by: Franklin T Kong <ftk@umich.edu> Co-authored-by: aiugai <aiugai@umich.edu> Fixes #4641 Overrode GetPlacementBlockTypeMeta for CactusBlock, which gets called before a player places the cactus block, so it returns true if the placement is allowed or false if not, in which case the cactus does not drop as a block but stays in the player's hand which is the expected behavior. Tested in Minecraft client 1.12.2.
2020-06-24Send entities in cChunkSender (#4532)Mat3-21/+24
Confer issue #3696
2020-06-08libevent: Enable IOCP backend on windows (#4745)peterbell101-1/+4
2020-05-31Fire sim: Handle fuel block being destroyed (#4751)peterbell101-9/+25
2020-05-29Protocol: Avoid crashing on invalid sign textPeter Bell1-1/+1
2020-05-16Upgrade to C++17 [CMake] (#4717)Tiger Wang21-466/+93
* Make our CMake slightly less insane
2020-05-16sizeof(char)Peter Bell1-2/+2
2020-05-16Use thread safe localtime_r on linuxPeter Bell1-9/+6
2020-05-16Enable debug logging in test buildsPeter Bell1-2/+2
2020-05-16Avoid a copy when logging lua stringsPeter Bell1-18/+15
2020-05-16Update logging code to reduce unnecessary string copying:Peter Bell9-196/+195
* Write into a single fmt::memory_buffer * Use string_view instead of AString for listener callbacks * Also collapsed vFLOG and vLOG functions into one per formatting type
2020-05-15Enable some more clang-tidy linter checks (#4738)peterbell1096-295/+229
* 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
2020-05-10Android build cleanup (#4734)Mat4-27/+12
* Android build cleanup * Remove unnecessary workaround * Remove more unnecessities * Bump cmake version
2020-05-10Cleanup some workarounds and warnings (#4735)peterbell109-142/+63
* Cleanup thread_local usage in FastRandom * Use constexpr to avoid clang warning * Fix more Wglobal-constructor warnings * Make MSVC happy?
2020-05-10Cleanup unneeded globals (#4736)peterbell1011-68/+33
2020-05-09Enable C++17 in buildPeter Bell7-19/+22
2020-05-09Update submodules (#4727)peterbell1029-87/+136
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.
2020-05-09Fix clang-tidy errors (#4730)peterbell102-52/+52
2020-05-08Add some comments about terracingTiger Wang1-17/+43
2020-05-08Update RedstoneWireHandler styleTiger Wang1-11/+9
2020-05-08Use Vector3 for cLineBlockTracer and cBlockTracer (#4715)mBornand9-184/+258
* cLineBlockTracer uses Vector
2020-05-08Fix SetBlockMeta call in observer handler (#4728)peterbell101-2/+2
2020-05-07Remove old Android leftovers (#4722)Mat15-46/+40
2020-05-06Add tree generation for ExtemeHills and other biomes (#4713)mBornand3-97/+131
2020-05-06Fixed various MSVC warnings.Mattes D4-5/+3
2020-05-05Update fmt to 6.2.0 (#4718)peterbell1017-98/+230
* Update fmt to 6.2.0
2020-05-05Remove cRankManager migration code (#4714)Mat2-381/+4
* Remove cRankManager migration code * Restore mistakenly removed code * Display log message when creating ranks
2020-05-04Refactor minecart collision detection code. (#4712)Alexander Harkness2-109/+280
* Refactor minecart collision detection code. - Use new GetBoundingBox function. - Handle descending and ascending rails. - Snap to descending rails. * Add message for UNREACHABLE
2020-05-04Add two missing include guardsTiger Wang2-0/+4
2020-05-04Fix one definition rule violationsTiger Wang6-77/+79
2020-05-04Fix incorrect formatter invocationTiger Wang2-3/+3
2020-05-04Added check if player is in spectator mode (#4709)Lukas Pioch1-0/+6
2020-05-04Add comment for boat position broadcastAlexander Harkness1-0/+3
2020-05-04Improve entity position updates (#4701)Tiger Wang23-382/+272
* Make puking pickups fly nicer * Improve entity position updates * Move determination of whether a delta is too big for a packet into the protocol handlers + Less jittery movement + Generalise CollectEntity to take any entity
2020-05-03Buttons can now be triggered by arrows. (#4670)DrButcher4-21/+124
* Buttons can now be triggered by arrows.
2020-05-03Add cEntity::GetBoundingBox, and use where appropriate. (#4711)Alexander Harkness8-11/+12
* Add cEntity::GetBoundingBox, and use where appropriate.
2020-05-03Update src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.hmBornand1-8/+1
Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-05-03Update src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.hmBornand1-8/+1
Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-05-03Made some style update and add commentsMarc_Bornand1-4/+9
2020-05-03Fix the connexion to the side of the repeaterMarc_Bornand1-3/+25
2020-05-03Modify pickup collection behaviour to correspond to vanilla.Alexander Harkness1-16/+4
As documented here: https://www.spigotmc.org/threads/item-pickup-radius.337271/#post-3141146
2020-05-03Assert if world is incorrectMat1-0/+1
2020-05-03Set entity world earlymathiascode2-1/+1
2020-05-01Unify entity spawn packet sendingTiger Wang26-465/+243
2020-04-30NBT: Dynamic list-max-count protection. (#4697)Mattes D3-11/+34
2020-04-25Update DispenserEntity.cppLukas Pioch1-1/+1
Removed unneeded cast
2020-04-25Fixed spawning of mobs from dispenserLukas Pioch1-2/+3
2020-04-25Get biome at world coords on mob spawn (#4692)Mat1-3/+4
2020-04-24Fix incorrect relative coords usage in farmland handler (#4690)peterbell101-2/+2
2020-04-24Prevent bookshelf pickup crashmathiascode1-1/+1
If no tool was involved in the creation of a bookshelf pickup (e.g. explosion), the server would crash due to a missing nullptr check. Removed the IsTool check completely, since we don't use it elsewhere, and vanilla doesn't do such checks either.
2020-04-22Unify 1.8 and 1.9Tiger Wang4-2359/+156
- Deleted ridiculous amount of duplicated code
2020-04-21Vector3 in Handlers (#4680)Mattes D108-1475/+2649
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-20Delet SpawnObject paramsTiger Wang17-43/+19
* Fix #4679 awkward...
2020-04-19Correct world access in NetherPortalScannerTiger Wang1-6/+16
2020-04-19More arrow patchesTiger Wang3-42/+37
* Further reduce instances of appearing black * Fix packet send and get arrows to more reliably lodge in blocks clientside * Fix hit detection failing at chunk boundaries + Use delegating constructors
2020-04-19Added check for item damage (#4681)Lukas Pioch1-2/+1
* Added check for item damage Co-authored-by: Mattes D <github@xoft.cz>
2020-04-18Reduce arrows going black on hitTiger Wang1-15/+25
2020-04-18MoveToWorld must always be provided a worldTiger Wang5-43/+45
2020-04-18Only store IDs across ticksTiger Wang4-28/+64
2020-04-18Re-implement repeater lockingTiger Wang3-20/+111
2020-04-18Extended Vector3 (#4666)Mattes D2-0/+18
2020-04-17Fixing washing away of redstone mechanisms (#4665)DrButcher1-0/+1
2020-04-17More Vector3 in cBlockHandler (#4644)Mattes D22-247/+389
* cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works.
2020-04-17Implement glowing redstone orePeter Bell2-187/+267
2020-04-16ಠ_ಠ (#4660)Tiger Wang5-0/+135
+ Provisional handling for observers
2020-04-16Using Super.Mattes D399-1380/+1814
2020-04-16Prevent crash when breedingMat1-2/+0
2020-04-15Trapdoor can be placed anywhere since 1.9Bond_0091-12/+0
2020-04-15ServerHandle: Fix closing failed servers. (#4653)Mattes D1-1/+4
If the cServerHandle failed to listen, closing it would then crash Cuberite.
2020-04-15Fixed Lua Vector unification. (#4652)Mattes D3-5/+35
2020-04-14Bindings: Allow coercion between Vector3 subtypes. (#4646)Mattes D7-167/+177
In manually bound functions, allows one to use any Vector3<T> value, as well as a {x, y, z} table, in Lua as any Vector3<T> parameter. Has example in Debuggers' /vector command. Unfortunately doesn't work in auto-bindings.
2020-04-14Pressure plate sounds and delay (#4643)DrButcher1-7/+141
+ Added sounds on depress and release + Added correct delay times
2020-04-13Acquire chunk map CS when accessing player entitiesPeter Bell3-29/+32
2020-04-12Fixed entity teleport for just-spawned entities.Mattes D1-1/+5
Includes a test code in the Debuggers plugin - throwing a cake-as-fallingblock.
2020-04-12Removed extended ASCII, and added a check against it. (#4642)Mattes D5-5/+9
2020-04-11Fix rotation metas on blocksAlexander Harkness8-31/+31
2020-04-11fixing rotation - rel. #4625GefaketHD2-15/+9
2020-04-10Replace all single-digit hex constants with two-digit versionAlexander Harkness3-15/+15
2020-04-10Remove silly empty cBlockGlazedTerracotta classAlexander Harkness3-21/+6
2020-04-10Reduce line length on templatesAlexander Harkness1-2/+19
2020-04-10Add additional spacing between template/function definitionsAlexander Harkness1-0/+9
2020-04-10Add doxy-comments to new functionsAlexander Harkness1-2/+4
2020-04-10Fix comment textAlexander Harkness1-8/+4
2020-04-10Add mixins for blocks that rotate based on player yaw at placementAlexander Harkness22-413/+202
Also add observer block handler.
2020-04-10Brewing stands do not have rotationAlexander Harkness1-2/+2
2020-04-10Add Terracotta handlersAlexander Harkness3-0/+52
2020-04-10Correct Black Glazed Terracotta block handlerAlexander Harkness1-1/+1
2020-04-10Add additional blocks which are not breakable by handAlexander Harkness2-6/+39
2020-04-10Change stained clay hardness valueAlexander Harkness1-1/+1
2020-04-10Use correct value for zombie villager in 1.13Mat1-1/+1
2020-04-10Fix compilation, for real this time.Alexander Harkness5-1/+5
I should go to sleep now...
2020-04-10Oops, remember to save your files!Alexander Harkness2-42/+1
2020-04-10Add Zombie VillagersBond-00921-63/+358
2020-04-09Don't set entity world twice (#4606)Mat2-4/+1
* Don't set entity world twice * Call HookSpawnedEntity when the entity actually spawned
2020-04-09Falling blocks can now be spawned at any position. (#4620)Mattes D5-17/+18
* Falling blocks can now be spawned at any position. * Added a /cake command to Debuggers that throws a cake in a nice slow arc. * Fixed regular falling blocks.
2020-04-09Wolves and mooshrooms are passive mobsMat1-2/+2
2020-04-07Initial resource pack support (#4622)Mat18-4/+146
2020-04-05Filter blocks to add to redstone sim's wake queue (#4621)peterbell103-6/+63
2020-04-05Add potatoes to washed away list alsoAlexander Harkness1-1/+2
2020-04-05FluidSimulator: Carrots should be also washable (#4619)metiu071-0/+1
2020-04-04Block entity for beacon was not created (#4618)Lukas Pioch1-0/+1
2020-04-04Remove switch statements from cItemFoodHandler (#4610)Alexander Harkness15-192/+398
* Remove switch statements from cItemFoodHandler * Alpha-sort and add comment * Relocate golden apple handler
2020-04-04Potion changes (#4601)Mat1-7/+7
* Correct protocol translation for potions * Update brewing recipes
2020-04-04Implement wither skeletons (#4563)Mat21-231/+334
2020-04-03Manage block entity lifetime with unique_ptr (#4080)peterbell1012-213/+144
2020-04-03New hotfix to prevent calling OnBroken (#4600)Alexander Harkness4-17/+15
* Fix stack overflow in breaking ice. Stupid fix, but it does work and is used in other places too... * Replace hotfix for pistons with better one * Fix comments in BlockBed handler
2020-04-03Quick fix to make spawn eggs work (#4611)Mat1-1/+1
2020-04-03Tweak pickup sound pitch (#4598)Mat2-2/+2
2020-04-03Removed the obsolete cTracer class. (#4594)Mattes D6-589/+0
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D93-1314/+1522
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
2020-04-02Use a reasonable listen backlog value (#4597)Mat1-2/+2
2020-04-02Replace buckets to the selected hotbar slot, rather than the first available. (#4580)Alexander Harkness12-63/+167
* Replace buckets to the selected hotbar slot, rather than the first available. Replicates vanilla behaviour, as well as being more logical. * Refactor cInventory::AddItem. Behaviour is now documented * Add new cInventory::ReplaceOneEquippedItem and ::SetEquippedItem methods * Return empty potion to the same slot after drinking * Replace buckets correctly in other situations, not simply water and lava Uses the new ReplaceOneEquippedItem method * Correct collecting water from source block with bottle * Add cPlayer::ReplaceOneEquippedItemTossRest method * Handle stacked filled buckets (in theory) Use new cPlayer::ReplaceOneEquippedItemTossRest method
2020-04-02Tweak attack rangesmathiascode2-7/+7
2020-04-02Fix explosion knockback issues and tweak knockback strength (#4590)peterbell104-20/+19
2020-04-01Fix off-by-one error and clean error messages in manual bindings for BlockArea (#4549)Alexander Harkness1-68/+73
* Correct off-by-one error in manual bindings for FillRelCuboid Fixes #4454 * Fix inconsistent error messages in manual bindings for BlockArea * Generate error if invalid coords passed to FillRelCuboid
2020-03-31Prevent player from being destroyed by plugins (#4584)Alexander Harkness2-6/+34
* Prevent player from being destroyed by plugins Add manual binding, bails out with error message if attempted entity to destroy is player. * Improve warnings and documentation, remove automatic binding * Remove old and unnecessary deprecated function
2020-03-30Lua API for spectating entities (#4518)Mat2-2/+21
2020-03-30Send experience on respawn (#4586)Mat1-0/+1
2020-03-29Fix client disconnect assert (#4579)peterbell102-5/+9
2020-03-29Add protocol mob ID remapping (#4538)Mat11-5/+217
2020-03-28Fix build on ClangAlexander Harkness2-8/+8
2020-03-28Inventory changes (#4561)Mat3-17/+14
Co-Authored-By: peterbell10 <peterbell10@live.co.uk>
2020-03-28Updated Bookshelves drop behaviour (#4567)Xenoxis3-0/+29
* Updated BookShelves Drop Behaviour As described here : https://minecraft.gamepedia.com/Bookshelf#Loot * Update src/Blocks/BlockBookShelf.h * Update CONTRIBUTORS
2020-03-28Toss all items from enchantment table (#4569)Mat1-2/+2
2020-03-28cClientHandle: Only allow m_State to increase (#4533)peterbell102-40/+49
* cClientHandle: Only allow m_State to increase * WasAddedToWorld was incorrect if kicked * Rewrite cClient::Destroy with a guard clause
2020-03-28Fix Snow Spawn on Cobblestone Slab (#4564)Xenoxis2-1/+2
2020-03-27Reduce ghast spawn rate againMat1-1/+1
2020-03-27Reduce ghast spawn rateMat1-1/+1
2020-03-27Updated plugin list format (#4557)Mat1-7/+26
2020-03-27 Lock hopper when powered by redstone (#4347)Bond-00912-4/+143
* Lock hopper when powered by redstone * Add to manual bindings * Add hopper API documentation Co-authored-by: Mat <mail@mathias.is>
2020-03-27Merge #4552Alexander Harkness1-1/+8
commit 28654b1f42a98c0f9910e333a9c8074fe30aff24 Author: Alexander Harkness <me@bearbin.net> Date: Fri Mar 27 11:58:34 2020 +0000 Remove whitespace commit f1492e174b51e168bf4fb150c2d7b7096c393057 Author: Odin <SirRobo@users.noreply.github.com> Date: Fri Mar 27 04:30:32 2020 +1100 Add issue comment commit b64166d68a327e8a9bf80720ff6e9c6af93921b5 Author: Odin <SirRobo@users.noreply.github.com> Date: Fri Mar 27 03:42:35 2020 +1100 Don't run OnBroken with pistons Stops piston duplication bug and doesn't break water and lava simulation
2020-03-27Fix typo in floater code (#4556)Mat1-1/+1
2020-03-27Fix typo in block break particle coordinate (#4555)Mat1-1/+1
* Use Vector3d for block break particle * Fix typo
2020-03-26Decrease attack cooldown for monsters (#4542)Mat1-1/+1
* Decrease attack cooldown for monsters * Nerf some mobs * Decimal points
2020-03-26Improvements to blaze and ghast (#4547)Mat6-26/+149
2020-03-26Disable bonemealable settings for now (#4551)Mat2-0/+6
2020-03-25Fix nether mob spawning (#4546)Mat2-81/+94
* Fix nether mob spawning * Remove zombie from nether mobs
2020-03-24Send respawn packet by default (#4540)Mat3-4/+4
2020-03-24Furnace and brewing stand drops (#4534)Mat2-6/+36
* Furnace drops contents * Brewing stand drops contents * Fix lit furnace drop * Fix brewing stand drop * Style * Style
2020-03-24When Client sends message longer than 256 bytes, kick him instead of handling message (#4514)Max Luchterhand1-0/+10
* Wrong overload of function push() got called when pushing a cEntity*. Using a const cEntity * fixes this. * Fixed accidental wrong indentation * Compiler didn't like old style cast * Kicking player when writing chat message longer than 2048 * Accounted for Astrings size() method returning bits, not bytes * Fixed typo * Changed MAX_STRING_SIZE to 1024, removed unnecessary division by 8 * Handling message length check in cClientHandle:HandleChat * Guard clause instead of if else * Remove stale changes * Fixed formatting Co-authored-by: mluchterhand <mluchterhand@max.de> Co-authored-by: Peter Bell <peterbell10@live.co.uk> Co-authored-by: Mattes D <github@xoft.cz>
2020-03-23Fix certain item drops (#4536)Mat6-12/+51
* Fix certain item drops * Revert unwanted changes * Revert unwanted changes * Revert change * Style fixes
2020-03-23Enable functional packets in 1.13mathiascode2-30/+0
2020-03-23Play sound when brewing is completeMat1-0/+1
2020-03-23Jukebox improvements (#4537)Mat4-5/+61
* Add jukebox block handler Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-03-23Manual merge of #4498.Alexander Harkness7-11/+44
Credit to @MeMuXin Closes #4498
2020-03-23Don't attempt to give bucket with item count of 0Mat1-1/+1
2020-03-23Cocoa pods have three growing stagesMat1-2/+2
2020-03-23Pickup spawn improvements (#4525)Mat2-5/+5
Pickups are now thrown around when spawned, like in vanilla. Pickups also bail out of the collision detection checks while being created, to prevent them from blasting too far off in e.g. cobblestone generators.
2020-03-22Don't push blocks outside world height limits (#4516)Mat1-0/+5
* Don't push blocks outside world height limits * Style fix * Apply suggestion Co-Authored-By: peterbell10 <peterbell10@live.co.uk> * Apply suggestion Co-Authored-By: peterbell10 <peterbell10@live.co.uk> * Improvements * Add block type check back * Revert line break changes * Update BlockPiston.cpp Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-03-22Add ambient mob sounds (#4521)Mat39-41/+62
2020-03-22Increase speed of splash potion and expbottle (#4513)Mat2-2/+5
2020-03-22Fix effect crashes (#4530)Mat1-3/+3
* Fix effect crashes * Change according to suggestion
2020-03-22TNT position fixes (#4519)Mat8-13/+16
* TNT position fixes * Don't add offset to explosion spawn coords * Don't make other entities push TNT * Correct initial TNT speed * Fix typo * Improvements * Revert unwanted change * Style fixes * Update format
2020-03-22Fix invalid explosion damage (#4529)Mat1-1/+1
2020-03-22Fix typo in fish metaMat1-1/+1
2020-03-22Don't enchant an already enchanted bookMat1-1/+1
2020-03-22Fix armor protection (#4506)Mat2-17/+24
* Fix armor protection * Check min damage * Check min damage * Commit missing changes * Convert to int * Use float * Float some more
2020-03-22Don't remove items twice (#4524)Mat11-19/+16
* Don't remove items twice
2020-03-22Allow enderman to attack during day (#4522)Mat1-36/+1
2020-03-22Ender chest is not affected by piston (#4526)Mat1-1/+1
2020-03-21Bonemeal cannot be used on cactus and sugar caneMat1-2/+0
2020-03-21Wrong overload of function push() got called when pushing a cEntity*. (#4512)Max Luchterhand2-0/+11
* Now having two funcs, Push(cEntity* ..) and Push(const cEntity* ...). For now, the const function just casts away the const qualifier and passes to the other. Co-authored-by: mluchterhand <mluchterhand@max.de>
2020-03-21Don't call player movement hook if nothing changed (#4517)Mat1-0/+20
Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-03-21Improve explosion visuals (#4511)Mat1-1/+17
2020-03-20Clamp teleportation position (#4203)stone33111-1/+9
2020-03-19Remove leading slash from command block commands (#4502)Mat1-6/+20
2020-03-19Improvements to knockback (#4504)Mat5-14/+28
* Improvements to knockback * SetSpeed for explosions * Improve code consistency
2020-03-19Prevent arrows from sinking into the ground (#4509)Mat1-1/+1
2020-03-19Change outdated air drag value for arrowsMat1-1/+1
2020-03-19Change outdated air drag value for TNTMat1-1/+1
2020-03-18Fixed unloading of chunks that contain player entities (#4508)Max Luchterhand2-0/+19
Co-authored-by: peterbell10 <peterbell10@live.co.uk> Co-authored-by: mluchterhand <mluchterhand@max.de>
2020-03-18Blocks only drop pickups when using correct tool (#4505)Max Luchterhand1-1/+7
Co-authored-by: mluchterhand <mluchterhand@max.de>
2020-03-17Silk touch pickaxe drops grass block (#4485)Mat3-101/+134
2020-03-07Don't send entity velocity for boats (#4488)Mat4-5/+35
* Don't send entity velocity for boats
2020-03-05Attached entities can't enter portals (#4484)Mat2-0/+18
* Attached entities can't enter portals * Whitespace fixes
2020-03-05Don't spawn boats in groundMat1-1/+1
2020-03-05Use LastSentPos for mob spawn packet in 1.11+ (#4490)Mat3-109/+4
2020-03-05Stabilise MoveToWorld (#4004)Mat21-212/+366
* Stabilise MoveToWorld * Fix comments and deprecate ScheduleMoveToWorld * Enhanced thread safety for m_WorldChangeInfo * Return unique_ptr from cAtomicUniquePtr::exchange * cWorld now calls entity cEntity::OnAddToWorld and cEntity::OnRemoveFromWorld. Allows broadcasting entities added to the world from the world's tick thread. This also factors out some common code from cEntity::DoMoveToWorld and cEntity::Initialize. As a consequence, cEntity::Destroy(false) (i.e. Destroying the entity without broadcasting) is impossible. This isn't used anywhere in Cuberite so it's now deprecated. * Update entity position after removing it from the world. Fixes broadcasts being sent to the wrong chunk. * Fix style * cEntity: Update LastSentPosition when sending spawn packet * Add Wno-deprecated-declarations to the lua bindings * Kill uses of ScheduleMoveToWorld
2020-03-04Update LastSentPosition when entity has no speed (#4487)peterbell101-53/+50
* Update LastSentPosition when entity has no speed * Restructure BroadcastMovementUpdate and always process relmove
2020-03-04Prevent container item duplication (#4476)Mat2-15/+0
2020-03-04Play correct sound when entities are hit by arrows (#4481)Mat1-1/+1
2020-03-01Boats can be spawned on landMat1-7/+0
2020-02-24BlockTypePalette: Improved loading speed in MSVC Debug builds.Mattes D1-45/+130
2020-02-24Remove 1.13 from supported protocol listmathiascode1-3/+3
2020-01-15Blocks are usable in adventure mode (#4464)Mat1-1/+1
2020-01-07Added temporary block type mapping for 1.13+ protocols.Mattes D13-67/+352
2020-01-07StringUtils: Added note to StringsConcat about StringJoin.Mattes D1-1/+2
2020-01-07ProtocolRecognizer: Updated to unique_ptr.Mattes D2-36/+20
2020-01-07Root: Load the UpgradeBlockTypePalette on startup.Mattes D2-0/+26
2020-01-07main: Terminate if an exception is thrown.Mattes D1-4/+7
2020-01-02Clean up server folder for Android (#4448)Mat1-6/+6
2020-01-02Fix android builds (#4432)Alexander Harkness1-1/+1
* Terminate android build script early if any step fails * Remove deprecated android types * Use android NDK cmake support rather than cmake android NDK support as that support is better supported * Android uses GNU strerror_r? * Fix compilation * Rebase * Fix final issues * Drop submodule changes * Revert change * Parentheses * Lower api levels * Don't use GNU strerror_r for Android Co-authored-by: Mat <mail@mathias.is>
2019-12-30Include missing server files (#4446)Mat1-0/+2
2019-12-30Remove lang folder (#4445)Mat1-1/+0
2019-12-30Disable block placement in adventure mode (#4424)Mat3-2/+20
2019-12-29CMake: Fix builds in folders with spacesMattes D1-6/+5
2019-12-28CMake: Don't create symlinks if link == orig.Mattes D1-15/+25
2019-12-28BlockTypePalette: Load from TSV or original reports' JSON.Mattes D3-45/+174
2019-12-28Moved ProtocolBlockTypePalette functionality into BlockTypePalette.Mattes D5-186/+110
2019-12-28BlockTypePalette: Refactored for usage in both directions.Mattes D3-29/+100
Improves index() lookup speeds and allows BlockTypePalette to be used in place of ProtocolBlockTypePalette.
2019-12-28Output the binaries into a per-configuration Server subfolder. (#4440)Mattes D1-13/+74
Make links to the original Server subfolder's items from the per-configuration Server subfolder.
2019-12-28WebAdmin improvements (#4433)Mat6-0/+0
* WebAdmin improvements * Remove stray div tag * Revert path change * Remove buildserver link * Further simplification * Reduce horizontal padding * Add svg icons * Remove unneeded css * Make login and logout icons colored * Use same capitalization for Log in and Log out * Remove leftover code from old Webadmin design * Remove more leftover code from earlier Webadmin versions * and don't add earlier leftovers back... * PR test * Fix max width overflow * Add missing css changes
2019-12-22Improved large jungle and acacia tree generation (#4413)NiLSPACE6-295/+373
2019-12-05Correct block transparenciesPeter Bell1-0/+5
2019-10-28Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D40-1287/+1464
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D116-1667/+2384
2019-10-04Fixed crash in hopper while pulling items from blockentity above itself (#4412)NiLSPACE1-2/+2
2019-10-03Added another check if the item is place able (#4404)Lukas Pioch1-0/+7
2019-09-29Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D117-832/+1017
2019-09-29Cactus can now grow and will be dropped if there is no place to grow.Lukas Pioch1-4/+17
2019-09-27Fixed MSVC warnings (#4400)Mattes D12-28/+28
2019-09-24Fix clang8.0 build (#4399)Bond-0091-9/+13
The protocol 13.0 PR broke clang 8.0 builds.
2019-09-24NBTChunkSerializer: Cleaned up interface.Mattes D9-960/+909
Removed dependency on cChunkDataCallback. Moved all the serializing code into a worker class. Changed the serialization into a single-call action.
2019-09-22Add ProtocolBlockTypePalette (#4391)E145-0/+236
2019-09-20Added missing closing } in message outputLukas Pioch1-1/+1
2019-09-16Protocol 1.9: Alpha-sort, add useful debugging code.Mattes D2-38/+47
2019-09-16Initial support for 1.13 clientsTiger Wang8-6/+669
+ Can look at *shape* of world + Can look at *shape* of inventory
2019-09-13GCC: Added pragma to ignore fallthrough warnings within Unicode Inc. code (#4392)E141-0/+7
2019-09-10Fixed warnings in ChunkDataSerializer.Mattes D1-2/+2
2019-09-10Protocol: Use logical outgoing packet types.Mattes D17-517/+705
2019-09-08ChunkGenerator: Changed to use cChunkCoords.Mattes D7-28/+23
2019-09-08ShapeGen, HeiGen: Changed to use cChunkCoords.Mattes D18-188/+146
2019-09-08BiomeGen: Changed to use cChunkCoords params.Mattes D11-87/+82
2019-09-07Generator: Added repeatability test.Mattes D1-0/+4
2019-09-07CompoGenNether: Fixed different data produced in Linux Release builds.Mattes D1-20/+12
2019-09-06Added a BasicGeneratorTest.Mattes D2-8/+8
2019-09-06Moved the generator defaults to ComposableGenerator.Mattes D9-98/+177
2019-09-06Separated chunk generator from world / plugin interfaces.Mattes D26-663/+681
The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
2019-09-04Updated LibEvent to release 2.1.11-stable. (#4383)Mattes D1-0/+4
This finally restores my ability to compile on Windows and Linux from the same source folder (on a network drive). LibEvent broke this long ago by writing a config file into the source folder, rather than build folder. Now it's finally fixed.
2019-08-28Added a basic PalettedBlockArea implementation (#4377)Mattes D6-0/+525
2019-08-26Improved testing framework. (#4376)Mattes D1-37/+25
2019-08-24Added BlockState implementation for 1.13 support.Mattes D3-0/+259
2019-08-16Fix mobs targeting dead players (#4344)Julius Oeftiger1-1/+1
Fixes #4340
2019-08-11Fix building with clang 8.0 (#4346)Bond-00920-76/+95
2019-08-11Wake up redstone simulator on slot changes for blockentities (#4348)Bond-0092-0/+16
Fix #1898 Fix #2194 Fix #3063
2019-08-11Added null check for position (#4366)Lukas Pioch1-0/+5
2019-08-10Improved CMake generator (#4365)Mattes D2-3/+8
2019-08-10Added more clamping operations to cCuboid.Mattes D2-6/+53
2019-08-09Removed coord-based API from cCuboid. (#4362)Mattes D4-52/+179
2019-08-08cBoundingBox: Fix tolua warning (#4361)peterbell102-23/+3
tolua was warning about no support for `operator =`. Ref: #4360
2019-08-08Change TakeDamageInfo::FinalDamage from int to float (#4359)Aplaus2283-9/+9
Closes #4357
2019-08-06Fixed compilation on VS2019Mattes D1-0/+1
2019-08-05Register vanilla blocks in BlockTypeRegistry.Mattes D5-2/+730
2019-08-05BlockTypeRegistry: Added hint manipulationMattes D2-3/+144
2019-08-05BlockTypeRegistry: Initial skeletonMattes D3-0/+313
2019-07-28Check for nil in cWorld:SpawnSplitExperienceOrbs binding (#4354)Mark Asp1-1/+6
Adds explicit nil check for 'position' parameter to prevent crashes if invalid. Fixes #4352
2019-06-11Ignore whitespace only lines in brewing and furnace recipes (#4332)peterbell104-9/+19
2019-06-11Respect return value of cLuaWindow's OnClicked handler (#4322)DaPorkchop_1-1/+2
2019-06-11Fix directory traversal bug (#4341)Wilhem Barbier1-9/+8
Refuse to serve an URL containing `../`.
2019-06-11* Sponge: Add water absorbtion (#4333)Zach DeCook3-0/+163
Closes #1411
2019-05-11Create Ender Portal with Eyes of Ender (#4126)Zach DeCook7-1/+335
The algorithm was designed so All portals must be facing the center, no matter which block had the eye inserted in last. Note: Still need to create a block entity so that portals don't become invisible when you relog. Addresses part of #3445 Fixes #3695
2019-05-07Buckets: Be able to place fluids through other fluids. (#4331)Zach DeCook3-4/+4
2019-04-22Fix player skin sending through BungeeCord (#4328)DaPorkchop_1-5/+10
This fixes sending of player skins through BungeeCord by actually parsing the JSON instead of setting the player properties as a string.
2019-04-18Make Nether portals spawn the player inside of them (#4325)DaPorkchop_2-4/+4
Currently the player is spawned immediately in front of them. Simply changing `cNetherPortalScanner::OutOffset` to 0.5 wasn't enough, as the player would always be spawned on top of the portal, however checking for non-solid blocks instead of air fixes this.
2019-02-20Limit the size of cListAllocationPool's free listpeterbell104-21/+31
2018-10-15Add colors to console for macOS (#4303)Bond-0091-5/+5
2018-09-24Add a formatting function for Vector3 (#4282)peterbell1027-181/+192
* Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
2018-09-24Add BurnsInDaylight to Lua API and Monsters.ini (#4295)Muhammad Kaisar Arkhan4-16/+17
* Monster.h: Export SetBurnsInDaylight This commit also adds BurnsInDaylight to check if the Monster burns in daylight or not. Closes https://github.com/cuberite/cuberite/issues/4294 * MonsterConfig.cpp: Add BurnsInDaylight Closes https://github.com/cuberite/cuberite/issues/4294
2018-08-29Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell10102-187/+117
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.
2018-08-26Store and pass entity effect duration as an int not a short. (#4293)Alexander Harkness13-37/+13
Fixes #4292.
2018-08-23Fixes bed item 26 and 355 being spawned, only 355 spawns now (#4290)Rick van Schijndel1-0/+1
2018-08-17solve new player login crash issue (#4285)changyong guo1-1/+0
currently if new player login, server will crash during send player ability to client. this pull request solve this issue.
2018-08-17Handle the lapis slot separately (#4286)Nate1-0/+36
This is my attempt to fix #4112. The root cause of the issue was that the lapis slot was treated exactly the same as the enchanting slot, so it on the server side it would only ever slot one item. My fix is to check if its the second slot in the window, then check if it's lapis (it would slot whatever). If it is lapis I call the base click handler.
2018-08-13Fix: Create players folder recursively (#4283)Nate1-2/+5
Problem: On a new server the players folder was not created on windows. Root Cause: `GetUUIDFolderName` was returning a folder structure for players with `/` while CreateFolderRecursively was checking for `\\` for win32. The fix is to recognise both forward and backward slashes as file separators on windows. Fixes #4284
2018-08-02Experience orb (#4259)changyong guo14-56/+262
* Replace cWorld::FindClosesPlayer with cWorld::DoWithClosestPlayer * Implement experience reward splitting into the orb sizes used in vanilla * Modified speed calculation in cExpOrb::Tick to make the orbs fly towards the player Fixes #4216
2018-07-30Ocelots no longer multiply exponentially (#4272)peterbell102-15/+9
Along with a call to `destroyentities`, this fixes #4271 I'm guessing the intention of this code was to modify the normal spawning of ocelots. However, `cEntity::SpawnOn` is actually called to send the entity to an individual client. That means this code was run for every single player, every time they were sent a chunk with ocelots in it. Thus, the ocelots population would grow exponentially as players log in and move around.
2018-07-27Add new flow direction calculating algorithm (#4160)bionext033-126/+73
2018-07-27cWorld: Manually bind deprecated broadcast functions (#4265)peterbell1015-114/+306
Ref: https://github.com/cuberite/cuberite/pull/4264#discussion_r204769193
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell10121-166/+192
Add check for number of empty lines between functions and fix the corresponding failures
2018-07-25At long last... Piston animations!Tiger Wang4-86/+117
* Fixes #3198 * Fixes #57 (again lol)
2018-07-25Reimplemented fall particlesTiger Wang1-3/+8
Regression when 1.9.x support introduced in #3135, originally implemented in #461.
2018-07-24Broadcast refactor (#4264)peterbell1028-1564/+845
* 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
2018-07-24Stop cFunctionRef constructor from disabling default copy constructor. (#4173)peterbell101-6/+31
* Stop cFunctionRef constructor from disabling default copy constructor. + cFunctionRef: Improve documentation
2018-07-23Optimise chunk set (#4260)peterbell109-152/+155
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
2018-07-23cPawn: Reset last ground height in ResetPosition (#4261)peterbell104-2/+13
Prevents fall damage after teleporting/portaling to a lower height. Fixes #3457
2018-07-23Rewrite explosion knock back (#4251)changyong guo6-20/+119
1. Base knockback on an entity's bounding box intersection with the explosion 2. Armor blast protection reduces knockback 3. Don't apply knockback to players flying in creative mode Fixes #4139
2018-07-23Keep players in gmNotSet (#4248)changyong guo7-43/+48
This allows players game mode to update to the default after portal to another world. Fixes #4207
2018-07-23recover hotbar selected slot after reconnect (#4249)changyong guo12-0/+79
1. implement protocol message SendHeldItemChange 2. add save / load inventory equipped item slot in JSON 3. send held item slot message after player connect to server Fixes #4189
2018-07-22cIsThread: Reset m_ShouldTerminate after the thread has stopped (#4258)peterbell107-26/+7
This allows threads to be restarted after stopping. Fixes #4257
2018-07-20Make offline UUIDs consistent with vanilla. (#4178)peterbell103-12/+59
Fixes #4177 This is a breaking change to existing Cuberite permissions settings.
2018-07-19cBlockArea: Write all present data types by default (#4252)peterbell102-13/+39
cBlockArea::Write now defaults to use GetDataTypes() instead of assuming all data types are present. Fixes cuberite/WorldEdit#130
2018-07-13Add unbreaking for armor (#4220)Bond-0092-22/+37
Ref: minecraft.gamepedia.com/Enchanting#Unbreaking #915
2018-06-30fix dispenser pickup display bug (#4247)changyong guo1-0/+7
fix dispenser pickup bug by ignore meta data during pickup creation
2018-06-25fix block area rotation bug (#4243)changyong guo1-3/+3
fix mirror method bug in class cBlockArea.
2018-06-24Update m_IsSolid assignments in BlockInfo (#4167)Alexander Harkness1-0/+7
Fixes #4166
2018-06-24Support swap item between main hand and offhand by press key "F" (#4241)changyong guo3-1/+14
Hi, I found cuberite don't support to press key "F" to swap items on main hand and offhand, so I implemented this feature. Best regards Changyong
2018-06-20Flush stdout after resetting console colour. (#4240)peterbell101-0/+1
2018-05-06Use clang-tidy to check more code conventions (#4214)Bond-0099-167/+174
* Create clang-tidy.sh * Add clang-tidy to circle.yml * Fixed some naming violations Fixes #4164
2018-05-03Generate cacti and sugarcane with different heights (#4137)Cocosushi63-30/+97
When generating foliage, create cacti with height in the interval [1; MaxCactusHeight] and sugarcane with height in [1; MaxSugarcaneHeight] (with MaxCactusHeight and MaxSugarcaneHeight declared in world.ini) Fixes #4135
2018-05-02Prefer static_cast to reinterpret_cast (#4223)peterbell1048-351/+351
* 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.
2018-04-27tolua++ bindings use nullptr. (#4219)peterbell101-4/+1
Fixes compilation with -Wzero-as-null-pointer-constant.
2018-04-27Fix fishing timer (#4217)peterbell101-0/+5
Fixes ["Fishing Speed Too Slow"](https://forum.cuberite.org/thread-3175-post-29000.html#pid29000). Interestingly, the constants @NiLSPACE points out are actually correct: ```cpp (Random.RandInt(100, 900) - static_cast<int>(a_Player->GetEquippedItem().m_Enchantments.GetLevel(cEnchantments::enchLure) * 100)) ``` 100 to 900 ticks is the correct timing of 5-45 seconds. However, the timer is only updated when the floater is in the water and the server side position was actually bobbing in and out of the water. This meant the timer took ~2-3x longer than it should. With this change the floater position is always in the water and so the timer works as expected.
2018-04-27Removed unnecessary disconnect (#4200)mathiascode1-5/+0
2018-04-11Removed duplicate code (#4198)Bond-0094-147/+159
Should also fix dogs not despawning
2018-04-11Update m_LastSentPosition in TeleportToCoords and DoMoveToWorld. (#4211)peterbell103-4/+18
2018-04-11Smelting Gives Experience (#4094)Alex Sweet7-5/+61
* Smelting Exp Smelting now gives experience * Furnace.txt update Exp rewards are entered in furnace.txt, Reward calculation is now done is the furnaceentity class * furnace.txt update Changed alignment tabs to spaces Included documentation of exp in recipe * Updated StringToFloat changed strtod to strtof * Explicit Float to Int * Reworked Smelting Rewards * No C casts -Adds new function to the api -Sets reward counter to 0 in furnace constructor * Style and exp lock removed -Fixed style mistakes accoring to PR notes -XP isn't locked to a single player anymore * No Smelter API -Removed SetLastSmelter and GetLastSmelter -Fixed comments -Fixed log reward amounts
2018-04-08Fix cUUID::Variant (#4213)peterbell101-1/+1
2018-04-03Properly destroy player (#4199)mathiascode1-7/+7
2018-04-02* Block Info: glazed terracotta and concrete hardness/solid voxel status (#4205)Zach DeCook1-0/+35
2018-04-02Broadcast playerlist removal in every world (#4201)mathiascode3-6/+26
2018-03-20Wolves only spawn in taiga biomes (#4197)Bond-0091-2/+1
Ref: https://minecraft.gamepedia.com/Wolf#Spawning
2018-03-02Add cPluginManager::GenericCallHook (#4027)peterbell102-632/+252
Replace repetitive CallHook functions with a generic implementation. Also converts some loops to range-based for. Related to #1134
2018-02-21cLightingThread: Faster chunk reading (#4185)peterbell101-12/+23
Profiled at a 10x speedup for cLightingThread::ReadChunks.
2018-02-20Fix cUrlClient leak (#4125)peterbell103-36/+54
Fixes #4040 * The TCP connection is now shutdown after OnBodyFinished * Any open connections are closed when cNetworkSingleton::Terminate() is called. * Removed ownership cycles in cUrlClientRequest * Added a check to the test to ensure there are no leaks.
2018-02-20cBlockInfo: Deprecate direct access to variables. (#4184)peterbell102-74/+119
2018-02-11Damage fishing rod when catching the hook on a block, then reeling it in (#4151)Bond-0091-0/+8
Fixes #4132
2018-02-05Deal with covered switches consistently (#4161)peterbell1038-399/+266
* 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()
2018-02-04cChunk and cChunkData: Use vectors for block get and set functions (#4172)peterbell106-121/+145
* cChunkData: Change interface to use Vector3i * cChunk: Add Vector3i overloads for bounded block get and set functions.
2018-02-04Ocelots don't take fall damage (#4171)Bond-0094-6/+19
2018-01-28A player's inventory is always opened by its owner. (#4176)peterbell101-4/+6
Fixes #4093 Window updates are only broadcast to players in the m_OpenedBy list. Normally players are added after sending a window open packet but no packet is sent for a player's inventory. This meant broadcasts were never sent for the inventory window.
2018-01-25cClientHandle: Always call HOOK_PLAYER_RIGHT_CLICK (#4149)peterbell101-6/+11
Reverts the reduction in cases where the hook was called, a change which broke plugins.
2018-01-23Removed cBlockInfo.m_IsSnowable (#4105)Bond-0093-90/+54
* Removed cBlockInfo.m_IsSnowable * Return IsSnowable from deprecated variable binding m_IsSnowable.
2018-01-21cItemGrid: Allocate storage lazily (#4083)peterbell104-87/+257
* cItemGrid: Allocate storage lazily * cItemGrid: Fix spelling, Prioritary -> Priority
2018-01-17New movement system for leashed entities (#4147)peterbell102-35/+47
* New movement system for leashed entities Entities are accelerated towards the leashed to entity as if by a spring. * Mobs now pathfind close to but not directly to the leashing entity. * Also minor comment changes
2018-01-17Calculate crit damage properly (#4154)Bond-0091-11/+13
2018-01-17Prioritize hinge on the left side (#4153)Bond-0091-0/+1
2018-01-16Add world name in logs from cWorld (#4148)Bond-0091-3/+3
2018-01-16Exp Orbs and Pickups are destroyed instantly by cacti. (#4136)Alexander Harkness5-15/+54
* Cactus detection code follows pattern set in #3996 * Pickups are now destroyed on cactus contact * Add cactus detection and destruction to Exp Orbs Remove checks for IsExpOrb() in cEntity::Tick() Exp Orbs do not call super::Tick() and so this condition was pointless.
2018-01-15Don't burn mobs in daylight when swimming (#4145)Bond-0091-1/+2
2018-01-15cWindow: Fix slot area priority when double click stacking. (#4086)peterbell102-34/+6
Fixes #4084
2018-01-14Rename cEntity swim states (#3996)Alexander Harkness10-134/+156
* Replace cEntity:m_IsSubmerged with m_IsHeadInWater * Replace cEntity:m_IsSwimming with m_IsInWater * Add API documentation for new symbols * Apply SetSwimState to all entities, not just mobs and players * Pickups now use IsOnFire to check if they are on fire before destruction Fixes #3987
2018-01-08Rewrite cClientHandle::HandleRightClick (#4089)9caihezi8-158/+173
* Add hand parameter to distinguish main hand/off hand. * Add a new function cClientHandle::HandleUseItem to separate the functionality of using an item without a target block. This matches the protocol with client version >= 1.9 * Always actively update the status of a block if the placement fails (by out of reach or rejected by plugin). * Do not call plugin callback CallHookPlayerRightClick(-1, 255, -1, -1, 0, 0, 0) when using item. The CallHookPlayerUsingItem will still be called. Now at most one of CallHookPlayerRightClick, CallHookPlayerUsingBlock, CallHookPlayerUsingItem and CallHookPlayerEating will be called based on the type of action (not including the used version of callbacks). * Do not count using item as BlockInteractionsRate check (Using item takes time). * Now we can open chests(etc.) when sneaking as long as the player's hand is empty. This is what vanilla server does.
2018-01-06Golden Apple Fixes (#4130)Alexander Harkness3-21/+14
* Do not remove food item until player has been fed * Golden apples now ignore hunger when eating * Removed EnchantedGoldenApple recipe, as it was removed in 1.9 Reference: https://minecraft.gamepedia.com/1.9#Items_2 * Adjust golden apple effects, as they were changed in 1.9 Reference: https://minecraft.gamepedia.com/1.9#Items_2
2018-01-05Improved fishing rewards (#4120)Bond-0092-34/+52
* Damage fishing rod after use * Give xp to the player for catching something * Fixed junk drops * Implement Luck of the Sea
2018-01-05Sugar cane can be near frosted ice (#4133)Bond-0091-1/+1
2018-01-05Item durability loss now depends on the item used. (#4123)Alexander Harkness30-208/+111
Armour durability also no longer changes when it is used to break blocks or attack mobs. Fixes #4119
2018-01-03Add the fmt library (#4065)peterbell1053-385/+305
* 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.
2018-01-03Concrete mixing (#4096)Zach DeCook5-0/+121
Adds a block handler for concrete powder and implements hardening to concrete. Concrete powder turns into concrete when: * It is next to water when it receives a block update * It falls onto a water block (even with Physics SandInstantFall=1)
2018-01-03cLuaState: Update `Push` for entities. (#4128)peterbell101-47/+35
Fixes #4127 Some classes were exported but were only pushed as a cEntity meaning exported functions were inaccessible. This brings cLuaState::Push(cEntity *) up to date with all exported entities.
2017-12-27Lilypads can be on top of (frosted) ice (#4122)Bond-0091-2/+2
Fixes #4117
2017-12-26improve rain simulation (#4017)Alexander Harkness10-85/+118
* Uses vanilla logic to decide which blocks rain falls through. * Rain falls infinitely above the world, and stops at y=0. * Entities will now be extinguished if they are under rain-blocking blocks, and fire will now be extinguished by rain similarly. * Create IsWeatherWetAtXYZ to identify wetness at a particular location. * Use new code for enderman rain detection. * Fixes issue #916 * Disable warnings for global constructors in the fire simulator.
2017-12-26Water bottles are drinkable potions (#4114)Alexander Harkness1-11/+8
Water bottles are now drinkable potions Fixes #4111 Also update outdated mcwiki references
2017-12-26Protocol: Fix potion metadata parsing (#4116)peterbell101-2/+2
2017-12-22Fix Travis build (#4101)peterbell102-5/+7
Stop using gdb on osx - was breaking the build Add clang 3.5 build as travis now defaults to 5.0 Fix unknown-warning-option errors on AppleClang ProtoProxy: Use nullptr UrlClientTest: add override to callback destructor Update jsoncpp to use nullptr
2017-12-21Fix typo in #4095.Alexander Lyons Harkness1-2/+1
The build was being broken.
2017-12-21NetworkLookup: Added "virtual" keyword to overridden dtor. (#4100)Mattes D1-1/+1
2017-12-21cInventory: Add listener to shield slot. (#4095)peterbell101-0/+6
2017-12-21Fixed Clang 5.0 compile errors (#4085)bibo3810-7/+38
* Fixed Clang 5.0 compile errors * Fixed wrong comment * Only disable warnings in Clang 5 or higher * Added a CMake condition for the Clang 5 no-zero-as-null-pointer-constant warning * Now using the use_nullptr branch of the Cuberite specific SQLiteCpp fork
2017-11-22Store Health as a float (#4073)Fabian6-16/+35
* Fix #4024 * Fix clang error * Add comment * Fix behaviour * Save Health as float * Changed m_Health to float * Remove redundant static_cast * Fix casts
2017-11-21cBlockRail: Fix assertion failure (#4075)peterbell101-3/+3
2017-11-20cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-00934-187/+176
2017-11-20cItemHandler: Update max stack size of old doors. (#4072)peterbell101-0/+2
2017-10-21cWorld Threads: Seperate initialization and thread start.peterbell106-32/+17
Prevents nullptr dereferences before Start has been called.
2017-10-21cWorld: Move Initialization from Start to the constructor.peterbell106-239/+261
Start now does nothing more than launch the world's threads.
2017-10-21Implement horse inventory (#4053)peterbell1014-27/+455
* Implement horse inventory * Fix sign conversions * Add API doc for ItemCategory::IsHorseArmor * Improve HandleOpenHorseInventory comment and style fixes.
2017-10-21Fixed some small passive mob issues (#4057)Bond-0099-10/+44
* Chickens can be bred with seeds, beetroot seeds, melon seeds, or pumpkin seeds Ref: https://minecraft.gamepedia.com/Chicken#Baby_chicken * Baby passive mobs don't drop items * Fixed the size of some mobs
2017-10-21Fix minecart deceleration (#4059)peterbell102-32/+48
2017-10-16Fixed FreeBSD build (#4061)Bond-0091-2/+5
2017-10-02Fixed 2 small warnings (#4055)Bond-0092-7/+3
2017-09-27Fix explosion interaction with block entities. (#4052)peterbell102-3/+17
* WriteBlockArea: Fix erasing of block entities. * cChunkMap::DoExplosionAt destroys block entities
2017-09-25cPressurePlateHandler: Fix uninitialised variables. (#4047)peterbell101-2/+2
2017-09-25BroadcastBlockBreakAnimation and BroadcastBlockEntity use vectors (#4038)Bond-00913-67/+62
2017-09-23cBlockArea: Fix performance regression (#4045)peterbell101-2/+16
2017-09-21Add support for release 1.12.2 (#4041)peterbell104-3/+108
2017-09-21Only allow snow to be placed where valid. Fixes #2920.peterbell101-12/+38
2017-09-21Only allow rails to be placed where valid.peterbell101-1/+8
Fixes #3507.
2017-09-20Added working directory for x64 builds (#4037)Lukas Pioch1-0/+8
2017-09-19Fixed webadmin certificate reading.Mattes D3-3/+10
2017-09-19Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly37-110/+138
* 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
2017-09-19cRoot: Make PollPeriod representation 32 bit (#4030)peterbell101-3/+1
2017-09-19Leaves now drop with the correct meta when broken by a pickaxe with silk touch (#4034)Bond-0091-0/+6
2017-09-19Removed UTF-8 BOM (#4033)Lukas Pioch48-48/+48
2017-09-18cFinishGenPreSimulator: Preserve sand meta (#4025)peterbell102-13/+8
Fixes #1516.
2017-09-14Fix error with implicit cast from long long to long (#4026)Alexander Harkness1-1/+1
2017-09-14Fix switch warnings (#4013)peterbell1024-322/+357
* 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
2017-09-12Adjust lava damage values (#4020)Alexander Harkness2-2/+2
Fixes isue #2925
2017-09-12Limit how long cRoot::InputThread may block (#4019)peterbell101-10/+26
Limit how long cRoot::InputThread may block Only calls `std::getline` when there is input available which removes the need to "notify" the input thread. Fixes #2494 and fixes #3177
2017-09-11Replace ItemCallbacks with lambdas (#3993)peterbell1069-1813/+915
2017-09-11cBlockArea: change MakeIndex to return size_tpeterbell103-120/+51
2017-09-11cBlockArea: use unique_ptrpeterbell103-148/+164
2017-09-10Fix crash for players out of the world. Fixes #4006 (#4007)Alexander Harkness1-3/+4
2017-09-08Shutdown connection when disconnect packet sent (#3999)Alexander Harkness2-11/+11
2017-09-07Made world data paths adjustable, and added API to temporarily disable saving chunks to disk. (#3912)Lane Kolbly7-35/+84
2017-09-07Lighting now generally consistent with vanilla (#3988)Alexander Harkness3-14/+68
* Lighting now generally consistent with vanilla Skylight is now dispersed by some blocks, instead of passing through unimpeded. Some blocks which were not marked as transparent are now marked as such. Water and other such blocks now attenuate light with the correct intensity. Generally changes were based on documentation in the Minecraft Wiki: https://minecraft.gamepedia.com/Opacity#On_block_light , however during play-testing on vanilla lava was found not to attenuate sky or block-light so the attenuation was removed. This fixes #3849 * Add API documentation for IsSkylightDispersant * Rename m_SkylightDispersant to m_IsSkylightDispersant * Update comment for m_Transparent property of Blocks
2017-09-07Switched player statistic store to save with UUID filenames. (#4002)Lane Kolbly3-6/+12
2017-09-07Fire effect now shown for creative and spectator mode players (#3998)Alexander Harkness3-24/+19
* Fire effect now shown for creative and spectator mode players Fixes #3989 * Add documentation for IsFireproof
2017-09-07Updated APIDoc (#3985)Lukas Pioch3-6/+8
2017-09-07Changed some int parameters to vector parameters (#3937)Bond-00953-178/+191
2017-09-05Add cWorld::RemoveEntity and use in cEntity (#4003)peterbell103-11/+44
* Add cWorld::RemoveEntity and use in cEntity * cEntity: Remove uneeded asserts from Destroy and DoMoveToWorld
2017-09-04Added assert to cProtocolRecognizer::GetPacketId. (#4001)Lane Kolbly5-17/+29
2017-09-02GetPacketID for protocol packet IDs (#3977)Lane Kolbly11-1359/+366
* Added GetPacketId method to protocol, implemented for all protocols. * Moved GetPacketID methods into a single file, alpha-sorted. * Fixed 1.12.1 HandlePacket switch statement. * Added SendLogin to the GetPacketId framework. * Added SpawnObject to GetPacketId framework. * Added missing sendEntityEquipment packet ID update for 1.12.1 * Added LeashEntity packet ID change to 1.12.1 * Alphabetized packet enum, added SpawnGlobalEntity to GetPacketId framework * Fixed clang errors * Indented cases, expanded comment for GetPacketId * Changed dyslexic comment.
2017-09-02Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot67-872/+1830
This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
2017-09-01SetSwimState now takes into account head heightAlexander Harkness2-3/+3
This affects m_IsSubmerged and IsSubmerged() for entities of all types. Also prevent squids from suffocating in water.
2017-09-01Remove double-checking below world for burningAlexander Harkness1-5/+0
2017-09-01OnLogin now kicks players properly (#3980)Alexander Harkness1-1/+2
2017-09-01Replace ItemCallbacks with lambdas (#3948)peterbell1067-1830/+872
2017-08-31Drop enderchest when broken by a silk touck pick (#3986)Bond-0092-1/+6
2017-08-30Protocol Spawn Position Should Use LastSentPosition (#3929)Lane Kolbly3-24/+36
+ Added GetLastSentPos * Fixed spawn position bug in 1.8.
2017-08-30Update mbedtls to 2.5.1 (#3964)peterbell1048-647/+896
* Renaming changes: * macro prefix "POLARSSL" -> "MBEDTLS" * functions now prefixed with "mbedtls_" * rename PolarSSL++ -> mbedTLS++ * rename polarssl submodule * Use mbedtls' AES-CFB8 implementation. * Add cSslConfig to wrap mbedtls_ssl_config * Update cTCPLink and cBlockingSslClientSocket to use cSslConfig * Use cSslConfig in cHTTPServer * Use cSslConfig for cMojangAPI::SecureRequest * CI Fixes * Set -fomit-frame-pointer on the right target
2017-08-30Added ShouldSendRespawn parameter to ScheduleMoveToWorld (#3979)Lane Kolbly2-3/+5
2017-08-29cUUID: Fix FromHexDigit for digits >= 'a'peterbell101-2/+2
2017-08-29cWorld: Add entities without holding of m_CSEntitiesToAddpeterbell101-9/+12
* Fixes deadlock when cWorld::AddEntity is called while holding chunk map CS.
2017-08-28Add TOLUA_EXPOSITION for readabilitypeterbell104-14/+8
2017-08-28cCuboid: restore default copy construct and assign.peterbell102-29/+4
2017-08-28Cleanup Vector3 constructors and Abspeterbell103-39/+20
2017-08-28Repair the removed constructor of cCuboid `cCuboid(otherCuboid)` (#3966)Bastien ADAM2-2/+13
* Repair the removed constructor of cCuboid `cCuboid(const cCuboid & a_Cuboid) : p1(a_Cuboid.p1), p2(a_Cuboid.p2) {}` * Update Cuboid.cpp * Update Cuboid.h
2017-08-27Implement Forge protocol handshake support (#3869)satoshinm18-11/+684
2017-08-26Implement anvil chunk sparsingpeterbell105-26/+160
2017-08-26Leashes work in 1.12.1mathiascode2-24/+50
2017-08-25Fix mobs not burning in daylight when on snow (#3961)Alexander Harkness1-3/+3
* Fix mobs not burning in daylight when on snow or other non-transparent partial blocks. Fixes #3945 * Change from floor to ceil
2017-08-25Gives all entities the default airlevel on creation (#3942)Bond-0093-17/+30
* Guardians don't take damage on land * Squids suffocate on land
2017-08-25Don't assert when placing beds in older versions (#3916)mathiascode2-0/+2
2017-08-25Add cUUID class (#3871)peterbell1042-483/+1116
2017-08-25Bed piston fix (#3956)Lane Kolbly7-10/+13
* Threaded world interface into ConvertBlockToPickups * Changed how cBlockPiston::PushBlocks sets the old block to air, so that the block exists for the DropBlock call. * Removed unused a_Digger argument. * Removed incorrect comment * This time actually removed a_Digger references.
2017-08-24Use ref instead of pointerLukas Pioch3-8/+8
2017-08-24Minor changes (#3909)mathiascode28-41/+41
2017-08-24Added check to deactivate existing entity effects when new entity effects are added.Lane Kolbly1-0/+7
2017-08-24Fix use after move in cItemBowHandler::OnItemShootpeterbell101-4/+3
2017-08-23Removed outdated pathfinder comment (#3955)Safwat Halaby1-2/+1
2017-08-22Added check in cEntity::TickBurning for whether the entity is planning to change worlds. (#3943)Lane Kolbly1-0/+6
2017-08-22Potential spawn prepare fix (#3924)peterbell102-13/+17
2017-08-21Implement protocol level chunk sparsing (#3864)peterbell107-297/+346
2017-08-21Award player an achievement when creating a beacon (#3930)Bond-0091-13/+36
2017-08-21Snow only generates on blocks with a block light level of 10 or less (#3931)Bond-0091-1/+7
2017-08-21Fixed build for older clang versions (#3935)Bond-0091-1/+1
2017-08-21Give arthropods slowness IV when hit with bane of arthropods (#3932)Bond-0091-3/+7
2017-08-21Fully implemented leashes (#3798)Pablo Beltrán40-19/+937
2017-08-18Changed MoveToWorld to ScheduleMoveToWorld in cPlayer::Respawn (#3922)Lane Kolbly1-1/+1
* Changed MoveToWorld to ScheduleMoveToWorld - Removed empty line
2017-08-18Represent cItem::m_Lore as an AStringVector (#3882)peterbell1012-51/+245
* Replace cItem::m_Lore with AStringVector * Reword deprecation warning * Fix lua bindings
2017-08-18Changed type of FastRandom in monster drop calculation. (#3920)Lane Kolbly1-1/+8
* Fixed type of FastRandom in monster drop calculation. * Distribute dropped items into stacks. * Moved while loop outside if statement.
2017-08-18cBeaconEntity fix no world crashpeterbell101-1/+4
2017-08-17Sitting cats block enderchests from opening (#3906)Bond-0094-25/+42
2017-08-17Add cLuaWindow OnClicked Callback (#3901)Lane Kolbly12-2/+101
2017-08-17Add support for 1.12.1 (#3908)Bond-0094-6/+825
2017-08-17Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly37-179/+217
2017-08-13Added knockback to arrows, fixed knockback enchantment handling (#3900)Lane Kolbly2-34/+16
* Added knockback for arrows, fixed knockback enchantment handling.
2017-08-13Shortened DoIntervalsIntersect to two comparisons, made inline. (#3883)Lane Kolbly2-32/+23
* Shortened DoIntervalsIntersect to two comparisons, made inline. * Applied DeMorgan's * a_Max1 => a_Max2 * Moved DoIntervalsIntersect definition into header file. * Moved DoesIntersect into header. * Unindented line
2017-08-13Replaced includes with forward declarationsLukas Pioch13-22/+22
2017-08-11Removed incorrect assert in cClientHandle::SendRespawn.Lane Kolbly1-3/+0
2017-08-10cChunk: Don't assume GetBlockEntity coords are validpeterbell101-7/+11
2017-08-07Changed entity ownership model to use smart pointersTiger Wang39-421/+480
2017-08-07cBlockInfo: Deprecate place soundpeterbell102-5/+61
2017-08-06Removed unneeded includes (#3902)Lukas Pioch50-60/+7
2017-08-04Fixed compilation for clang 4.0 & gcc 7.1Dan Čermák2-0/+5
2017-08-03Implement invisibility effectpeterbell105-45/+92
2017-08-03Remove double includes part 2 (#3890)peterbell1080-146/+7
2017-08-03Removed unused forward declarations (#3888)Lukas Pioch26-102/+2
2017-08-02Fix BSD buildpeterbell101-0/+1
2017-08-02Removed double includes (#3885)Lukas Pioch23-31/+2
2017-08-02Handle Teleport Confirmation Packet (#3884)Lane Kolbly2-4/+26
+ Added code to drop incoming client position packets until the most recent teleport was confirmed.
2017-08-01cBlockHandler: take player by refpeterbell1049-150/+150
2017-08-01cWorld::SendBlockTo take player by refpeterbell1015-33/+33
2017-07-30Consolidated food effects into EatItem, added all fish type FoodInfos. (#3875)Lane Kolbly6-90/+93
* Consolidated food effects into EatItem, added all fish types. * Changed type of NumFishInfos to satisfy clang. * Removed unused call for a_Item in EatItem
2017-07-30cParsedNBT: Improved error reporting (#3876)peterbell105-59/+216
* cParsedNBT: Improved error reporting * Fix typos
2017-07-28Added anvil enchantment handling. (#3857)Lane Kolbly5-35/+418
+ Added anvil enchantment handling.
2017-07-28Check for intersection between placed blocks and entities. (#3850)Lane Kolbly13-3/+243
* Check for intersection between placed blocks and entities. + Implemented GetPlacementCollisionBox, to permit custom placement collision boxes for blocks. * Factored block-entity placement checking into another function in cPlayer. - Removed vector min/max functions * Use GetWorld to get the world in DoesPlacingBlocksIntersectEntity. + Added block height checks, allow different cEntity subclasses to decide whether they will prevent block placement.
2017-07-28Tentative fix for player-limit race condition (#3862)Tiger Wang12-95/+61
* Attempts to fix #2257 Derived from d233e9843148313c71fbaba96ccff660e47b07b1 * Changed player count type to int * Clarified certain actions
2017-07-26Handle incomplete packets in cProtocolRecognizerpeterbell102-44/+58
2017-07-23Updated armor cover calculation. (#3858)Lane Kolbly4-135/+98
* Updated armor damage calculation. + Added lua docs, added casts from float to int. * Changed verbage in docstring and comment.
2017-07-22Creepers explode when burned by flint and steel (#3865)Bond-0091-1/+1
Fixed an issue where creepers didn't explode when they were burned with flint and steel
2017-07-22BlockArea: Added the GetBounds function.Mattes D2-2/+18
2017-07-22Fixed check to see if block entity is in merge source.Lane Kolbly1-1/+1
2017-07-21Increment fire block iteratorTiger Wang1-0/+1
* Resolves potential deadlock
2017-07-21Remove commentpeterbell101-1/+0
2017-07-21Simplify SizeCheckpeterbell101-6/+2
2017-07-21Remove stricmp macro in favour of NoCaseComparepeterbell102-5/+1
2017-07-21Remove alignment macrospeterbell102-8/+1
2017-07-21Remove smart pointer macrospeterbell1044-88/+83
2017-07-21FastRandom: Remove discrepancy between arg and return value type. (#3846)Mattes D3-19/+15
2017-07-18Break the cactus block when it grows next to a block. (#3851)Bond-0092-6/+37
2017-07-18Made cBlockHandler OnPlacedByPlayer call OnPlaced, made BlockRailHandler use NeighborChanged instead of OnNeighborChanged.Lane Kolbly2-16/+17
2017-07-17Allocate redstone component handlers upfrontpeterbell1025-329/+293
2017-07-16Simulators: Added area-based wakeup.Mattes D9-56/+93
2017-07-13Handle middle mouse drag (#3847)peterbell105-10/+53
2017-07-12Added basic ocelot behavior (#3829)Bond-00910-20/+368
2017-07-12Lua plugin cColor (#3833)Lane Kolbly4-6/+30
2017-07-12Changing pickup lifetime and combining semantics, making these adjustable in the lua api. (#3843)Lane Kolbly5-6/+49
2017-07-12If entity is a player, send relmove packets.Lane Kolbly1-1/+1
2017-07-12Remove double delete of PrepareChunk lua callback (#3844)peterbell101-29/+16
2017-07-12Send player message when clicking on advancements or green book. (#3845)Lukas Pioch2-2/+24
2017-07-10Made cBlockArea:cChunkReader AreaBounds inclusive on both sides. (#3842)Lane Kolbly1-1/+1
2017-07-10Sound effect horse rejects player when tamingPablo Beltrán1-0/+1
2017-07-10Implemented draggingitem API.Lane Kolbly2-1/+17
2017-07-09cItemGrid bounds check (#3837)peterbell102-12/+68
2017-07-07BigFlower fixes (#3826)peterbell1016-47/+71
* BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
2017-07-07Added bed entity (#3823)Lukas Pioch25-12/+335
* 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
2017-07-07Changed Lua plugins to only execute files ending in .lua (#3831)Lane Kolbly1-1/+2
2017-07-03cBlockInfo static initialisation (#3832)peterbell103-912/+920
2017-07-03Fixes double right click on entities till off-hand actions gets implemented (#3821)Pablo Beltrán1-2/+8
2017-07-02You can't use beds when there are hostile mobs nearbyBond_0091-8/+32
2017-07-02Added armor durability reduction when player is attacked.Lane Kolbly2-0/+32
2017-07-02Fix horse taming (#3820)Bond-0091-14/+26
* Horses rear when untamed and right-clicked with an item
2017-07-02Players in creative and spectator aren't affected by cacti (#3824)Bond-0091-1/+4
2017-07-02When right-clicking on a passive mob with 'his' spawn egg spawn a babyBond_0091-2/+20
2017-06-30Endermen take damage from rainBond-0092-3/+29
2017-06-30Spider should attack only when the light level is lower than 11 (#3815)Bond-0091-1/+4
2017-06-30Added 1.12 blocks (#3760)Bond-0096-8/+122
2017-06-29Update tolua and export EffectIDpeterbell106-22/+61
2017-06-26cNetwork bindings: Use ApiParamError and CheckParam(Static)Self.Mattes D1-226/+91
2017-06-26Moved ApiParamError into cLuaState.Mattes D5-114/+144
2017-06-26Fixed memory leak in cClientHandle. (#3794)Mattes D2-6/+6
2017-06-26Corrected APIDoc for cBlockArea and exported missing functions (#3808)Lukas Pioch1-1/+102
2017-06-26Added check if datatype is present in block area (#3811)Lukas Pioch1-0/+6
2017-06-25Fix cBlockArea assertion and mis-indexing (#3810)peterbell101-2/+2
2017-06-24Fix cBlockArea null derefpeterbell101-41/+45
2017-06-24cBlockArea supports block entities. (#3795)Mattes D11-675/+2234
2017-06-23Load entities from old and new namesLukas Pioch2-224/+150
2017-06-22Pressure plates can be placed on fences and hoppers (#3796)Bond-0091-2/+21
2017-06-22NetworkSingleton: Fixed a throw warning in VS2017. (#3792)Mattes D4-8/+8
Also fixed the misleading name.
2017-06-21Fix shears (and vines)Bond-0092-26/+13
* Shears now lose durability when breaking any block * Leaves don't drop 2 leaves anymore when broken by shears * Removed the chance to drop saplings or apples when leaves are broken by shears * Vines can't be attached to ender chests, pistons and redstone repeaters
2017-06-21Anvil storage: load block entities from both old and new name-styles. (#3784)Mattes D2-80/+129
* WSSAnvil: Load the sign text from JSON, too.
2017-06-20Lighting Optimisations (#3785)peterbell102-73/+23
2017-06-20Let water vaporise in the Nether by defaultBond-0091-5/+6
2017-06-19Generated tall flowers have flower type meta in both blockspeterbell103-4/+7
2017-06-19MSVC Debug builds: Added operator new redirection to provide more info. (#3781)Mattes D2-0/+44
2017-06-19LuaState: Fixed VS2017's throw warnings for destructors. (#3779)Mattes D2-5/+12
2017-06-19Removed the LeakFinder for Windows. (#3777)Mattes D12-2863/+1435
2017-06-17NetworkSingleton: Fixed an object leak upon termination.Mattes D1-0/+1
2017-06-16Fixed missing "override"Mattes D1-1/+1
2017-06-16BlockEntities: Support cloning self.Mattes D41-309/+640
2017-06-16Change error no data to no namepeterbell101-1/+1
2017-06-16Protocol: Do not assume anything about unknown packets. (#3647)Mattes D1-35/+38
2017-06-16Remove sign conversionpeterbell103-7/+8
2017-06-15Entity: Replaced a mutexed counter with a std::atomic. (#3773)Mattes D2-11/+15
2017-06-15Replace evdns with getaddrinfo and getnameinfo (#3766)peterbell1011-248/+294
2017-06-14Added missing 1.12 packet changesmathiascode2-0/+30
2017-06-14Protocol 1.12: Fixed missing override specifierMattes D1-3/+3
2017-06-14Double tall grass drops seeds when broken by water (#3763)dbhicks1-6/+15
2017-06-14Added support for protocol 1.12 (#3757)Lukas Pioch5-3/+1589
2017-06-14Remove redundant heighmap codepeterbell103-41/+2
2017-06-13FastRandom rewrite (#3754)peterbell1062-400/+452
2017-06-09Fix assert when clicking blocks at the top of the world.Mattes D1-12/+16
2017-06-09Fixed skylight going down through transparent blocks.Mattes D1-1/+12
2017-06-09Added WriteBlockEntity to 1.10 and 1.11 and fixed mob spawnerLukas Pioch6-2/+235
2017-06-09Fixed handling Lua errors in nested callbacks (#3755)Mattes D2-3/+42
2017-06-05Fixes problems with windows:Lukas Pioch15-18/+39
- Changed cPlayer:OpenWindow to accept a ref, tolua adds a nil check - Close open lua window in destructor, to avoid dangling pointers
2017-06-04Avoid pickups to sink into blocks and disappear (#3739)Pablo Beltrán2-24/+35
* Avoid pickups to sink into blocks and disappear
2017-06-03Add command line argument for disabling the logfileworktycho3-7/+29
2017-06-03Fixed double chests (#3741)peterbell103-8/+25
Normal and trapped chests next to each other don't open a double chest window. Slot changes in the secondary chest are broadcast. Placing a chest in +x of another updates the original chest's metadata.
2017-06-03Fixed exp orb (#3744)Pablo Beltrán1-19/+23
Fixes #3740 Fixes #2667
2017-06-03New icon colors (#3675)mathiascode6-0/+0
* New icon colors * New Webadmin favicon
2017-05-28LineBlockTracer: Fixed a math rounding error failure.Mattes D1-1/+5
2017-05-28Fixed tracer usage in Entity physics handling. (#3720)Mattes D3-17/+20
2017-05-28Minor cBrewingRecipes cleanup (#3731)peterbell104-115/+63
2017-05-28Double chest window fix (#3735)peterbell102-52/+130
2017-05-28Broadcast mob head changesmathiascode1-0/+5
2017-05-27Add rank prefix and suffix to player name in chat (#3730)Heiko Hund3-1/+29
Fixes issue #1721
2017-05-24Exported boatLukas Pioch13-18/+167
- 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
2017-05-24Off-hand/shield slot functional, save and load slot, bow + arrow functional (#3725)Pablo Beltrán5-9/+97
Fixes #3714.
2017-05-22Store cChunk::m_BlockEntities in a map (#3717)peterbell1010-514/+269
* Store block entities in a map from block index * Cleanup ForEachBlockEntity * Cleanup DoWithBlockEntityAt
2017-05-22Spawn eggs works againLukas Pioch3-34/+68
2017-05-21Clang 5.0 fixesLukas Pioch64-74/+64
- Added override keyword - Removed inherited member variables
2017-05-21Fixed invisible chests (#3722)Pablo Beltrán3-5/+15
Fixes #3479, #3403, #3696
2017-05-21Don't destroy monster when last target type is a player (#3721)Pablo Beltrán3-2/+9
In current Cuberite version if you are pursued by monsters you just have to disconnect and connect again to get rid of them. If no other player is in your chunk monsters will get destroyed.
2017-05-19Allow enabling/disabling of block change limitmathiascode3-1/+8
2017-05-16Use FastWriter instead of StyledWritermathiascode5-8/+9
2017-05-15VarInt metadata written correctly for boats (#3709)peterbell103-9/+9
* Varint metadata written correctly for boats
2017-05-11Tracer replacement (#3704)Mattes D15-102/+482
* Replaced cTracer usage with cLineBlockTracer. * Exported new cLineBlockTracer utility functions to Lua API.
2017-05-09Exported cFallingBlock and cExpOrb (#3700)Lukas Pioch4-5/+20
2017-05-09Fixed Lua bindings for const objects.Mattes D4-102/+9
2017-05-09BlockHandlers: vertical alignment.Mattes D1-159/+159
2017-05-09BlockCrops: Fixed RipeMeta off-by-one error properly.Mattes D2-6/+6
Ref.: #3691
2017-05-08Added missing checks for Initialize function and updated APIDocLukas Pioch6-12/+70
2017-05-08Corrected brewingstand and added support for fuelLukas Pioch9-99/+169
2017-05-06Adjusted RipeMeta for off by one error (#3691)dbhicks1-2/+2
2017-05-05Prevent infinite loop when logging fails (#3693)josh-parris1-0/+1
Prevent infinite loop when logging fails
2017-05-04Removed binary ToLua++ from build.Mattes D2-7/+4
A local Lua executable is used instead.
2017-05-04Gen: Moved PiecePool into a separate file.Mattes D15-628/+627
Also rewritten the PieceGenerator to use std::unique_ptr.
2017-05-01Don't return const ref params and removed functions fromLukas Pioch2-100/+10
ManualBindings.cpp
2017-04-29Fix fence gates (#3683)Bond-0091-0/+5
This commit fixes an issue where a pressureplate would only open oak fence gates
2017-04-06Replace double grass and large fern with placed blockLukas Pioch2-1/+28
2017-04-05API: Removed function GetChar (#3664)Lukas Pioch1-5/+0
2017-04-04APIDoc: Documented missing functions and variables. (#3634)Lukas Pioch1-6/+6
2017-04-01Added a nullptr check to cEntity::IsA (#3659)Marvin Kopf3-3/+3
Fixes #3603
2017-04-01fix endless loop in StringReplace (#3658)Marvin Kopf1-1/+7
* Fixed a recursive loop where the replacement would again be searched for the needle. * Skip if the needle is empty. Find(needle) always matches if needle is empty.
2017-03-22NBT: Corrected firework loadingLukas Pioch1-2/+2
2017-03-22Fireworks can be fired from a dispenserBond-0091-1/+4
2017-03-21Added blocks that can be washed away by water (#3637)Bond-0092-0/+11
2017-03-20Return bowl when eating beetroot soupBond-0091-0/+1
2017-03-19Deadbushes drop sticksBond-0094-1/+48
2017-03-19Removed development plugins from settings filemathiascode2-3/+1
2017-03-19Detach player from entity / object if he is deadLukas Pioch1-0/+4
2017-03-17Boat spawned, remove it from player's handLukas Pioch1-0/+6
2017-03-17Fixed looping when unable to bind port (#3621)johnsoch1-0/+7
Fixes #3593
2017-03-16Removed unnecessary check for lower and upper folderLukas Pioch2-7/+1
2017-03-16Allow mobs to walk through dead_bush (#3623)willi123yao1-0/+1
Fixes #3618.
2017-03-03Add 1.11 entity metadata (#3601)Pokechu224-5/+845
2017-02-26Fixed which blocks can be harvested with what type of pickaxe (#3586)Bond-0091-0/+16
2017-02-26Corrected particles (#3577)mathiascode2-26/+18
Fixes wrong IDs causing particles to become unknown to the server.
2017-02-25Fixed cactus detection and zombie pigman sword (#3584)Bond-0093-1/+14
Fixes for issues #902 and #2917
2017-02-25BlockCrops: Fixed comments and reformatted control flow. (#3576)Mattes D1-46/+54
2017-02-24Removed a few default plugins (#3580)mathiascode1-2/+0
2017-02-24Changed world_end to world_the_end #3531 (#3538)Bond-0092-13/+33
2017-02-24Finishers now update the heightmap for tall flowers. (#3545)Jacob1-0/+7
2017-02-22Add support for alternate config file locations (#3578)Gareth Nelson4-2/+18
2017-02-21Add 1.11.1/1.11.2 protocol (#3575)mathiascode6-13/+86
2017-02-20Changed fish launching mechanism (#3520)Alex3-2/+14
Fish and other fishing loot now correctly fly towards played when reeled in.
2017-02-15Dead bushes will generate in mega mega taigas (#3571)Bond-0091-0/+1
2017-02-15Updated sounds and effect IDs (#3422)mathiascode63-352/+127
2017-02-14Added some blocks and items (#3503)mathiascode24-35/+474
2017-02-13StringUtils: Dropped an unneeded copy in lower-/upper-casing. (#3512)Mattes D1-4/+6
2017-02-13PieceGenerator: Added rotation-aware vertical connectors.Mattes D8-47/+351
2017-02-07Made survival the default gamemode (#3563)Lawton Mizell1-1/+1
2017-02-05Fixed bindings for cBlockArea:Read and Write. (#3568)Mattes D10-23/+23
The original bindings accepted nil as the World param, causing a crash.
2017-01-28Changed big flowers so they don't need air above them.Altenius1-1/+11
2017-01-28Changed big flowers so they can only be placed on dirtAltenius1-1/+4
2017-01-28Fixed ClientHandle:GetProtocolVersion returning wrong number.Mattes D4-13/+7
2017-01-19World: Remember the age persistently. (#3556)Mattes D2-2/+8
2017-01-19World: Removed LineBlockTracer test code. (#3555)Mattes D1-53/+0
The test for LineBlockTracer is already in the Debuggers plugin (/spidey and testtracer commands).
2017-01-19Fixed placing of double tall flowers and an inconsistency with vanilla (#3541)Jacob1-2/+1
2017-01-19Removed asserts about chunk queued.Mattes D3-4/+0
The assumption is not needed and was invalid under a stress-test.
2017-01-18WebAdmin: Renamed two neighboring locks for better clarity / style.Mattes D1-2/+2
2017-01-18Webadmin: Added a missing CS lock.Mattes D1-0/+1
This fixes an assert when accessing the login-page and the plugin-failure pages in the webadmin.
2017-01-18DeadlockDetect now lists some tracked CS's stats.Mattes D16-69/+240
2017-01-17DeadlockDetect: Provide more information for debugging.Mattes D3-5/+30
2017-01-15LuaState: Fixed untracking references.Mattes D2-6/+9
One thread may untrack a ref while another thread was closing the LuaState, which had emptied the tracked refs.
2017-01-15Moved cPrefab parser self-check to the LoadablePieces test. (#3536)Mattes D1-105/+0
2017-01-13Fixed race conditions and forgotten clear in Lua ref tracking. (#3530)Mattes D3-13/+23
This fixes occasional crashes on plugin reload.
2017-01-09LuaState: Fixed race condition in ref tracking. (#3529)Mattes D4-18/+70
2017-01-03Disconnect sent flag addedsweetgiorni1-5/+6
Truthiness no longer assumed
2017-01-03TCPLink: call networking callbacks with LibEvent unlocked. (#3515)Mattes D1-2/+2
2017-01-03Track skin part and main hand preferences (#3498)Pokechu226-7/+110
2017-01-03Player checksweetgiorni1-4/+7
Checks if there are any players connected to the server before running PlayerCallback and waiting 1 second.
2017-01-03TCPLink: call networking callbacks with LibEvent unlocked. (#3515)Mattes D1-2/+2
2017-01-03Track skin part and main hand preferences (#3498)Pokechu226-7/+110
2017-01-03Api Documentationsweetgiorni1-1/+1
Added API documentation for GetShutdownMessage. Style fix in Root.cpp
2017-01-03Custom Disconnect Messagesweetgiorni3-0/+20
Adds a m_ShutdownMessage option to the settings. When the stop command is issued, players are kicked with said message before the server shuts down.
2017-01-01Fix crash after attempting to kill a non-running thread (#3504)Fabian Stein1-4/+7
Fixes #3221
2017-01-01Disabled anticheat (#3511)LogicParrot1-1/+2
2016-12-30Fix crash after calling OnTick on removed effect (#3501)Fabian Stein1-3/+5
2016-12-29Fixed entity effect ticking (#3497)Fabian Stein1-1/+10
Fixes #3386
2016-12-29World: Add check for unknown RedstoneSimulator (#3496)Fabian Stein1-0/+5
2016-12-25Refactored to put URL Encoding / Decoding in a single place. (#3491)Mattes D5-103/+255
2016-12-19Updated links and docs (#3488)mathiascode4-7/+7
2016-12-18CMake: Output the binary to Server folder in all configurations. (#3486)Mattes D1-0/+3
2016-12-16CompositeChat: Use shorter JSON format.Mattes D1-1/+8
2016-12-16Initial support for the 1.11 protocol.Mattes D23-455/+682
2016-12-15Fixed minecart destruction using deallocated memory.Mattes D2-3/+10
2016-12-12Use CMake's Android generators to crosscompileTiger Wang16-144/+79
2016-12-10Export GetPosition and GetSpeed from cEntity as a copy instead of a pointer to lua.Lukas Pioch2-2/+52
2016-12-10Powered rails can kick-start minecarts (#3472)Marvin Kopf2-32/+62
2016-12-09Fix meta mirror (#3470)Mattes D2-35/+59
2016-12-06Fix comparator segfaultsMarvin Kopf1-1/+8
The handler would get called for any BlockEntity, but not every BlockEntity is a BlockEntityWithItems. Downcasting with static_cast is UB on fail.
2016-12-02Fix floating large trees (#3460)James Balajan1-0/+18
2016-12-01Fixed villages generating under-water.Mattes D2-4/+10
The CompoGenBiomal didn't update the heightmap properly.
2016-12-01Added code to handle signs replacing blocksQuImUfu1-1/+12
2016-11-24Prefabs: Implemented support for ExpandFloorStrategy.Mattes D3-54/+142
2016-11-22cWolf: Fixed targetting a nullptr.Mattes D1-3/+3
2016-11-19Fixed race conditions in cClientHandle's State.Mattes D2-168/+229
2016-11-18Removed ClientHandle.h dependencies from common headers.Mattes D19-51/+206
2016-11-15Added NoiseSpeedTest project.Mattes D1-0/+1
2016-11-13Added missing "override" specifier.Mattes D4-4/+4
2016-11-13Add Lua API export for titles. (#3408)mohe20151-7/+7
2016-11-10LuaState: Fixed stack balance when calling functions (#3428)Mattes D2-8/+83
2016-11-07Fixed TrappedChest saving. (#3423)Mattes D2-5/+16
Vanilla uses "Chest" in NBT for trapped chests.
2016-11-06Anticheat fastbreak (#3411)mohe201519-4/+884
Added block hardness checks when breaking blocks.
2016-10-27LuaJson: Report serialization errors instead of crashing.Mattes D1-3/+82
2016-10-21Added SendMessageRaw for sending json string.Lukas Pioch10-0/+53
2016-10-20StyleCheck: Add "else has to be on a separate line" (#3412)mohe20152-1/+6
2016-10-12Spectators added (#2852)bibo3837-36/+368
2016-10-09Fixed cProjectileEntity double destroy bug (#3397)LogicParrot1-0/+4
2016-10-09cChunk::SetAlwaysTicked implies cChunk::stay (#3361)LogicParrot3-2/+4
2016-10-08Initialize m_bIsInBed in cPlayer constructor.sgtbigman1-0/+1
This fixes an issue where the return value from the IsInBed method of the cPlayer class in the lua API would not return a boolean value.
2016-10-06Fixed cRankManager API docs.Mattes D1-47/+40
2016-09-27Use cChunkDef::Height for Y coord comparison where applicable.Moritz Borcherding7-10/+10
2016-09-26LuaAPI: Fixed possible crashes in HTTPRequest bindings.Mattes D1-35/+36
2016-09-25Fixed cCompositeChat's constructor LuaAPI bindings.Mattes D5-25/+119
The tolua-generated constructor would return an extra string value.
2016-09-12APIDump: Reformatted the docs to include type information.Mattes D3-4/+5
Also fixed a bit of documentation in the CPP source.
2016-09-08Bindings: Fixed some function signatures comments.Mattes D1-4/+6
2016-09-08APIDump: Removed trailing whitespace.Mattes D1-28/+28
2016-09-06Enclosed Clang pragmas with ifdef's (#3373)bibo381-4/+7
Fixes a warning in MSVC
2016-09-05PluginLua: Removed unneeded assignment.Mattes D1-1/+0
Duplicated in SetLoadError().
2016-09-03Configurable dirty unused chunk cap to avoid RAM overuse (#3359)LogicParrot6-15/+81
Configurable dirty unused chunk cap to avoid RAM overuse
2016-09-03Entities now bail out of ticks if destroyed (#3363)LogicParrot22-1/+111
2016-09-03Improve cPlayer::DoMoveToWorld (#3113)LogicParrot3-38/+45
2016-09-02Added support for the Minecraft 1.10 protocol(#210) (#3348)bibo387-37/+959
* Added support for the Minecraft 1.10 protocol(#210) * Fixed the Clang compilation errors * Fixed wrong sound pitch value and fixed SendPlayerSpawn Metadata value. * Prefixed each enum item with the appropriate class name.
2016-08-29Remove settings.ini world migration code (#3360)LogicParrot1-49/+0
2016-08-29Proper respawn packets on dimension travelLogicParrot12-48/+80
2016-08-28Fixed SendUnloadChunk bug (#3353)LogicParrot1-1/+1
2016-08-28Fix breaking ice in survival not giving a water's source (#3356)ElNounch2-3/+2
Fix #3355
2016-08-24Fixed type-casting-related warnings.Mattes D24-112/+79
2016-08-24HTTP: Fixed empty headers parsing.Mattes D1-1/+8
2016-08-23cUrlClient: Exported to Lua API.Mattes D4-0/+374
2016-08-22cUrlClient: Refactored callbacks to use UniquePtr.Mattes D2-24/+25
2016-08-22cTCPLink supports TLS out of the box.Mattes D7-315/+510
2016-08-22UrlClient: Basic HTTP implementation.Mattes D4-1/+756
2016-08-22cLuaState: Moved function param counting to PushCallPop() template.Mattes D3-28/+2
The Push() functions can be used not only for function params, but also returns or temporaries, so it doesn't make sense to count the params there.
2016-08-22cLuaState: Added direct support for pushing a nil constant.Mattes D5-26/+29
2016-08-22cLuaState: Added support for optional params and AStringMap values.Mattes D2-4/+111
2016-08-22Delay EntityChangedWorld players' callback until Entity fully linked to world (#3330)ElNounch3-15/+31
Otherwise, some API calls just don't seem to happen .gitignore tweak for test executables
2016-08-21WebAdmin: Report opened ports. (#3333)Mattes D1-2/+16
2016-08-21cLuaState: Added template to push multiple values in a single call. (#3331)Mattes D4-44/+23
2016-08-20Fix minecart destruction crash (#3336)LogicParrot1-1/+1
2016-08-20Fixed minecraft with chest destruction crash (#3335)LogicParrot1-2/+11
2016-08-19Fixed implicit rounding warnings.Mattes D2-6/+9
2016-08-18Pull the cSettingsRepositoryInterface::noID constant into cIniFile Lua API.Mattes D1-0/+11
This re-adds the cIniFile.noID constant into the Lua API
2016-08-18Fix cWorld:QueueTask() Lua's bindingElNounch1-2/+1
Manual binding expect three parameters : self, a number, a function And then read self and a function... Removing the extra check for the broken second argument
2016-08-17Fixing string literal catching word letter as hexa-digitElNounch2-2/+2
Was sending "\x08C""uberite" as plugin identifier, aka a String of lenght (Varint 0x8c 0x75 ->) 14988 characters but only 7 provided Now sending "\x08""Cuberite" as plugin identifier, aka a String of lenght (Varint 0x08 ->) 8 characters, with 8 provided Fix BungeeCord compatibility
2016-08-15Added cWorld:SetSpawn() API and Lua binding (#3316)ElNounch2-12/+32
2016-08-14Fixed cWorld:ChunkStay bindings. (#3319)Mattes D6-77/+219
Introduced new cLuaState::cOptionalCallback for representing optional callbacks (nil from Lua side). Introduced new cLuaState::cStackTable class for easy access to Lua table's elements. Fixes #3305.
2016-08-14Implemented OverworldClumpFlowersNiLSPACE3-0/+283
2016-08-13IPLookup: Fixed a soft memory leak when looking up invalid IPs.Mattes D1-1/+7
2016-08-13Converted cLuaState::cTableRef to use cTrackedRef.Mattes D12-463/+457
This makes the table-based callbacks resistent to LuaState unloads and safer to use.
2016-08-13Revert "Added a BasicStyleCheck for virtual functions without override keyword."Mattes D1-2/+0
This reverts commit a800b5bd9f663b5c7d78101a449f97e5a5789c9a.
2016-08-13Added a BasicStyleCheck for virtual functions without override keyword.Mattes D1-0/+2
2016-08-12Fix issue #3312Alexander Harkness1-0/+1
Nether brick fences now drop their item.
2016-08-11Removed debug log message.Mattes D1-1/+0
Ref.: #3308
2016-08-11Fixed LuaAPI library registrations. (#3308)Mattes D1-1/+18
lsqlite3 didn't clean up the stack properly. lxp didn't register itself properly.
2016-08-07Removed "." and ".." from cFile:GetFolderContents(). (#3301)Mattes D1-0/+14
2016-08-06Fixed cFile API bindings.Mattes D1-16/+16
2016-08-06Commented out code_out.cpp generating.Mattes D1-0/+4
Fixes #3296.
2016-08-04Fixed RasPi builds of unit tests.Mattes D15-44/+97
On RasPi with gcc 4.8.2, the asserts wouldn't compile when tests were enabled. Enforced the assumption that ASSERT code is generated only in Debug builds.
2016-08-04Added compile.sh folder check warningsLogicParrot1-0/+4
2016-08-03Fixed cFastRandom Test. (#3291)Alexander Harkness1-72/+0
This resolves #3290
2016-08-03Simplified cChunkMap chunk storage (#2565)Tiger Wang2-666/+257
2016-07-31Redstone fixes (#3285)Tiger Wang4-55/+99
* Comparators and pistons no longer update instantly * Fixes #3168. * Consolidated comparator code * As a result, fixed an issue where GetPowerLevel didn't consider block entities behind it (only GetFrontPowerLevel did)
2016-07-31Fix tab list sometimes not updating after a player leaves. (#3280)Alexander Harkness1-1/+1
When a player leaves the game, their client handle has its state changed to csDestroyed. This should fix issue #3138
2016-07-30Fixed port command line argument. (#3287)Alexander Harkness1-5/+1
2016-07-29Fix the error in #3270.Alexander Harkness1-1/+1
2016-07-29Revert "Redstone fixes"Mattes D4-99/+55
2016-07-29Consolidated comparator codeTiger Wang2-46/+42
* As a result, fixed an issue where GetPowerLevel didn't consider block entities behind it (only GetFrontPowerLevel did)
2016-07-29Comparators and pistons no longer update instantlyTiger Wang4-15/+63
* Fixes #3168.
2016-07-21Tab completion across worlds (#3270)Alexander Harkness5-1/+55
Fixes #2563.
2016-07-21CMake: Fix system Lua usage for non-5.1 versions. (#3271)Mattes D2-2/+2
2016-07-21Dropped 1.7 support (#3253)Mathias8-3663/+3
2016-07-20Fix endianness issue with ODROID-C2 Boards (#3268)Alexander Harkness1-1/+1
2016-07-18CMake: Remove needless minimum version specifications.Mattes D17-30/+0
2016-07-18Use system Lua, if available, to generate bindings.Mattes D2-23/+37
Closes #1031.
2016-07-18Updated API documentation.Mattes D14-41/+42
2016-07-18Vector3: Removed useless NormalizeCopy overload from LuaAPI.Mattes D1-1/+7
2016-07-18DiffAPIDesc: Support optional params in desc.Mattes D1-12/+12
2016-07-18LuaAPI: Fixed bindings for cChunkDesc:GetBlockTypeMetaMattes D3-2/+39
2016-07-18Bindings: Added a script to generate a diff between APIDesc and ToLua.Mattes D2-3/+553
This allows a simple copy operation from the DoxyComments into APIDesc.
2016-07-18Bindings: Don't generate docs for private symbols, mark static symbols.Mattes D1-13/+35
2016-07-18Bindings: Output description is valid Lua file.Mattes D1-3/+7
2016-07-18Bindings: Extract unexported DoxyComments.Mattes D1-15/+134
2016-07-18Bindings: Extract DoxyCommentsMattes D1-18/+187
2016-07-18Added a Pure-Lua implementation for bindings generation.Mattes D3-2/+511
The BindingsProcessor.lua script can be opened in ZeroBraneStudio and debugged from there, it invokes the entire ToLua++ processing. Also added docs-generation to the ToLua++ processor.
2016-07-18Fixes for boat entities (#3265)beeduck7-7/+186
protocol for vehicles now properly handled, protocol for boat paddles now properly handled, boats can no longer spawn underwater, boats now properly float, boat metadata now properly broadcasted.
2016-07-10Fixed Lua Json serializing a bool.Mattes D1-0/+10
Fixes #3257.
2016-07-07removed cast from BlockTrapdoor.h (#3256)gaurav sehgal3-4/+9
2016-07-06Fixed piston destroying other pistonsAltenius1-5/+9
Fixes #3251
2016-07-05Fixed falling block spawningAltenius1-1/+1
Fixes #3222
2016-07-02Bindings: Added missing dependencies.Mattes D1-0/+12
Fixes #3245
2016-07-02CircleCI: Check for missing Bindings dependenciesMattes D1-0/+108
This commit fails the CircleCI tests on purpose, so that we know that the check works.
2016-07-01Revert "Made redstone handlers static"Lukas Pioch2-93/+31
2016-06-30Close chest window if minecart is destroyedLukas Pioch1-0/+1
2016-06-27Converted cLuaState::cCallbackPtr into a UniquePtr.Mattes D9-24/+39
2016-06-27Removed dead code related to callbacks.Mattes D4-43/+3
2016-06-27cPluginManager: Use a callback for command handler registration.Mattes D8-209/+167
2016-06-27LuaState: Implemented proper locking for cCallback.Mattes D11-115/+151
2016-06-27Changed cLuaWindow callbacks to use cLuaState::cCallback.Mattes D7-183/+243
2016-06-27Removed the cPluginLua::cResettable class.Mattes D2-82/+1
The functionality provided by that class has been superseded by cLuaState::cCallback, with better multithreading support.
2016-06-27Changed world tasks to use cLuaState::cCallback.Mattes D1-67/+38
2016-06-27Changed plugin hook registrations to use cLuaState::cCallback.Mattes D5-1008/+190
2016-06-27Removed cWebPlugin, WebAdmin uses cLuaState::cCallback.Mattes D11-606/+584
2016-06-27Added cLuaState::cCallback for representing (resettable) Lua callbacks.Mattes D2-7/+231
2016-06-26Self tests (#3242)Mattes D2-6/+3
* SelfTests: Added a cEvent stress-test. * cNetwork: Fixed startup event hang. The original code used to hang with a ~ 1:50000 chance, because on Linux the cEvent was destroyed before its "Set()" returned.
2016-06-18cNetwork: Fixed possible hang when terminating immediately after init.Mattes D2-2/+27
2016-06-18Flush immediately after each line when running tests.Mattes D1-54/+55
2016-06-18SelfTests: Removed the unneeded cSelfTests class.Mattes D7-133/+0
2016-06-18SelfTests: Moved BoundingBox test to a separate project.Mattes D1-66/+0
2016-06-18SelfTests: Moved SchematicFileSerializer test into a separate project.Mattes D1-36/+0
2016-06-18SelfTests: Moved cCompositeChat test to a separate project.Mattes D1-89/+0
2016-06-18SelfTests: Moved ByteBuffer test to a separate project.Mattes D1-66/+0
2016-06-18Moved NetworkInterfaceEnum test to a separate test project.Mattes D1-28/+0
2016-06-15- Add a activation flag to droppers and dispensers. Previously droppers and dispensers shot items with every block update.QUSpilPrgm5-9/+34
- Fixes a range check inside cIncrementalRedstoneSimulator::Simulate
2016-06-10Normalized Vector3 API to use the same capitalization as all else.Mattes D3-8/+67
2016-06-05Bindings: Fixed cBoundingBox API.Mattes D3-11/+98
2016-06-05Bindings: Add a const-ptr variant to all stack getter functionsMattes D2-0/+16
2016-06-03Makes tall grass and large flowers bonemealableQUSpilPrgm6-12/+132
Adds the bonemeal particle effect to some more places
2016-06-03Update Dispensers and let them act more like in VanillaQUSpilPrgm9-103/+206
- 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
2016-06-02Fixed fall damageTiger Wang4-44/+17
* Fixes #3216
2016-05-31LuaState: Inter-plugin calls now support simple tables. (#3220)Mattes D2-54/+140
2016-05-29Added GetTeamNames to cScoreboard (#3217)PlasmaPower3-0/+44
Resolves #3210
2016-05-28Don't let redstone blocks power adjacent blocks. (#3214)QUSpilPrgm2-3/+2
* Don't let redstone blocks power adjacent blocks. This fixes issue #2966
2016-05-28Made redstone handlers staticTiger Wang2-31/+93
* Improvements to performance? Maybe. Can't hurt (he says).
2016-05-141.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135)Pokechu2230-101/+5308
* 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
2016-05-03Fixed death on teleportation or leaving Minecart (#3181)LogicParrot4-6/+32
2016-05-03Fix crash on world travel (#3180)LogicParrot1-1/+1
2016-05-01Fix Crash on stopping the server (#3176)LogicParrot3-2/+14
2016-04-30Proper minecart DoSetSpeed Override (#3174)LogicParrot1-1/+1
Closes #3173, Introduced in #3037.
2016-04-30Disable Enderman Spawn (Issue #3108) (#3170)benf5161-2/+2
Temporarily disabled enderman spawning until the glitches can be fixed
2016-04-24ChunkLayers now stored in std::mapLogicParrot2-62/+61
2016-04-24Fixed some logout crashesLogicParrot1-2/+3
2016-04-24Revert "ChunkLayers now stored in std::map"LogicParrot2-54/+62
2016-04-23ChunkLayers now stored in std::mapLogicParrot2-62/+54
2016-04-23ClientHandle destruction thread safetyLogicParrot1-2/+13
2016-04-23Out of world blocks are now always considered air blocksLogicParrot3-15/+10
2016-04-22Reduced unnecessary block updatesLogicParrot16-91/+54
2016-04-22Fix minecart block collision on curved railsWoazboat1-10/+56
2016-04-22Updated vector hashing bit operationsLogicParrot1-6/+4
2016-04-19Auto clean bad world linkagesLogicParrot3-17/+16
2016-04-19Proper fix for #3136 (#3143)Alexander Harkness1-17/+11
2016-04-18Fix issues below y = 0LogicParrot4-11/+21
2016-04-16Prevented snow from killing grassLogicParrot1-2/+4
2016-04-16Updated cChunk::SetMeta, fixed grass growth, reduced markDirty/setMeta usageLogicParrot10-26/+39
2016-04-15Add speed limit enforcement for minecartsMarvin Kopf2-41/+54
2016-04-14Revert "Issue3136"LogicParrot3-14/+27
2016-04-13Fix occasional freeze bugLogicParrot2-39/+42
2016-04-12Fixed port override code.Alexander Harkness3-27/+14
2016-04-06Revert "Move mob tick code to cChunk"LogicParrot2-40/+56
2016-04-06Move mob tick code to cChunkLogicParrot2-56/+40
2016-04-06Manual mob burn codeLogicParrot1-7/+34
2016-04-05Minor improvements to player freezeLogicParrot2-5/+5
2016-04-05Improved player freeze codeLogicParrot7-75/+99
2016-04-04Prevent Nether teleportation loopsLogicParrot1-1/+1
2016-03-31Players never fall through unloaded chunks or end up inside solids on teleportLogicParrot5-29/+138
2016-03-31Fix adding players to worldLogicParrot1-1/+1
2016-03-31Player death crashfixLogicParrot1-2/+4
2016-03-30Entities are never lostLogicParrot3-32/+19
2016-03-30MoveToWorld defaults to spawnpointLogicParrot2-3/+21
2016-03-29Bed's world is now savedLogicParrot2-4/+47
2016-03-28Updated icons and logoMathias6-0/+0
2016-03-28Fix passive mob destruction crashesLogicParrot1-0/+1
2016-03-23Rewrite mob tick codeLogicParrot1-18/+41
2016-03-21Revert "Lua callback"Mattes D18-1259/+1925
2016-03-18Fixed misuse of comma.Lukas Pioch2-5/+5
2016-03-18Fixed leaping potion not giving jump boostBlitz Rakete1-0/+1
2016-03-17Changed cLuaWindow callbacks to use cLuaState::cCallback.Mattes D7-182/+242
2016-03-17Removed the cPluginLua::cResettable class.Mattes D2-82/+1
The functionality provided by that class has been superseded by cLuaState::cCallback, with better multithreading support.
2016-03-17Changed world tasks to use cLuaState::cCallback.Mattes D1-67/+38
2016-03-17Changed plugin hook registrations to use cLuaState::cCallback.Mattes D5-1008/+190
2016-03-17Removed cWebPlugin, WebAdmin uses cLuaState::cCallback.Mattes D11-606/+584
2016-03-17Added cLuaState::cCallback for representing (resettable) Lua callbacks.Mattes D2-7/+231
2016-03-11HTTP: Added missing HasAuth flag initialization.Mattes D1-1/+2
2016-03-03HTTP: Fixed header parsing.Mattes D1-0/+1
2016-03-03WebAdmin: Finish HTTP responses.Mattes D1-0/+1
2016-03-01fixed horse bugtonibm191-1/+4
horse could be "controlled" without a saddle or being tamed
2016-03-01HTTP: Fixed typos and bad leftovers.Mattes D3-3/+4
2016-03-01Renamed HTTPResponse to HTTPOutgoingResponse.Mattes D6-14/+13
2016-03-01WebAdmin uses the new HTTP parser framework.Mattes D16-871/+575
2016-03-01HTTP: Fixed response parser, unified API.Mattes D4-16/+22
2016-03-01Fixed HTTP parsing when in insecure mode.Mattes D1-2/+6
Parsing would ignore the size of data already buffered, resulting in bad_alloc exception. Fixes #2898.
2016-03-01Renamed HTTPServer folder to HTTP.Mattes D31-140/+407
It contains client code as well.
2016-03-01Added HTTPResponseParser.Mattes D6-0/+508
2016-03-01Moved cHTTPRequest to a separate file, renamed to cHTTPRequestParser.Mattes D13-325/+347
2016-03-01Renamed the HTTP classes to indicate they're for server.Mattes D9-77/+75
2016-03-01Mobs no longer spawn at the top of the nether.tonibm191-0/+5
I don't really know if this is the right place for the check, but it works. Add bedrock check fix typo Using code provided by NiLSpace and fixed a horse's bug -Horses can no longer be "controlled" if they're not tamed and saddled removed unrelated horse code Fixed mobs spawning above bedrock
2016-02-24Fixed LinearUpscale's bounds checking.Mattes D1-4/+4
2016-02-24Made ProtIntGen's max size compile-time-configurable.Mattes D1-1/+13
2016-02-24Removed old and wrong code from Globals.h.Mattes D1-16/+1
2016-02-24Fixed includes in IntGen.Mattes D1-2/+2
2016-02-22Fixed removing entities from parent chunksLogicParrot1-1/+1
2016-02-21LuaTCPLink: Report data received via SSL just before connection closed.Mattes D1-2/+10
2016-02-21Add check if entity is in chunk before changing tick statusMarvin Kopf1-2/+8
2016-02-20Fix #3030Alexander Harkness1-9/+1
Logicparrot's instructions
2016-02-19Stop Wolf from following player when he is flyingTyler Encke1-4/+12
Check to make sure player is not flying before allowing wolf to move to player. Fixed isFlying to IsFlying
2016-02-19Proper entity destruction in non-ticking chunksLogicParrot17-177/+263
2016-02-18Don't remove water after ice block has been destroyedLukas Pioch1-1/+5
2016-02-16Fix minecart entity collisionMarvin Kopf2-27/+11
* Minecarts no longer handle a collision if the entity is behind them. * Minecarts will leave the pushing after a collision on a straight rail to the entity.
2016-02-16Fix unicode handling in StringUtils::TrimStringLogicParrot1-2/+2
2016-02-09Update RedstoneSimulator to delete unused cached PowerDataMarvin Kopf2-1/+10
When a new block was placed that has a corresponding RedstoneHandler the PowerData for the position was cached, but never deleted and remained unchanged when the block got destroyed. The RedstoneSimulator now erases all cached PowerData for positions where the block doesn't have a RedstoneHandler (i.e. Air).
2016-02-09Write to console when autofixing linkagesLogicParrot1-0/+1
2016-02-09Add forum link to linkage error messageLogicParrot1-1/+1
2016-02-08Improve world linkage error messageLogicParrot1-2/+2
2016-02-08Prevent player from falling when block breaking is deniedLogicParrot1-0/+2
2016-02-08Add DefaultWorld to newly generated INILogicParrot1-1/+2
2016-02-08remove cWorld::createAndInitializeWorldLogicParrot4-44/+14
2016-02-06Fix Pickups of BlockFlowerDrahoslav Bednář1-2/+3
BlockMeta is handled correctly, when converting to pickups, so flowers now drops right flower type.
2016-02-06Style checker - Prevent whitespace-only linesLogicParrot1-1/+1
2016-02-06Proper world linkages and dimension types for newly created world.ini'sLogicParrot2-3/+71
2016-02-05Bulk clearing of whitespaceLogicParrot406-4497/+4497
2016-02-05Tab completion for player names now case insensitive.Marvin Kopf1-1/+1
2016-02-05Ignore trailing and leading spaces in INI values# Please enter the commit message for your changes. Lines startingLogicParrot2-21/+21
2016-02-05Correct typo in documentation.Alexander Harkness1-1/+1
2016-02-05Prevent server from starting if there's bad world linkageLogicParrot3-3/+50
2016-02-04Prevent interspecies breedingLogicParrot1-11/+25
2016-02-04Pathfinder now properly treats nonsolids above fenceLogicParrot1-11/+15
2016-02-04Fix unexpected world creation introduced by #2821LogicParrot1-1/+1
2016-02-04implement height logic for Acacia blocksKevin Riggle1-1/+12
2016-02-03cMonster::m_Target safety across worldsLogicParrot17-83/+294
2016-02-02Fix TabAutoCompleteMarvin Kopf1-1/+21
For tab on '/command s' the server now returns 'subcommand' instead of '/command subcommand'.
2016-02-02Fixed cChunk::m_Entities corruption upon world travelLogicParrot4-8/+57
2016-02-02Fix cPawn pushingMarvin Kopf3-0/+22
cPawn instances can no longer push an entity they are attached to. cEntity now has a IsAttachedTo method.
2016-01-31Updated old forum linksMathias12-12/+12
2016-01-29MCServer to CuberiteMathias1-1/+1
2016-01-28Front-end updateMathias1-1/+0
2016-01-24LuaTcpSsl: Disabled cert verification due to missing CA chain.Mattes D1-2/+2
2016-01-22Fixed HTTP parsing when in insecure mode.Mattes D1-2/+6
Parsing would ignore the size of data already buffered, resulting in bad_alloc exception. Fixes #2898.
2016-01-22Improved tamed wolf pack cooperation and projectile reactionsLogicParrot12-82/+213
2016-01-21Fix running as a service.Anthony Birkett2-10/+6
Two problems identified, both traced to commit 4315a11 (main.cpp) ParseArguments() was no longer being called before checking cRoot::m_RunAsService. This led to m_RunAsService never being set (we use -d on the command line to instigate a service start). (Root.cpp) Terminate events were being ignored when running as a service. We only need to ignore the cin.good() call, not terminate events as a whole.
2016-01-21Spiders now friendly at daylight, new cChunk functionsLogicParrot13-163/+221
2016-01-17Fixed race conditionsLukas Pioch2-2/+2
2016-01-17Use IsBlockWater in cPathLogicParrot1-1/+1
2016-01-17No second spawn broadcast necessaryWinfieldSteve3-3/+0
2016-01-16Fixed wrong knockback direction after explosion damageLogicParrot1-0/+4
2016-01-16Fixed non-natural spawning near player (egg, breeding, etc.)LogicParrot2-183/+184
2016-01-16Fix crash when tamed wolf is hit by arrowsLogicParrot7-61/+79
2016-01-16Fix fall damage crash when tamed wolves neabryLogicParrot1-1/+5
2016-01-13Limited the username length to 16 characters.bibo382-0/+8
This fixes a client crash, because Minecraft requires that a username is not longer than 16 characters. See also: http://minecraft.gamepedia.com/The_Player#Name Fixes #2545
2016-01-12Do not spawn mobs too close to playerLogicParrot1-54/+63
2016-01-12Fixed creeper calling TargetIsInRange with null m_TargetLogicParrot1-2/+2
2016-01-12Fixed crash introduced by #2821LogicParrot1-29/+31
2016-01-12Fix mob attack intervalLogicParrot7-24/+28
2016-01-12Friendly wolf attack safety checksLogicParrot1-1/+14
2016-01-12Tamed wolf assists owner (attack / defence)LogicParrot11-149/+292
2016-01-12Added detailed logging to cBlockArea::Read() bad Y coords.Mattes D1-4/+12
Ref.: http://forum.mc-server.org/showthread.php?tid=2307
2016-01-12Exported GetSeed to lua and added file extension opendb to .gitignore.Lukas Pioch1-0/+3
2016-01-11Changed the format of the MobHead data to allow MobHeads working on MInecraft 1.8bibo386-17/+125
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
2016-01-11Fixed issue #2218Austin Martin1-3/+5
2016-01-10Added "core.help" permission to Default rank.Mattes D1-0/+1
2016-01-10Fixed not working packet decompressionbibo381-13/+18
A compressed packed contains always the uncompressed size, but in the code this size was threatened as the compressed data size. This created a failure, when the client compressed a packet. See: http://wiki.vg/Protocol#With_compression Fixes #2841 Fixes #2467
2016-01-06Fixed Clang warnings.Mattes D6-33/+49
2016-01-03Fixed typoMathias1-1/+1
2016-01-03More blocks that can't be mined with silktouchMathias1-1/+28
2016-01-02Fix typo (ammount)Arnaud Meuret1-3/+3
2016-01-01Renamed leftover strings to Cuberite / Server, as needed.Mattes D21-186/+46
Also upgraded the user setting file for MSVC to 2013.
2015-12-30Fixed default Nether generator params.Mattes D1-1/+1
The prefab file is "NetherFort"
2015-12-30Fixed problems in cBlockingSslClientSocket.Mattes D3-11/+24
2015-12-30Fixed the monster burn code.Mattes D1-3/+15
The old code failed when the monster was out of Y range.
2015-12-28Removed excessive logging in redstone simulator.Mattes D1-7/+0
2015-12-27Deleted cPath::BlockTypeIsFenceLogicParrot3-34/+13
2015-12-25Added the cUrlParser class, exported to Lua API.Mattes D5-3/+424
2015-12-25Update fences and gates listSafwat Halaby1-2/+9
Update fences and gates list
2015-12-25Freeze player until chunk is loadedSafwat Halaby2-1/+112
2015-12-25Fix pre - #2815 default world linkage configsSafwat Halaby2-3/+49
2015-12-25Nether and End in settings.ini by default, and created at startupSafwat Halaby2-4/+18
2015-12-24Silenced the Redstone Simulator console spamSafwat Halaby17-20/+20
2015-12-24Added a Json parser and serializer to Lua API.Mattes D4-0/+351
2015-12-24PF - "Special blocks" handlingSafwat Halaby14-219/+400
2015-12-24Added IsBlockFence method to definesJulian Laubstein1-0/+24
2015-12-23Fixed builds on FreeBSD 32bitJulian Laubstein1-0/+1
2015-12-23Chicken egg code early bailoutSafwat Halaby1-19/+21
2015-12-23Baby chickens don't lay eggsGargaj1-16/+19
2015-12-23Fixed return value description in doxycomment.Mattes D1-1/+1
2015-12-22add handling of water bottleGargaj3-0/+98
2015-12-22Added GeoTrust Root Certificateworktycho1-1/+24
2015-12-22Ignore == if followed by \worktycho1-1/+1
Ignore the space before == rule if immediately followed by a \. If it is imediatly followed by a \, then this is likely the base64 padding at the end of a certificate, which is followed by \n.
2015-12-21cTeam:GetName returning wrong namethen0rTh1-1/+1
2015-12-21PF - Improved mob jumpingSafwat Halaby3-81/+151
2015-12-21Revert "Changed cPath to have a reset method".Safwat Halaby4-103/+38
2015-12-20Fixed spawn point. Wrong number for divisions and wrong highest spawn point.Lukas Pioch1-3/+4
2015-12-20Fix race conditiontycho2-2/+4
2015-12-19Fixes for clang-3.7Lukas Pioch5-7/+7
2015-12-19Use atomic bool for isthread terminatetycho1-1/+2
2015-12-19Added HTTPS links wherever they are supported.Alexander Harkness10-126/+89
2015-12-18Fix off by two error in ReadStringworktycho1-1/+1
2015-12-18Check for invalid tags when reading a compound tagtycho1-2/+6
2015-12-18Reorganised the redstone simulatorTiger Wang55-3122/+2337
-> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved
2015-12-18Revised the explosion-related Lua API and docs.Mattes D6-108/+215
Fixes #2746.
2015-12-18Removed unused class cChunkDataCollector.Mattes D1-20/+0
2015-12-18Fixed String Parsing crash bugtycho1-5/+1
Check string length against actual remaining data, not an abitary constant
2015-12-17PieceStructures generator: Fixed wrong merge conflict resolution.Mattes D2-5/+5
Also improved reporting messages. Ref.: http://forum.mc-server.org/showthread.php?tid=2256
2015-12-17Moved variables into scope, removed unused variables and fixed variablesLukas Pioch9-19/+10
2015-12-16Changed cPath to have a reset method.tycho4-38/+103
Also reverts "Changed raw cPath to an unique_ptr, fixes memory leak" This reverts commit 1515d37684b469f212bb9858cca6128d74e591b6.
2015-12-15allow horse control (still quite buggy)Gargaj3-2/+29
2015-12-15Delete copy and move constructors from cPathtycho1-0/+7
cPath is not safe to copy or move due to pointers into the std::map m_Map.
2015-12-15Fixed warning regarding an uninitialized valueJulian Laubstein1-1/+1
2015-12-15Fixed warning regarding an uninitialized valueJulian Laubstein1-1/+1
2015-12-15Changed raw cPath to an unique_ptr, fixes memory leakLukas Pioch2-9/+9
2015-12-13Strip meta from hopper on converting to pickupJulian Laubstein1-0/+6
2015-12-13blockheight mechanismGargaj14-128/+284
2015-12-13Set overgrown wart age to 3Safwat Halaby1-1/+5
2015-12-13allow use failures to propagate from the entity/block to the playerGargaj54-76/+118
2015-12-13snow golems are "neutral"Gargaj1-5/+5
2015-12-13sheep color inheritanceGargaj4-1/+64
2015-12-13Remove stray "return"Safwat Halaby1-1/+0
2015-12-13Fixed mobs attacking Creative Mode playersSafwat Halaby2-11/+15
2015-12-13Decoupled cMonster and path recalc logic, re-implemented recalcSafwat Halaby8-335/+486
2015-12-13Stop pathfinding over cobble wallsGargaj1-0/+1
Also 1.5 blocks high, shouldn't pathfind over it.
2015-12-12Nether wart only ages to 3Gargaj1-2/+2
See http://minecraft.gamepedia.com/Nether_Wart
2015-12-11Test for correct coordinates when fishingGargaj2-1/+2
Fun fact: this was able to actually deadlock the server depending on where you were standing :)
2015-12-10Test for correct coordinates when fishingGargaj2-1/+2
Fun fact: this was able to actually deadlock the server depending on where you were standing :)
2015-12-09Fixed opposite condition in OreNests finisher.Mattes D1-2/+2
2015-12-08stop creepers from exploding even if they just diedGargaj1-1/+1
2015-12-08Small spelling issues fixedJulian Laubstein1-3/+3
2015-12-06Tilling dirt should send block updateGargaj1-1/+1
There are BUD switches that are built on this (https://www.youtube.com/watch?v=Bk_ChvmtCNY) but more prominently, torches placed on dirt blocks should pop off when the dirt block is tilled.
2015-12-05Spawn chickens from eggs as babiesGargaj1-5/+5
This actually works now with the breeding patch (would also close https://github.com/cuberite/cuberite/pull/2366)
2015-12-03fix wolf collarsGargaj1-2/+2
I don't know why this had an inversion but it consistently made the wrong collar color (i.e. yellow dye made the collar blue)
2015-12-03Merge mushroom soup into generic food handlerGargaj4-56/+25
...and fix eating the bowl when eating rabbit stew
2015-12-03Use C++11 auto instead of per-platform types.Mattes D1-8/+1
Closes #2686.
2015-12-01Changed Nether defaults to use PieceStructures.Mattes D1-1/+1
2015-12-01Added more details to the cubeset format documentation.Mattes D1-2/+2
2015-12-01Added PieceStructures generator.Mattes D45-11822/+1952
2015-11-30Added documentation for breeding codeSafwat Halaby2-5/+25
2015-11-29implement breedingGargaj11-19/+209
2015-11-27Normalized OrePockets generator config names.Mattes D1-2/+2
All INI values use AllInitialCapsStyle, no underscores.
2015-11-25OrePockets finisher is now configurable.Mattes D4-26/+127
2015-11-25Added OrePockets and DirtPockets finish gens.Mattes D5-267/+548
2015-11-24fix escaped characters in signs (fixes #1736, fixes #2170)Gargaj1-1/+6
2015-11-24Add enum for Sound and Particle EffectsDave Tucker31-56/+124
Fixes #2603 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2015-11-23change from single followable item to multipleGargaj10-12/+65
2015-11-23Fixed display of helpmessageJulian Laubstein1-1/+1
2015-11-23Changed static_cast to FloorCJulian Laubstein1-1/+1
2015-11-23Adjusted height validation using cChunkDef::IsValidHeight()Julian Laubstein3-11/+11
2015-11-23Added dash to helpstring outputJulian Laubstein1-1/+1
2015-11-23Removed dashes in help messages for consistencyJulian Laubstein1-8/+8
2015-11-23Added cChunkDef::IsValidWidth()Julian Laubstein1-1/+6
2015-11-22Revert "Changed description to "Cuberite - Minecraft in C++!""Safwat Halaby1-1/+1
This reverts commit f4406c047e0d1d11631e350fa61ad04d92b950ba.
2015-11-20Changed description to "Cuberite - Minecraft in C++!"Safwat Halaby1-1/+1
2015-11-19Include execinfo.h only on __GLIBC__Thomas Boerger1-1/+3
2015-11-19Define stacktrace functions only if __GLIBC__ is definedThomas Boerger1-5/+7
2015-11-19Check for __GLIBC__ to detect correct strerror_r versionThomas Boerger1-1/+1
2015-11-16changed mob age from char to intJulian Laubstein4-41/+92
2015-11-13Improved spawn location calculations.samoatesgames3-72/+175
- Supports Overworld and Nether spawns. - Supports spawning under objects, but still above ground (e.g. under the leaves of a tree). - Protects against spawning in oceans. - Protects against spawning in water. - Uses a radial search about the origin, rather than a linear. - Correctly calculates Nether spawn on spawn world generation (fixes: cuberite#2548) - Fixes a bug in CheckPlayerSpawnPoint() where the X offset was used in both the X and Z coords (BLOCKTYPE BlockType = GetBlock(a_PosX + Coords[i].x, a_PosY, a_PosZ + Coords[i].x);)
2015-11-13Blocks outside the world are never solidworktycho1-0/+4
Fixes #2539
2015-11-10Avoid reading out of boundsGargaj1-4/+14
as per https://github.com/cuberite/cuberite/pull/2630#discussion_r44377411
2015-11-10Added cChunkDef::IsValidHeight()Julian Laubstein1-0/+6
2015-11-10Avoid division by zeroGargaj1-1/+1
It won't do much because direction will still be a nullvector, but it at least avoids a CPU spike.
2015-11-10fix shallow water + add future code for liquid fall dampeningGargaj1-3/+11
2015-11-09remove slab from inventory when using it on another slab (fixes #2610)Gargaj1-3/+27
2015-11-09idle/deflating creeper should be -1Gargaj2-2/+2
according to http://wiki.vg/Entities#Creeper
2015-11-09Add comment to Attack() return valuesGargaj1-0/+4
2015-11-08neutral mobs shouldn't chase the player unless aggro'dGargaj3-1/+8
code style neutral mobs shouldn't chase the player unless aggro'd neutral mobs shouldn't chase the player unless aggro'd Merge branch 'chilloutyo' of github.com:Gargaj/cuberite into chilloutyo Conflicts: src/Mobs/PassiveAggressiveMonster.h code style Merge branch 'chilloutyo' of github.com:Gargaj/cuberite into chilloutyo
2015-11-08Fix memory leakworktycho1-1/+1
Fixes CID 132249
2015-11-08Fix chicken flyingGargaj1-0/+2
The gravity might not be correct but my rough timing (with a stopwatch) seems to be close. Merge branch 'master' into patch-1 Merge branch 'master' into patch-1 Merge branch 'master' into patch-1
2015-11-08fix cavespider poisoning even if attack is in cooldownGargaj16-27/+48
make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack Merge branch 'master' into cavespider-attack Merge branch 'master' into cavespider-attack fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack Merge branch 'master' into cavespider-attack Merge branch 'master' into cavespider-attack Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack
2015-11-08add sound to stone pressure platesGargaj1-0/+9
add sound to stone pressure plates
2015-11-07Only send creeper updates when there is a changeGargaj1-3/+6
Otherwise this keeps spamming the metadata packet for all the creepers on the server.
2015-11-07Refactored code to use vectors in the cPistonHandler classbibo383-52/+42
2015-11-07Added some code improvementsbibo382-22/+42
2015-11-07Renamed GetDirectionVec into VectorFromMetaData to improve code readability.bibo382-6/+6
2015-11-07Commented the GetDirectionVec methodbibo381-0/+3
2015-11-07Fixed the style problems and added some commentsbibo382-6/+18
2015-11-07Removed unused CanPull methodbibo381-11/+0
2015-11-07Extracted block moving code into a seperate methodbibo382-77/+52
2015-11-07Replaced the usage of pistonMeta with a direction vector to allow better meta value abstractionbibo382-73/+63
2015-11-07Fixed pulling/pushing of breakable blocks, which are not required to be movedbibo381-3/+20
2015-11-07Implemented the basic slime block pullingbibo381-17/+62
2015-11-07Implemented the SlimeBlock into the CanPush method to allow slimeblocks to work correctly when pushedbibo381-15/+26
2015-11-07Piston extension now works with the new recursive CanPushBlock method.bibo381-36/+41
2015-11-07Added the CanPushBlock method for the piston push check.bibo382-24/+41
This allows the recursive check for blocks to push, which is needed to implement the slime blocks into the piston system.
2015-11-07Implemented the slime block dropping behaviour.bibo383-0/+35
Fixes #2530
2015-11-07fix pressure plate power levelsGargaj1-4/+4
2015-11-07fix pressure plate power levelsGargaj1-4/+4
2015-11-07don't attack if deadGargaj1-1/+1
2015-11-07code styleGargaj1-3/+3
2015-11-07implement pushing/shoving based on @NiLSPACE's suggestionGargaj1-0/+36
2015-11-06chickens don't take fall damageGargaj2-0/+6
2015-11-05Destroy an ender crystal, damage a dragon when hit by an egg.Alexander Harkness2-92/+103
2015-11-05MSVC: Reviewed warnings, disabled a useless one, re-enabled an old one.Mattes D1-3/+1
2015-11-04Fix being set on fire while directly being under lavaGargaj1-1/+1
Right now you will be on fire if there is a block of lava right above you, even if it doesn't pour down.
2015-11-03Implemented brewingLukas Pioch34-9/+1523
2015-11-03Use an unreserved qualifier for thread local storageCengiz Can1-9/+11
Fixes #1906
2015-11-03Fixed failed assertationbibo381-20/+23
This was caused by a monster with a negative Y-axis. Fixes #2336
2015-11-02Examined a fix for #2588Tiger Wang1-0/+6
2015-11-02Fix deadlock, resolves #2521Alexander Harkness1-1/+4
2015-11-01Implemented the Water Breathing Potion functionality.bibo382-0/+16
Fixes #2556
2015-10-31Implemented the FireResistence potion effects.bibo385-6/+34
This not only provides fire resistence, but also prevents blaze fireballs. See #2556
2015-10-31Debug mode: Fixed assertion, if player below y < 0Lukas Pioch1-3/+3
2015-10-30Changed for-loop iterator in File.cpp to a reference type to reduce object copying and fix the clang build.bibo381-1/+1
Fixes #2580
2015-10-29Added cave spider to MobSpawnerLukas Pioch1-0/+11
2015-10-29Revert "Pressure plate fix"Mattes D1-45/+14
2015-10-28fixed pressure plate bugsSchwertspize1-14/+45
2015-10-28Fix wrong teleport permission. (solves #2369)Alexander Harkness1-4/+4
2015-10-26Update Loops required for JsonCPPLukas Pioch4-12/+12
2015-10-21Fixed a crash when sending messages too early after connection.Mattes D1-1/+12
2015-10-15ReTyped block idsJulian Laubstein1-7/+12
2015-10-12Removed unused typedefworktycho1-1/+0
2015-10-08Fixed a possible crash in HTTPS server.Mattes D1-0/+2
2015-10-08StyleCheck: Check spaces around ==, <=, >=Mattes D2-5/+13
2015-10-08Fixed bindings for cTCPLink:StartTLSClient().Mattes D1-12/+2
The bindings used to enforce client cert, now it's optional.
2015-10-05Spectator Mode doesn't fly[FIX]OdnetninI1-0/+1
2015-10-05Generator: Fixed missing hitbox assignment.Mattes D2-0/+4
This had caused village houses to generate too close to each other.
2015-10-05Improved the data structure for storing loaded chunkstycho2-8/+8
Should significantly increase the performance of deciding which chunks to stream
2015-10-04Fixed a race condition between chunk loader and generator.Mattes D10-65/+45
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.
2015-10-02Improved types of utf 16 stringstycho3-13/+13
2015-10-02Remove a pair of unused broken functionstycho2-38/+0
2015-10-01The bottom layer cannot hold a valid spawn pointworktycho1-0/+6
Fixes #2510
2015-09-28Added LuaState tracker and memory stats logging.Mattes D3-0/+118
2015-09-28Made Lua API check strings strictly.Mattes D1-1/+4
Previously nil was accepted as a string in cLuaState::CheckParamString(), now it's reported as an error.
2015-09-28Partial revert of #2446Safwat Halaby2-7/+53
2015-09-28Added weather intervals to world.ini settings.Mattes D2-4/+49
2015-09-27Disabled squids and Guardians pathfinding, #2460Safwat Halaby2-2/+2
2015-09-26Added the _UNICODE flag on WindowsTiger Wang3-12/+12
2015-09-26Extended and fixed the cFile API.Mattes D5-99/+605
2015-09-25Prepared ScheduleTask for threading refactorTiger Wang4-298/+55
* Llama-ified and condensed Schedule/QueueTask - Removed hackery done with piston animations
2015-09-25Maked it compileable for clang-3.7Lukas Pioch8-20/+20
2015-09-25Lilypads drop when not on source water.Mattes D1-0/+16
Lilypad blocks now break and drop as items when the block below them changes to non-water or non-source water. Fixes #2404.
2015-09-25Compile.sh namechange to cuberiteSafwat Halaby21-38/+38
2015-09-25Namechange to CuberiteMattes D21-38/+38
2015-09-24fixed casttycho1-1/+1
2015-09-24Add new "ForEach" function: ForEachLoadedChunk.tycho5-1/+98
2015-09-21Refactored cProtocol Chat handlingtycho8-227/+32
2015-09-19Ignore Sigpipetycho1-0/+4
2015-09-19Fixed wrong assumtion regarding RemoveClienttycho2-4/+6
Remove client can be called with a client that is not present in the chunk
2015-09-19Fixed erasetycho1-1/+1
2015-09-18Removed a significant performance issue.tycho2-82/+71
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.
2015-09-17Added CircleCI for stylechecking.Mattes D10-523/+57
This will allow us to remove the stylecheck from Travis builds, making them a bit faster, and having fast style checks
2015-09-15Increase robustness of the logging subsystemtycho9-121/+155
2015-09-14Fixed flint drop rates from 1/30 to 1/10 to match the wiki.David Erbelding1-1/+1
2015-09-08Fixed Lua output folders for Windows builds.Mattes D1-2/+2
Fixes #2468.
2015-09-06added bungeecord support for protocol18xEric Chai1-0/+14
2015-09-05Renamed output directory to ServerMattes D1-8/+8
2015-09-02Fixes #2485Tiger Wang1-1/+0
2015-08-27Include signal.h jointly for POSIX systemsMatti Hanninen1-5/+7
Otherwise, for example, FreeBSD the build fails due to SIGKILL not being around.
2015-08-27Small fix for cEventTiger Wang2-8/+13
Don't bother using atomics since a synchronisation primitive is already being used.
2015-08-25Update cRankManager::SetRankVisualsAZARI Nicolas1-1/+1
2015-08-24Fix clang compile errorTheo Tosini1-1/+1
Clang would previously fail on debug builds due to the use of an old-style cast.
2015-08-22Removed unused functionTiger Wang2-23/+0
* Fixes #2444
2015-08-22Fixed a position bug in the pathfinderTiger Wang4-101/+25
2015-08-22Cast UINT to WORD to appease warningTiger Wang1-6/+5
* Additional minor cleanups
2015-08-21Namespace qualify std::abs, use explicit castMatti Hänninen1-1/+1
Without 'std' namespace qualification Clang (at least Apple Clang 6.1) seems to resolve 'abs' to the 'abs' function in 'cstdlib'. This in turn triggers the 'absolute-value' warning which in turn is promoted to error. Implicit casts trigger 'old-style-cast' warnings which are promoted to errors.
2015-08-20Fixed food drain bugsTiger Wang8-317/+162
2015-08-20Use container-based infrastructure for TravisTiger Wang3-4/+4
2015-08-20Fixed and improved restartingTiger Wang5-195/+235
Restarts are now an actual, close-as-possible to application exit+reopen.
2015-08-19* Logic for handling plant growth has been centralized into cBlockPlant, and all growable plants now inherit from it.Samuel Barney11-30/+256
* Blocks now have an effect upon plant growth, just like in vanilla.
2015-08-18Some warning fixesJulian Laubstein9-39/+70
2015-08-12Fix old style casts and implicit conversionsMatti Hänninen18-145/+153
2015-08-10Checked LeakFinder in MSVC2015, enabled support for it.Mattes D2-6/+7
2015-08-09MSVC: Ignore the deprecation warning in 3rd party StackWalker.Mattes D1-0/+1
2015-08-08Flush log file when a warning or error message is output.Mattes D1-0/+7
Fixes #2419.
2015-08-07Refactored code to use cLuaStateSamuel Barney2-34/+29
Fixes #2377.
2015-08-01Fixed Iron DoorNicholas W1-1/+6
2015-07-31Unified the doxy-comment format.Mattes D114-850/+869
2015-07-31Chunks that fail to load are offloaded to extra files.Mattes D2-61/+107
Ref.: #1970
2015-07-31Added reason parameter to load failures.Mattes D1-13/+13
2015-07-31Moved AString reading hack to cFile.Mattes D3-24/+49
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney117-1119/+1103
2015-07-26Fixed custom recipes result clientside bug.Mattes D1-0/+8
Fixes #2345.
2015-07-23Fixed cNetworkSingleton's HasTerminated flag.Mattes D1-1/+4
Should fix random failures in Google-test.
2015-07-20Fix FreeBSD build broken by strict compiler checkMatti Hänninen1-0/+1
Downgrade tautological-compare to warning to let the build pass on FreeBSD 10.0. Note that I wasn't able to reproduce the problem on OS X Clang; probably due to Clang version differences.
2015-07-17Added documentation for GetLargeTreeAdjustmentSamuel Barney1-0/+1
2015-07-17Fixed redstone issuescribblemaniac1-2/+4
Fixed issue where glowstone blocks would block power transmission in some situations.
2015-07-17 Added Rabbit Metadata values.bibo385-54/+109
Added the Rabbit Types and the MoreCarrotTicks value. Types are selected randomly on creation. Fixes #1867
2015-07-16Spawn baby mobshallucino13-17/+24
2015-07-16Improved spider AIscribblemaniac3-1/+44
Fixes #2335
2015-07-15Now Water sources will also be created on top of existing water sources.bibo381-3/+6
See also on http://minecraft.gamepedia.com/Water#Source_blocks Fixes #2097
2015-07-15Leather Armor can now be dyed.Samuel Barney9-6/+382
* Created new color class to handle dye-related coloring
2015-07-15Added CustomName and Health to sended Metadata of Monsters.bibo382-10/+27
Fixes #2113
2015-07-15Fixed tall grass trying to be placed in cold biomes.Samuel Barney1-1/+7
2015-07-14Improved mapsTiger Wang103-925/+924
2015-07-14Support ageable mobsHallucino5-28/+156
Move ageable stuff in Monster directly
2015-07-14Fix food drain on movement.LO1ZB1-11/+10
2015-07-14Fix duping doors (#1327)mmdk951-0/+4
2015-07-14Torches can now be placed on top of upside down stairs.Samuel Barney1-0/+16
2015-07-13Sapling Growth UpdateSamuel Barney4-14/+246
* Growth has been slowed down * Saplings do not grow if they do not have enough space to grow * Saplings do not grow unless the light level is 9 or above * Dark Oak doesn't grow unless it is in a 2x2 Jungle Trees now will grow into a large tree when 2x2 saplings are used.
2015-07-13Switched from using std::max(std::min()) to using ClampSamuel Barney1-2/+2
2015-07-12Changing the shared_ptr/unique_ptr constructors to the make_shared/make_unique functionsbibo383-69/+69
2015-07-12Fixed DropSpenser sound #2333mmdk951-2/+2
2015-07-12Added JsonCPP library location to search pathsTiger Wang1-2/+1
* Fixed '-dirty' submodule changes Probably fixes an issue somewhere too?
2015-07-10Updated and submodularised JsonCPPTiger Wang2-1/+4
Conflicts: lib/jsoncpp
2015-07-09Fixed misplaced parensSamuel Barney2-5/+5
2015-07-09Fixes compilation failures on MacOSX 10.10Samuel Barney7-88/+88
* Replace old c-style casts with c++ casts * Added `-Wno-error=old-style-cast` to Protocol18x.cpp
2015-07-07Network: Fixed ServerHandle's address formatting.Mattes D1-2/+2
2015-07-07(Ender) Chests are obstructed by opaque blocks.Nounours Heureux2-15/+13
2015-07-07Fixed warnings generated by 64-bit MSVC.Mattes D8-32/+32
2015-07-06Squashed Bonemeal Plant Growth UpdateSamuel Barney1-13/+85
* Fixed Crops growing to maturity with only 1 bonemeal * Trees now go through growth stages with bonemeal, as they do in Vanilla Minecraft
2015-07-03Moved grabbing the light value to after the transparency check.Samuel Barney1-3/+4
2015-07-03Added missing parensSamuel Barney1-1/+1
2015-07-03Grass now only dies if it has an opaque block above it.Samuel Barney1-4/+7
Grass only spreads to a dirt block if the light level is above 4 and the block above it is transparent.
2015-07-03Farmland is now listed as an opaque block.Samuel Barney1-2/+1
Changed spread light falloff for farmland to what it was originally.
2015-07-01Added neighbor specification in the OnNeighborChanged() block callback.Mattes D6-45/+64
Fixes the OnNeighborChanged endless recursion with large melon / pumpkin fields. Fixes #2213.
2015-06-30BlockArea: Fixed a crash with areas higher than chunk height.Mattes D2-2/+8
2015-06-28Added a size check for portals.STRWarrior4-0/+48
Made the portal size configurable Alpha-sorted SetXYZNetherPortalXYZ functions
2015-06-27use atomic for state, to avoid torn readstycho1-2/+2
2015-06-26Now Horses spawn with correct data values.bibo381-3/+3
The max-value of style is 4, of color is 6. See http://wiki.vg/Entities#Horse Also based on the if, the max value of HorseType is 7. Bugfix #2259
2015-06-25Doors now get placed on the server-side.bibo381-1/+0
The Y-Value is already the lower door block(From ItemHandler.cpp:346). Increasing it once again, places the door into the air, which is blocked by Cuberite. Bugfix #2279
2015-06-25Fixed Middle-Click Button in the ClickWindow-Packet.bibo382-2/+2
See http://wiki.vg/Protocol#Click_Window The MiddleClick has the button 2 and not 0. Now you can max an item in an inventory in Creative mode, without inventory desync. Bugfix #2260
2015-06-24Buttons no longer click on when already on. Buttons now play sound when clicking off.Hax525-10/+58
2015-06-24Added a forgotten break in cHangingEntity constructor.Mattes D1-0/+1
This had caused loading the cHangingEntity to fail in debug builds.
2015-06-23Call Neighbour changed handlers when a melon is createdtycho1-0/+3
Should prevent cascading farmland updates on breaking melons
2015-06-23Fixed melon metadata when growing from stem.Mattes D1-6/+9
2015-06-23Fixed right-click with bonemeal.Mattes D1-1/+1
The client would send invalid right-click events with Y set to 0x7ff, which would crash the server. Only process bonemeal for valid clicks (valid blockface).
2015-06-23Generate biomes when pregenerating heights through CompositedHeiGen.Mattes D2-3/+6
Fixes #2283.
2015-06-22Fixed minor errors in Tycho's codeTiger Wang7-92/+83
Everything should work now :)
2015-06-22Rebased version of CodeSamuel Barney8-55/+17
2015-06-21Refactored block placement workflow.Mattes D7-85/+156
Multi-blocks can now use the default OnPlayerPlaced() callback in cItemHandler.
2015-06-20Added basic support for loading village prefabs from files.Mattes D18-17244/+264
2015-06-19Externalized cPrefabPiecePool self-test.Mattes D8-52/+37
2015-06-18PrefabPiecePool: Added loading from cubeset file.Mattes D4-3/+589
2015-06-18Check the return value of InflateStringTiger Wang1-2/+1
Fixes #2256
2015-06-17LuaState: Added support for config-style usage.Mattes D3-43/+207
Globals and table values can be queried from the Lua state easily. Use perfect forwarding.
2015-06-17Fixes #2245Tiger Wang1-1/+1
Whoops :/
2015-06-16Removed version 29 serilizationtycho2-62/+0
This has been unused since support for <1.7 has been dropped.
2015-06-15Fixed overridetycho1-1/+1
This was causing a compile error in clang 3.6
2015-06-14Fixed tigers format stringworktycho1-2/+2
2015-06-14implemented DoesIgnoreBuildCollision on BlockFire to allow blocks to be placed on topMartin McArthur1-0/+5
2015-06-14Fixed log files' timestampsTiger Wang3-12/+12
Also made Release mode log less technical information about the world storage threads.
2015-06-13Work on NetherPortalScanner. Setup portal scanner to reset PortalCooldown. Changed where player is spawned. Added a_InitSpawn flag to CreateAndInitializeWorld.Lane Kolbly6-21/+40
2015-06-13Updated prefabs from the Gallery server.Mattes D6-488/+465
2015-06-13Fixed typo in BlockDoor.hLane Kolbly1-1/+1
2015-06-13Added HOOK_KILLEDNounours Heureux7-6/+73
2015-06-13NetherPortalScanner: Fixed type conversion warnings.Mattes D1-2/+2
2015-06-12If defined, not just if.Alexander Harkness1-1/+1
2015-06-12Fixed build error on LinuxAlexander Harkness1-1/+1
2015-06-11SelfTests are registered and executed after logging framework init.Mattes D11-33/+198
Fixes #2228.
2015-06-10Reinstate "Chunk queue collapsing"Tiger Wang11-261/+191
This reinstates commit f36acb683594daff5af3971dcbe3c3a171628b78 and reverts commit adfbc42c021e1bcfcb355933c0fd784306ce0e18.
2015-06-10Implemented nether portal scanning code.Lane Kolbly8-20/+431
2015-06-08cBlockArea: Added CountSpecificBlocks() API function.Mattes D2-0/+68
2015-06-07Revert "Chunk queue collapsing"worktycho11-191/+261
2015-06-07Fixed styleNounours Heureux1-1/+1
2015-06-07Fix incorrent experience sending for 1.7 clientsjan641-2/+2
2015-06-07Cake crafting now give back the bucketNounours Heureux1-1/+8
2015-06-07Added moar commentsTiger Wang2-13/+13
2015-06-07Vector hasher is now a separate classTiger Wang3-12/+30
2015-06-06Use emplace to construct structuresTiger Wang2-54/+61
2015-06-06Improved link unpowering speedTiger Wang1-48/+41
Also fixed compile errors
2015-06-06Changed appropriate containers to unordered_mapTiger Wang5-203/+92
Thanks to @worktycho for guidance! * Potential speed improvements
2015-06-06Improved link power behaviourTiger Wang2-163/+119
2015-06-06Improved wires and repeatersTiger Wang2-73/+152
* Fixed repeater cross-chunk power detection + Re-implemented horizontal wire cut-off checking
2015-06-06Fixed wire consuming much resourcesTiger Wang1-7/+17
2015-06-06Redstone wire and trapdoor fixesTiger Wang4-311/+323
* Fixes #1887 * Fixes #1763 * Fixes #1083
2015-06-06Provides improvements to redstone wireTiger Wang2-94/+70
Intermediary commit that fixes #1763.
2015-06-06ComparatorsTiger Wang7-83/+287
2015-06-05Fix iteratingtycho1-3/+1
2015-06-05Made the list of chunks to stream an unordered_settycho4-25/+22
This should increase performance of chunk streaming
2015-06-05Rewrote ChunkSending queue for significantly improved performancetycho4-189/+102
2015-06-05Moved Chunk Broadcasts over to the regular queuetycho8-116/+138
2015-06-05Daemon support on Linux.Anthony Birkett5-15/+56
Added null console log listener, avoid printf() when stdout is closed.
2015-06-05Fixed overshoot in cLineBlockTracer.Mattes D1-6/+13
Fixes #2161.
2015-06-05Added Build info to the cRoot API.Mattes D1-4/+54
2015-06-05Provide some BuildInfo even for non-CI builds.Mattes D1-0/+1
Ref.: #2204
2015-06-04Skip unknown cflag for Apple clang & remove cSemaphoreCengiz Can5-129/+2
2015-06-03Changed SendAboveActionBarMessage / SendSystemMessage to be a noop for < 1.8 clientsjan641-1/+11
2015-06-03Fixes multiple furnace issues, including from loading world storageHaoTNN3-16/+40
2015-06-02Added system and above action bar chat messagesjan6411-12/+282
2015-06-02Added cmdline params for crashdump detailness.Mattes D1-94/+77
Win32-only, also fixed the call scripts. Fixes #2184.
2015-06-02Fixed warnings in MSVC.Mattes D13-4/+92
It complained about undefined return values or using uninitialized variables.
2015-06-01Use the new style command line parameters for Windows Service support.Anthony Birkett1-10/+9
Ignore invalid or malformed command line parameters, prevent unhandled exceptions. NOTE: Users will need to reinstall the service, now uses "-d" instead of "/service" in the start parameters.
2015-05-31Fixed crafting recipe matching.Mattes D1-0/+3
Fixes #2096.
2015-05-31ManualBindings: Fixed DoWithXYZ and ForEachInChunk signatures.Mattes D1-4/+6
Fixes forum report http://forum.mc-server.org/showthread.php?tid=1993
2015-05-30Fixed minor cast warningtycho1-1/+1
2015-05-30Fixed wrong indent.Alexander Harkness1-1/+1
2015-05-30Made cLightingThread own its callbackstycho11-53/+61
2015-05-30PF - Handle all fencetypesSafwatHalaby1-1/+7
2015-05-30Fix FreeBSD/clang errors caused by -Werrorlinnemannr3-2/+19
With FreeBSD/clang, -Werror combined with the configured warning flags yields some fatal errors, specifically related to signed conversion, 64 to 32 bit conversion, and tautological compares. CONTRIBUTORS Add myself to the contributor list src/Generating/FinishGen.cpp In cFinishGenPassiveMobs::GetRandomMob(), change the type of RandMob from size_t to the difference_type of the ListOfSpawnables iterator MobIter. Using size_t triggers a 64 bit to 32 bit conversion if the difference_type of the iterator class is 64 bit Also explicitly cast the noise expression to unsigned long so we don't get a signed conversion warning from the modulo against ListOfSpawnables.size() src/OSSupport/StackTrace.cpp FreeBSD 10 and above includes a non glibc implementation of benchmark() for which size_t, not int, is the return type. To account for this and prevent a signed conversion warning, abstract the type for numItems with a macro btsize src/StringUtils.h In StringToInteger(), correct a tautological compare warning for unsigned types with the template. If T is unsigned, comparing std::numeric_limits<T>::min() to the unsigned result is always false. That control can enter this branch in an evaluated template with an unsigned type T may also permit a signed number to be parsed and erroneously stripped of its signedness at runtime. To guard against this and avoid the warning in the case that the number parsed from the string is non-positive, return false and don't try to parse if T is unsigned and control enters the non-positive branch
2015-05-30PF - Fixed diagonal cuttingSafwatHalaby1-5/+12
2015-05-30Disabled squid and Guardian PathfindingSafwatHalaby2-2/+4
2015-05-30Fixed creeper explosionsSafwatHalaby1-1/+1
2015-05-30Fix Destroy() calling behaviourTiger Wang1-1/+2
* Fixes Core/#142
2015-05-30Clean up Spawn Preparetycho4-136/+156
Made cSpawnPrepare execute on the same thread since it is a syncronous operation, and most of the code happens on the lighting thread. Also moved cSpawnPrepare into its own file
2015-05-30Fixed reversed logic in StringToDimension.Lane Kolbly1-1/+1
2015-05-29Fix for the way connecting clients receive player lists and broadcast chatb33duck3-5/+26
2015-05-28Fixed the way connecting clients receive player lists and broadcast chat to worldsb33duck3-4/+14
2015-05-28AI - Sane SkeletonSafwatHalaby5-19/+32
2015-05-28Potential crash fixesTiger Wang1-6/+3
* Potentially addresses my comment in #1969 * Probably fixes #2145
2015-05-28Fix commentstycho19-63/+82
2015-05-28AI - Tweaked wolf speed and teleport thresholdSafwatHalaby1-1/+2
2015-05-27AI - Saner LivestockSafwatHalaby1-2/+11
2015-05-26Fixed ClientHandle not getting properly removed from the worldtycho1-2/+9
when socket is closed whilst the client is being added to the world Fixes #1969
2015-05-26Added method to get the uptime of the server in seconds. Implements #1650.Lukas Pioch2-48/+53
2015-05-25Only add default plugins if there are not any pluginsworktycho1-1/+1
Fixes #2082
2015-05-25Support building on FreeBSDlinnemannr2-1/+6
SetFlags.cmake Add -lexecinfo to linker flags for FreeBSD to resolve backtrace() lib/sqlite/CMakeLists.txt Define _XOPEN_SOURCE to 600 instead of __POSIX_VISIBLE to 200112 for POSIX 1-2001 support. For POSIX standards, the _XOPEN_SOURCE define controls the eventual value of __POSIX_VISIBLE. _XOPEN_SOURCE is defined to 500 in sqlite.c if not already defined, which sets up _POSIX_C_SOURCE and __POSIX_VISIBLE to the 199506 for POSIX.1c lib/tolua++/CMakeLists.txt src/CMakeLists.txt Add /usr/local/lib to the library search path for FreeBSD builds src/OSSupport/Errors.cpp Correct the strerror_r() implementation determination to check whether _GNU_SOURCE is defined, not what it evaluates to
2015-05-24Fix warnings in cPathtycho1-9/+9
2015-05-24Fix bearbins commentstycho1-14/+10
2015-05-24Fix commentstycho6-63/+73
2015-05-24Disable -Werror for warnings in tests.tycho2-2/+4
2015-05-24Fixes #2041Tiger Wang1-3/+3
2015-05-24Made -Weverything an error.tycho109-269/+375
2015-05-24Wolves don't spawn in rivers.Alexander Harkness1-1/+1
2015-05-23Pathfinder - Bounding boxes and some tweaksSafwatHalaby3-26/+114
2015-05-23Fix gamemode not changing properly.Alexander Harkness2-148/+154
Should fix #604
2015-05-23Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.Lukas Pioch18-42/+42
2015-05-23Fix teststycho2-0/+6
2015-05-23Fixed wrong copy/pasteworktycho1-1/+1
Fixes CID 110962
2015-05-23Cows and rabbits no longer spawn over water.Alexander Harkness1-1/+1
Fixes #2080
2015-05-23TryGetHeight returns a boolAlexander Harkness1-1/+1
should fix #2099
2015-05-23Fixed creeper not exploding when 1 block higher than playerSafwatHalaby1-2/+4
2015-05-23Added a fix for players falling through the world when connecting in spectator modeb33duck1-0/+7
2015-05-23Close Ssl Socket on destroyTiger Wang2-1/+5
* Fixes #2072
2015-05-22Fixed players head visible when in spectator modeb33duck1-0/+9
2015-05-21Fixes #2059Blitz Rakete1-0/+14
2015-05-21Renamed hook HOOK_ENTITY_CHANGE_WORLDLukas Pioch7-15/+16
2015-05-21Added Equifax root CA.Mattes D3-7/+40
Fixes #2076. Closes #2081. Ref.: #2072.
2015-05-21Added open/close and sound effects for all door typesb33duck1-3/+17
2015-05-21Added thunder sound effect to CastThunderbolt()b33duck1-0/+1
2015-05-20Added missing fencetypes to torchhandlerJulian Laubstein1-0/+5
2015-05-20Path recalculation improvementsSafwatHalaby3-10/+17
2015-05-20Moved no buffering command line argument to tclaptycho1-5/+8
2015-05-20Move commlog arguments over to TCLAPtycho1-25/+18
2015-05-19Don't verify certificateworktycho1-1/+1
Temporary Hot-fix for #2072
2015-05-19newlinesSafwatHalaby1-0/+9
2015-05-19Make -Werror disabling file onlytycho62-85/+178
Ad fix a load of warnings
2015-05-19Removed UniquePTR from PathFinderSafwatHalaby2-19/+17
2015-05-19Added LuaState support for all integral typestycho8-69/+71
All so added error handling for out of range values
2015-05-19Fixed some more warningstycho4-37/+37
2015-05-19Finish fixing windowstycho1-2/+2
2015-05-19More fixed warningstycho6-28/+40
2015-05-19Properly fix cFile Warningstycho2-11/+11
2015-05-19Fixed compile and a few more warningstycho9-15/+33
2015-05-19Fixed a lot of warningstycho30-273/+286
2015-05-19Manual merge of #2066Alexander Harkness1-1/+1
2015-05-19Fixes lit furnace issue in #2051haotnn1-0/+1
2015-05-18Added hooks HOOK_ENTITY_CHANGE_WORLD and HOOK_ENTITY_CHANGED_WORLDLukas Pioch7-0/+115
Fixes #1435.
2015-05-18Add support for setting ports through command linetycho2-2/+24
2015-05-18Fix max slots logic to only override if acctually present.tycho1-4/+9
2015-05-18Fixes #2003Tiger Wang2-9/+7
2015-05-18Fixes #2052Tiger Wang6-16/+33
2015-05-18Improved leaves a bit more.Alexander Harkness1-8/+20
Should fix #2058.
2015-05-18Fix the health of animalsLukas Pioch1-0/+1
2015-05-17Updated the defaults for the overworld world generatorSTRWarrior1-1/+1
2015-05-17Pathfinder - approximated paths when original destination unreachableSafwatHalaby5-55/+193
2015-05-17properly this time?Alexander Harkness1-1/+1
2015-05-17Fixed typo.Alexander Harkness1-1/+1
2015-05-17Fix sapling probability.Alexander Harkness1-1/+1
Probability is 5% of leaves drop a sapling. This should really be different for jungle leaves (2.5%) and the Fortune enchantment should increase the probability.
2015-05-17Fix FastRandom seedingworktycho1-5/+21
Fixes #1815 Fixes #2021
2015-05-16Fixed inventory handling.Mattes D1-2/+2
Fixes #2035.
2015-05-16Fixed bad logic.Alexander Harkness1-1/+1
2015-05-16Should Fix sign flipping.Alexander Harkness1-2/+2
Fixes #1118
2015-05-16Lua: Break into ZBS debugger on API errors.Mattes D2-0/+29
2015-05-16Added deoxy commentstycho1-1/+16
2015-05-16Bed uses bottom two bits for direction not threeworktycho1-2/+2
2015-05-16Fix service Mainworktycho1-1/+1
2015-05-16Move make_unique into a namespace to avoid ADL issuestycho4-11/+15
this prevents VS finding std::make_unique for constructors that take types from std
2015-05-16Initial implementation of IniFile overloadingtycho22-116/+955
2015-05-16PathFinder uses UniquePtr for cell map.SafwatHalaby2-8/+3
2015-05-15Revert "PathFinder - smart pointers"worktycho2-3/+8
2015-05-15uniquePTRSafwatHalaby2-8/+3
2015-05-14Fixed cPluginManager:ForEachCommand() and ForEachConsoleCommand()Mattes D1-93/+54
The functions would leak one value on the Lua stack for each enumerated command. Fixes #2017.
2015-05-14Fixed possible crash in cProbabDistribSTRWarrior1-0/+1
It could divide through 0 which causes a crash
2015-05-14Update World.cppMartin Fahy1-2/+2
Fixed minor typos in comments, simply trying to understand the code base to fix issue regarding no sound when lighting is produced, no change to actual code.
2015-05-13Fixed chat message manipulation by plugins.Mattes D1-1/+1
Plugins, in their OnChat hook, can change the chat message sent by a player.
2015-05-13All in-game commands go through the OnExecuteCommand hook.Mattes D1-0/+7
Everything that has a slash at the beginning, doesn't matter if it is a registered command or not.
2015-05-13Moved cWorld manual bindings out into a separate file.Mattes D7-1217/+1253
2015-05-12ToLua now generates cLuaState::Push() and GetStackValue()Mattes D11-498/+195
For classes exported through ToLua it generates the cLuaState::Push() and cLuaState::GetStackValue() functions, as well as the supporting forward declarations and typedefs. Renamed virtual_method_hooks.lua to BindingsProcessor.lua since it no longer provides virtual method hooks and instead does additional processing when generating the bindings.
2015-05-12Fixed creative click-outsideTiger Wang1-1/+1
* Fixes #1995
2015-05-11Improved hoppersTiger Wang2-27/+16
* Fixes #1994
2015-05-11AllToLua: Removed unneeded virtual method hooks.Mattes D1-481/+7
2015-05-10OnExecuteCommand hook can override the command result (crXXX).Mattes D7-17/+35
2015-05-10Exported cPluginManager:ExecuteConsoleCommand() to Lua API.Mattes D4-16/+76
Fixes #1999.
2015-05-10Call HOOK_EXECUTE_COMMAND even for unknown console commands.Mattes D1-0/+2
This allows plugins such as Aliases to intercept even unknown commands.
2015-05-10StringUtils: Fixed StringSplitWithQuotes().Mattes D1-0/+7
The function would crash when given a string that started with the delimiter.
2015-05-10Added the EntireCommand parameter to HOOK_EXECUTE_COMMAND.Mattes D5-9/+9
Fixes #1996.
2015-05-10Fixed some warnings and logic errors in Monster.cppTiger Wang1-5/+7
2015-05-10PF - Less calcs per tickwiseoldman951-1/+1
2015-05-09Added check against "Type const &" and "Type const *".Mattes D1-0/+4
2015-05-09CheckBasicStyle: checks spaces around * and &.Mattes D42-104/+115
2015-05-09More style checking.Mattes D78-186/+207
Spaces around some operators are checked.
2015-05-09Rabbit and cooked rabbit now stackablejammet1-1/+3
And corrected the alphabetical ordering.
2015-05-09Fixed remaing pragmasworktycho1-3/+3
2015-05-09clang diagnostic not diagnosticsworktycho1-3/+3
fixed clang pragmas
2015-05-09GetSizeName of cSlime and cMagmaCube is now staticTristan4-4/+4
2015-05-09Fixed compiler warning overrides in Vector3.hWoazboat1-4/+4
2015-05-09Fixed some Visual Studio warningsTiger Wang8-25/+38
2015-05-09Move chunk position accesses after the chunk validity checksworktycho1-2/+4
2015-05-08Spaces in cPathwiseoldman952-0/+2
2015-05-08Added float comparison warning overrides to Vector3::hasNonZeroLengthWoazboat1-7/+16
2015-05-08Ignoring Clang warnings for strict float comparison in Vector::Equals()Woazboat1-1/+11
2015-05-08Changed Vector3 Equals function to avoid using memcmpWoazboat1-5/+1
2015-05-08Tracer::signum function now returns intWoazboat3-25/+29
convert c style casts to c++ static casts Changed fabs() to std::abs()
2015-05-08Check for zero length vector in TraceWoazboat2-4/+15
Added hasNonZeroLength member function to Vector3
2015-05-08Changed Tracer::m_NormalTable to static arrayWoazboat2-8/+23
Was previously instantiated for every trace
2015-05-07Fixed inter-plugin calls.Mattes D2-9/+9
When an inter-plugin call failed due to function not found, the server would maul the LuaState and "yield". Fixes #1959.
2015-05-07Fixed #1893Tri1251-0/+1
Quartz ore now stack properly
2015-05-07Big Magma Cube can now spawnTri1252-2/+2
Following the same method as the Slime, Magma Cube can now spawn with the size of 1, 2 or 4.
2015-05-07Fixed the sound issue with the MagmaCubeTri1252-2/+16
-Name of the sound is correctly capitalized -Get the appropriate sound depending on its size
2015-05-07Added support for additional data in the ParticleEffect Packettycho22-19/+310
Also started refactoring how broadcasts are handled
2015-05-06AI - Safer WouldBurnAt()wiseoldman951-3/+8
2015-05-06AI - Better shade coverwiseoldman951-1/+9
2015-05-06Actually empty the open listworktycho1-1/+1
2015-05-06(duplicate) AI - Livestock escape fixed, water jumping fixedwiseoldman953-34/+79
2015-05-06PF - Swimming bugfixwiseoldman951-3/+3
2015-05-06PF - Fixed mobs not reaching leaning playerwiseoldman952-3/+10
2015-05-05Revert "Small code cleanup"worktycho4-62/+45
2015-05-05AI - More conservative use of ResetPathFinding, fixed minor swimming / jumping bugwiseoldman952-26/+47
2015-05-05Chmod +x CheckBasicStyle.luawiseoldman951-0/+0
2015-05-04Change visual protocol name to include MCServerjan642-3/+3
2015-05-04Print Build info as part of the crash informationworktycho1-0/+9
2015-05-04Entity improvementsTiger Wang8-265/+224
•Pathfinder improvements •Fixes #1217 •Fixes #1933 Merge remote-tracking branch 'SafwatHalaby/water2' into fixes
2015-05-03PathFinder - Fixed nullptr chunk bugwiseoldman951-1/+1
2015-05-03AI - Improved Mob Jumpingwiseoldman952-5/+16
2015-05-03PathFinder - Crash fix, chunks in parameters are now referenceswiseoldman953-10/+8
2015-05-02Update submodulesTiger Wang3-3/+3
2015-05-02AI - Better daylight handlingwiseoldman956-63/+22
2015-05-02PathFinding - Chunk querying optimization and improve cPath::IsSolidwiseoldman954-66/+38
2015-05-02CheckBasicStyle: Can check individual files or git commits.Mattes D1-2/+101
2015-05-01A* Pathfinding and better monster AIwiseoldman9513-175/+736
2015-04-30Added cBlockArea:CountNonAirBlocks API function.Mattes D2-1/+36
2015-04-30Fixed bindings for cFile:ReadWholeFile().Mattes D2-8/+44
Fixes #1914
2015-04-29Changed fabs() to std::abs()Woazboat1-4/+4
2015-04-29braces in Tracer::mNormalTable initializer in separate linesWoazboat1-2/+4
2015-04-29Added Guardian and Rabbit to DefaultMonsters in OverworldMathias1-1/+1
2015-04-29Added cBlockArea::msSimpleCompare merge strategy.Mattes D2-1/+54
2015-04-29Added cBlockArea:GetNonAirCropRelCoords() API function.Mattes D5-1/+146
Fixes #1915.
2015-04-29Clay blocks are handled with the OreHandlerjammet1-0/+1
2015-04-29Added extra braces to initialization of Tracer::m_NormalTableWoazboat1-2/+2
2015-04-29And another cs fix I overlookedWoazboat1-1/+1
2015-04-29Fixed comments according to csWoazboat1-11/+11
2015-04-29Fix HasNonZeroLength nameWoazboat2-3/+3
now 100% more cs compliant
2015-04-29Changed Tracer::m_NormalTable to static arrayWoazboat2-7/+14
Was previously instantiated for every trace
2015-04-28Updated MC versions in ProtocolRecognizer.hwiseoldman951-1/+1
2015-04-28Changed Vector3 Equals function to avoid using memcmpWoazboat1-5/+1
2015-04-28Tracer signum function now returns intWoazboat2-7/+10
2015-04-28Check for zero length vector in TraceWoazboat2-4/+15
Added hasNonZeroLength member function to Vector3
2015-04-28convert c style casts to c++ static castsWoazboat2-15/+16
2015-04-27Removed redundant temp iterator. std::list.erase already returnsWoazboat1-4/+1
iterator to next valid list element
2015-04-27cSetChunkData constructor explicitly requires std::move() instead ofWoazboat4-10/+12
unsafely stealing data
2015-04-26Fix explosions trying to write to unread blockareaTiger Wang1-3/+5
2015-04-25cPlayer now checks restrictions.Mattes D3-7/+68
Fixes #1331.
2015-04-25Added player restrictions to the DB and API.Mattes D3-36/+704
2015-04-25Plugin removes its command registrations and webtabs when unloaded.Mattes D1-0/+5
Fixes #1890.
2015-04-24Eliminate race condition in cRoot::FindAndDoWithPlayerworktycho1-4/+4
Avoid a race condition where a player gets deleted during the FindAndDoWithPlayer callback by moving the callback into DoWithPlayer.
2015-04-23Refactored ManualBindings' callbacks using templates.Mattes D3-365/+259
This is a bit easier to read, has better error reporting and fixes a few subtle bugs. Fixes #1889.
2015-04-23Digging up a clay block spawns 4 clay items.jammet1-0/+5
Fixes #1884. Closes #1891.
2015-04-23Implemented cPluginManager:DoWithPlugin(), fixed ForEachPlugin().Mattes D3-170/+294
Both functions are exported as static.
2015-04-23Nether Quartz is handled in the Ore handler.jammet1-0/+5
Fixes #1885, Closes #1888
2015-04-22Fix slab placingwraith111-0/+23
2015-04-21Narrowed WindowID to use only 7 bits.Mattes D2-3/+7
Ref.: http://forum.mc-server.org/showthread.php?tid=1876
2015-04-21Hotfixed some chunk presence issues when generating.Mattes D1-0/+2
2015-04-21Fix door placing in connection with slabswraith112-6/+21
Except top-half slabs as transparent blocks for doors.
2015-04-21Changed default MaxThreshold valueSTRWarrior1-1/+1
There is now really a difference between open and dense parts
2015-04-21Calculate threshold for each column in a chunk instead for the whole chunkSTRWarrior1-2/+1
2015-04-21Network: fixed excessive debug logging.Mattes D2-7/+1
2015-04-21Added URL member to the HTTPRequest API class.Mattes D2-1/+11
2015-04-20Changed Nether composition to change the threshold from a cubic noiseSTRWarrior2-7/+7
2015-04-20ItemHandler type fixes.Mattes D1-2/+2
2015-04-20Protocol 1.8: Limit the amount of displayed data on NBT parse failure.Mattes D1-1/+1
2015-04-20ItemHandler: Using automatic array bounds.Mattes D1-1/+1
2015-04-19HangingEntity: Fixed a needless clang warning.Mattes D1-2/+5
2015-04-19Fixed typo in NetherForts initializationSTRWarrior1-1/+1
The S in NetherForts was missing
2015-04-19GlowStone: Changed order of initialization of member variablesSTRWarrior1-2/+2
2015-04-19Fixed styleSTRWarrior1-2/+2
2015-04-19Added GlowStone finisherSTRWarrior4-2/+140
2015-04-19ClientHandle: Fixed re-sending refused right-clicks.Mattes D1-1/+8
The coords weren't checked against Y boundary and -1 coords weren't sent. This fixes mc-server/Gallery#45.
2015-04-19HTTP: Error message is sent as the payload as well.Mattes D2-2/+5
This shows the error message in the browsers. Before, the browsers would display just a blank page.
2015-04-19Refresh plugin list before trying to load.Mattes D1-0/+1
2015-04-19Added cPluginManager:IsPluginLoaded() API, better load error msgs.Mattes D2-5/+42
2015-04-19Refactored cWebPlugin for C++11 style and proper WebTab clearing.Mattes D6-103/+149
2015-04-19Split the plugin names and plugin folders to avoid confusing them.Mattes D9-387/+482
Ref.: http://forum.mc-server.org/showthread.php?tid=1877
2015-04-17Update IronGolem.cppmathias-gh1-1/+1
2015-04-17Added MobTypeName for Giantmathias-gh1-0/+1
2015-04-17Fixed arm swing animationTiger Wang1-1/+1
* Fixes #1861
2015-04-16Recipes match zero DamageValue strictly.Mattes D1-2/+2
To match any DamageValue for the ingredient, an explicit "-1" as the DamageValue must be specified. Fixes #1859.
2015-04-16Fixed PolishedGranite et al crafting recipes.Mattes D3-3/+4
Fixes #1774. Ref.: #1859
2015-04-14Scooping up fluid calls the player placement hooks.Mattes D1-4/+12
Ref.: #1857.
2015-04-14Placing a fluid from bucket calls plugin hooks.Mattes D21-53/+204
Ref.: #1857.
2015-04-13Removed HOOK_MAX and HOOK_NUM_HOOKS from Lua API.Mattes D1-2/+3
2015-04-13Implement backend for /title commandScott Moore9-0/+317
2015-04-11cFile:ChangeFileExt now accepts extensions with leading dot, too.Mattes D1-2/+14
2015-04-11Added more cFile API functions.Mattes D2-2/+66
GetLastModificationTime, GetPathSeparator() and GetExecutableExt()
2015-04-10Fixed plugin hook calls when unloading plugins.Mattes D1-1/+248
If a plugin installs any hooks in its Initialize method and then causes the Lua runtime to abort, the server asserted because the hooks were called while the plugin was being unloaded.
2015-04-10Added proper implementation of cFile::ChangeFileExt().Mattes D1-2/+17
2015-04-07Added extra divide operator to Vector3.STRWarrior1-0/+9
The multiply operator had one for both a different vector and a number, but the divide operator didn't.
2015-04-06Fixed MSVC warnings, improved comments.Mattes D1-5/+5
2015-04-06Added cFile:ChangeFileExt() function.Mattes D2-0/+27
2015-04-05Fixed crash on exit introduced with Windows Service capability.Mattes D3-31/+29
Ref.: #1845
2015-04-03Fixed players not appearing/disappearing when traveling to a new world.STRWarrior1-0/+6
2015-04-03Fixed the nether and end getting snow if they were generated in the overworld.STRWarrior1-0/+7
2015-04-01Working as a Windows service. Starts and stops correctly.Anthony Birkett4-35/+234
Added "/service" switch, to prompt the binary to attempt starting as a service. Added service* methods, to control service startup. Split up main() into universalMain(), which contains the startup code for both service and normal start. Added cRoot::m_RunningAsService bool, Added cRoot::SetStopping(bool) to allow a stop request to be sent by the service controller. Added cBlockIDMap::init() to avoid loading items.ini before the working directory has been set.
2015-03-31Changed air drag for pickupsDevToaster1-1/+1
2015-03-31Changed air drag units to 'interpolated ticks' per secondDevToaster11-14/+18
2015-03-31Adjusted projectile physicsDevToaster1-4/+6
2015-03-31Modified physics for more vanilla-like behaviorDevToaster15-12/+51
2015-03-28Fixed placing bottom half-slabs by clicking a top half-slab.Mattes D1-2/+2
Ref.: #1837
2015-03-25Removed 0x6, 0x7 from BlockButton.Alexandre Guertin1-5/+3
2015-03-22Added VarInt64, normalized cPacketizer datatype names.Mattes D7-688/+744
2015-03-22Unified cPacketizer across all protocols.Mattes D14-769/+873
2015-03-22ProtoProxy: Fixed connection and logging.Mattes D1-0/+1
2015-03-21Style fixesworktycho1-15/+15
2015-03-21Fixed alignmentworktycho1-2/+2
2015-03-21Fixed signedness warnings in Protocol.Mattes D11-14/+14
2015-03-21Creeper: Fixed skeleton check.Mattes D1-11/+10
2015-03-21Fixed signedness issues in protocols.Mattes D6-62/+76
2015-03-21Changed linked world name variables and setters / getters.Mattes D3-30/+31
Ref.: #1792 Ref.: https://github.com/mc-server/MCServer/pull/1792#discussion_r25946707
2015-03-21Changed cEntity::m_UniqueID to UInt32.Mattes D22-169/+224
2015-03-21Fixed trailing whitespace.Mattes D1-1/+1
2015-03-21Unified cByteBuffer types.Mattes D12-253/+371
cByteBuffer now reads and writes any of the [U]Int<N> types.
2015-03-20Improved arrow in-flight and block-hit appearanceTiger Wang2-19/+3
* Fixes #1495
2015-03-20cPluginLua:cResettable no longer shares CS with plugin.Mattes D2-10/+13
This fixes locking the resettable while the plugin is already gone. Hopefully no deadlocks.
2015-03-20Added cPluginLua::cResettable interface, used for scheduled tasks.Mattes D6-79/+150
This allows plugins to register objects that can "survive" the plugin unloading - they will simply bail out if the plugin is already unloaded, instead of referencing bad plugin data. Fixes #1556.
2015-03-20Removed Metavalue from Piston drops. Bugfix #1765bibo382-0/+12
2015-03-20Correct world height validations.Tommy Santerre18-22/+31
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
2015-03-19Removed unwanted base classes from Lua API.Mattes D4-2/+10
2015-03-19AllToLua: Fixed cMonster inheritance.Mattes D1-2/+2
2015-03-19Improved DoWithID bindings.Mattes D2-3/+8
2015-03-19Removed wrong else clause, which caused that the following if-Statement got only executed in rare cases. This has blocked the creation of new Fluid-Sources. Bugfix #1783bibo381-1/+2
2015-03-19Fixed a clang warning, improved comments.Mattes D1-7/+4
2015-03-19AllToLua: Removed an unneeded class declaration.Mattes D2-8/+2
It's perfectly possible to declare a class in ManualBindings without the need for declaration in AllToLua.pkg.
2015-03-19AllToLua: Fixed the parse order for bindings generation.Mattes D1-26/+45
Fixes #1789.
2015-03-18Added cNetwork initialization to program start.Mattes D1-0/+4
Otherwise the server could crash because MSVC doesn't implement magic statics yet.
2015-03-18World:DoWithEntityByID() checks the entities-to-add as well.Mattes D1-0/+14
This allows plugins to create entities and immediately act on them using that call. This will most likely need to be added to most of the DoWith<> and ForEach<> calls.
2015-03-18Network: Close the UDP endpoint in destructor.Mattes D2-0/+11
2015-03-17Changed Variable types of Endianness.h to uniform UInt* types from Globals.hbibo381-4/+4
2015-03-17Fixed double underscore identifiers in the Endianess.h file, which are reserved for implementation use. Bug #1715bibo381-8/+8
2015-03-14Use thread_local in cFastRandomTiger Wang1-2/+8
2015-03-14Fixed a small bugtumultenrx1-1/+1
2015-03-14Fixed grass spread, closes #1743Tiger Wang5-41/+8
- Removed the salt parameter in cFastRandom functions, it wasn't doing what we thought it was following the move to C++11
2015-03-14Fixed style violationsTiger Wang1-2/+2
2015-03-14cPainting saving implementedTiger Wang13-72/+83
Additionally, it now inherits from cHangingEntity.
2015-03-13Fixed confusion over Item Frame directionsTiger Wang4-120/+76
2015-03-13Monsters will now attack. Additional checks have been added when generating spawn.tumultenrx6-11/+72
Monsters will now attack. Additional checks have been added when generating spawn.
2015-03-12Performance improvements for #1807flx51-3/+3
2015-03-11Fixed coding conventions for Pull Request #1807flx55-24/+32
2015-03-11Fixed issue with quotes not appearing in pairsflx51-4/+5
2015-03-11Changed pipeline character from >> to |tycho2-15/+15
2015-03-11Fixed style and removed false positivestycho2-7/+12
Relaxed the rules for < followed by an && and removed rule for < following an &&
2015-03-11Fixed some markup issuesflx51-3/+4
2015-03-11Fixed some markup issuesflx51-3/+5
2015-03-11Fixes #493 and #490flx59-13/+73
2015-03-10Use std::memcpy to fix alignmentTiger Wang1-2/+8
As suggested by @madmaxoft
2015-03-10Fixed Sequence Generator for IntGenTycho2-12/+24
2015-03-10Fixed Bug in cChunkData.worktycho1-1/+1
FIxed a bug where if the index was not aligned with the sections empty sections would not be set in the correct location.
2015-03-10Moved window code into cpp filesHowaner23-519/+839
2015-03-09Buttons can be placed on the top and on the bottom face of a blockAlexandre Guertin1-1/+7
2015-03-09Fixed client kick/crash if many block changes happendHowaner1-3/+15
2015-03-08Potential Linux implementationTiger Wang1-4/+54
2015-03-08Added parenthesis around the comparisonsSTRWarrior1-2/+2
2015-03-08Added proper trees to Mesa biomesSTRWarrior1-6/+10
Mesa only has small apple trees.
2015-03-08Added grass/course dirt layer on MesaPlateauF(M)STRWarrior1-0/+14
2015-03-05Reverted non-functional changesTiger Wang5-53/+11
2015-03-05Grass checks for sufficient light before spreadingAlexander Harkness1-1/+13
2015-03-05Added OnTeleportEntity hook for plugins.joshi077-12/+64
Plugins may or may not allow teleport to the new position. Updated the HookNotify plugin with it.
2015-03-03Lua API: Fixed md5 and sha1 hex formatting.Mattes D1-4/+4
std::setw() is only valid for one output operation and needs to be set again in each loop repetition.
2015-03-01Removed trailing whitespaceSTRWarrior1-1/+1
2015-03-01Replaced IntNoiseXX with IntNoiseXXIntSTRWarrior1-2/+2
2015-03-01Replaced cFinishGenPtr with std::make_sharedSTRWarrior1-1/+1
2015-03-01Fixed StyleTycho2-13/+15
Still fails CheckBasicStyle.lua dua to issue with rvalue references and templates
2015-03-01Added pipelining syntax for generatorsTycho2-16/+63
2015-03-01Steppy HeiGen: Fixed Linux compilation.Mattes D1-1/+1
2015-03-01Added Steppy height generator.Mattes D3-1/+409
2015-02-28Made the minimum vine level configurableSTRWarrior3-4/+7
2015-02-28Implemented a vines finisher that creates vines in jungle biomesSTRWarrior3-0/+119
2015-02-28Changed C-styled casts to static_cast and removed unneeded castsDevToaster1-34/+34
2015-02-28Replaced short int with int for Player experienceDevToaster1-1/+1
2015-02-28 modified: src/Entities/Player.cppDevToaster2-27/+27
modified: src/Entities/Player.h
2015-02-28GetSnowStartHeight returns an intSTRWarrior2-2/+2
2015-02-28Fixed door placement.Mattes D1-4/+17
Doors now have hinges on the correct side, based on what the surroundings are when placing them.
2015-02-28Added experience drops when mining oresSTRWarrior1-0/+59
2015-02-26changed int to unsignedSTRWarrior2-4/+4
And return 0 instead of -1
2015-02-26use DoSetSpeed in AddSpeed* in Entity.cppRaekye1-10/+4
2015-02-25Ice finisher uses GetSnowStartHeight instead of specific biomesSTRWarrior1-26/+19
2015-02-25Snow finisher uses GetSnowStartHeight instead of specific biomesSTRWarrior1-22/+14
2015-02-25Weather: Snow starts forming when the top block is at the right height or higherSTRWarrior1-66/+57
2015-02-25Added GetSnowStartHeightSTRWarrior2-0/+130
returns the height of a biome where it starts snowing
2015-02-25Fixed flowing water turning into ice when snowingSTRWarrior1-1/+1
2015-02-241.8 Protocol: Fixed a possible race condition.Mattes D1-5/+9
Fixes #1759.
2015-02-23Fixed operatorsSTRWarrior1-6/+6
2015-02-23Added forgotten indentSTRWarrior1-2/+2
2015-02-23Replaced lua_isXYZ with cLuaState::CheckParamXYZSTRWarrior1-12/+13
2015-02-23Exported all compression functions in a new class.STRWarrior1-16/+129
2015-02-22Fixed race condition for TCP link deleting.Mattes D1-2/+6
This could have caused crashes when a client disconnected from the server.
2015-02-22Network: Replaced magic number with named constant.Mattes D1-1/+1
2015-02-22Exported CompressString and UncompressString to LuaSTRWarrior1-0/+37
2015-02-22cNetwork: Added EnumLocalIPAddresses() function.Mattes D4-5/+163
2015-02-21Door handler: Removed needless check.Mattes D1-1/+1
The Y coord has already been checked above.
2015-02-21Fix door placement checkFreddie Wang1-7/+3
2015-02-21Added cCryptoHash namespace to Lua API.Mattes D1-2/+107
2015-02-20Fixed monster spawn randomness.Mattes D1-1/+2
Fixes #1699.
2015-02-20UDPEndpointImpl: Fixed clang warnings.Mattes D1-3/+3
2015-02-20cNetwork: Added UDP API.Mattes D11-32/+1400
2015-02-20Fixed crash when logging nil values.Matyas Dolak1-0/+32
Ref.: http://forum.mc-server.org/showthread.php?tid=1798
2015-02-18Flower pots: In 1.8 items are saved with the name and not the id.Howaner1-5/+12
2015-02-18NetworkSingleton: LibEvent thread is joined properly on server exit.Mattes D2-7/+5
2015-02-18Network: Fixed two-socket servers.Mattes D1-1/+1
2015-02-14Fixed TCP link shutdown.Mattes D2-9/+68
The shutdown is postponed until there's no more outgoing data in the LibEvent buffers.
2015-02-14SslContext: Turned debug messages off.Mattes D1-1/+1
2015-02-14Fixed Linux compilation.Mattes D2-2/+2
2015-02-13Exported TLS server start on cTCPLink to Lua API.Mattes D3-7/+188
2015-02-13Exported cTCPLink:Close and :Shutdown() to Lua API.Mattes D1-13/+83
2015-02-12PolarSSL++: Fixed debugging output.Mattes D1-0/+3
2015-02-12Fixed Linux compilation.Mattes D1-1/+1
std::make_unique is not available in C++11.
2015-02-12LuaAPI: Added client TLS support for TCP links.Mattes D9-7/+335
2015-02-08Handle client 'leave bed' requestTiger Wang9-61/+92
* Fixes #1728
2015-02-08Protocol 1.7: Fixed Coverity issues.Mattes D1-4/+7
Fixes CID 66411, CID 103166 and CID 103167.
2015-02-08ServerHandle: Fixed socket reuse.Mattes D1-10/+30
Fixes CID 104670, CID 104670 and CID 103724.
2015-02-08WSSAnvil: Fixed chunk data padding.Mattes D1-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.
2015-02-07Use evutil_make_listen_socket_reuseableHowaner1-16/+6
2015-02-07Set reuse flag to socketsHowaner1-1/+24
Should fix #1726
2015-02-07SpacingHowaner1-1/+1
2015-02-07cPlayer should override IsOnGround()Howaner2-3/+3
2015-02-07Added IsOnGround() to cEntityHowaner2-6/+9
2015-02-06Readded old commentHowaner1-0/+2
2015-02-06APIDump: Added cNetwork documentation.Mattes D1-1/+1
2015-02-04LuaServerHandle: Removed debugging output.Mattes D1-4/+0
2015-02-04Exported cServerHandle and cNetwork:Listen to Lua.Mattes D11-14/+613
Also added an example to the NetworkTest plugin.
2015-02-04cNetwork: Exported lookup functions to Lua API.Mattes D5-3/+219
Also added an example in the NetworkTest plugin.
2015-02-04cTCPLink: Fixed missing addresses on link connection.Mattes D1-2/+2
2015-02-04cNetwork: Exported the Connect() method and cTCPLink class to Lua.Mattes D8-1/+614
2015-01-31Switched LuaState to use sizeof...tycho1-15/+1
2015-01-29CheckBasicStyle: Fixed a forgotten file close.Mattes D1-0/+1
2015-01-29Fixed missing LibEvent reference in OSSupport.Mattes D1-1/+1
2015-01-27Fixed listening ports not closed on cServerHandle::Close.Mattes D1-0/+3
2015-01-27Fixed server failure to open any port not aborting the server.Mattes D1-29/+35
2015-01-27Fixed a deadlock in cClientHandle network sending.Mattes D2-5/+28
2015-01-27Added network termination called at app exit.Mattes D3-14/+52
This fixes a crash in MSVC runtime caused by joining a thread in a global var's destructor.
2015-01-27cTCPLinkImpl: Added the BEV_OPT_THREADSAFE flag.Mattes D1-2/+8
2015-01-27ServerHandleImpl: Removed needless diagnostic output.Mattes D1-4/+0
2015-01-27Client: Only decode protocol when there's actual data incoming.Mattes D1-2/+8
2015-01-27Fix clang compile errorworktycho1-1/+1
2015-01-27Removed cFile::ReplaceFileNameInvalidChars().Mattes D3-27/+3
Its only usage in cProtocol18 has been changed to a simple string replace - only the IPv6's colons were causing problems.
2015-01-27Fixed enchant packet handling.Mattes D1-3/+3
2015-01-27RCONServer: Changed variables to UInt32.Mattes D2-32/+29
2015-01-27Replaced atoi() with StringToInteger().Mattes D5-9/+11
2015-01-27Removed ListenThread and SocketThreads.Mattes D5-1225/+0
They have been replaced by the cNetwork API. Socket.cpp is still used by RCONClient.
2015-01-27BlockingSslClientSocket: Migrated to cNetwork API.Mattes D3-15/+198
2015-01-27Converted cServer to use the cNetwork API.Mattes D8-413/+330
2015-01-27cNetwork: Fixed IP address reading for incoming connections.Mattes D1-1/+2
2015-01-27Protocol18: Fixed failure with invalig logfile names.Mattes D1-8/+15
2015-01-27cFile: Added ReplaceFileNameInvalidChars().Mattes D2-0/+26
2015-01-27StringUtils: Fixed bad predicate in MergeStringVectors().Mattes D1-1/+1
Instead of preventing duplicates it was allowing only duplicates.
2015-01-27RCON server: fixed compilation.Mattes D1-1/+1
2015-01-27Migrated RCON server to cNetwork API.Mattes D2-100/+116
2015-01-27Fixed a crash in RCON server.Mattes D1-1/+0
2015-01-27Fixed missing LibEvent reference in OSSupport.Mattes D1-1/+1
2015-01-27WebAdmin uses the new cNetwork API.Mattes D8-203/+237
2015-01-27IniFile: Added common code to migrate ports.Mattes D2-4/+56
Old settings have IPv4 and IPv6 ports as separate values, new settings have a single value for the ports.
2015-01-27StringUtils: Added string vector manipulation.Mattes D2-1/+54
2015-01-26fix logic bug in cChunk::FastSetBlock filtering out leaves meta changesRaekye1-7/+9
- send update if it's not a leaves block and (the original checks)
2015-01-26filter out leaves meta changes from being sent to the clientRaekye1-0/+4
2015-01-25Readded old DistributeStackToAreas() comment.Howaner1-2/+5
2015-01-23cNetwork: Added self pointers to keep objects alive for callbacks.Mattes D5-17/+39
Ref.: http://forum.mc-server.org/showthread.php?tid=1700&pid=17947#pid17947
2015-01-23Fixed defect #43662 in Coverity list.Kirill Kirilenko1-1/+17
2015-01-23Fixed defect #43665 in Coverity list.Kirill Kirilenko1-0/+11
2015-01-23Fixed defect #73101 in Coverity list.Kirill Kirilenko1-1/+13
2015-01-23Fixed defect #43671 in Coverity list.Kirill Kirilenko1-0/+4
2015-01-23Fixed defect #43661 in Coverity list.Kirill Kirilenko1-1/+2
2015-01-23Fixed defect #71781 in Coverity list.Kirill Kirilenko1-0/+5
2015-01-23Fixed negative return values in SchematicFileSerializer.Matyas Dolak1-1/+3
Fixes CID 103165.
2015-01-22cNetwork: Renamed callback to OnConnected()Mattes D2-3/+6
2015-01-22cNetwork: Added link creation callback.Mattes D4-15/+42
This allows the callback classes to store the link inside them and use it internally later on, mainly for sending data.
2015-01-22cNetwork: Changed listening API.Mattes D4-29/+51
The link-callbacks for each new accepted link are now received from the OnIncomingConnection listen-callback.
2015-01-22cNetwork: Added error message to error callbacks.Mattes D5-13/+20
2015-01-22cTCPLinkImpl: Fixed type conversion warning.Mattes D3-5/+5
2015-01-22cNetwork: Fixed race conditions with lookups; proper shutdown.Mattes D6-82/+123
2015-01-22cNetwork: Split the main cpp file into several files.Mattes D13-1050/+1148
2015-01-22cNetwork: Fixed WinXP dualstack listening.Mattes D1-21/+42
2015-01-22cNetwork: Split cNetworkSingleton to a separate file.Mattes D4-325/+430
2015-01-22cNetwork: Fixed WSAStartup()-not-called error in Listen().Mattes D1-0/+3
2015-01-22cNetwork: Handle WSA initialization failures.Mattes D1-1/+7
2015-01-22cNetwork: Added an OnError callback for listening servers.Mattes D2-0/+8
The callback receives the error details.
2015-01-22cNetwork: Rewritten server listen into a factory method.Mattes D1-88/+102
2015-01-22cNetwork: Removed unneeded dependency.Mattes D1-1/+0
2015-01-22cNetwork: Refactored cTCPLinkImpl::Connect into a factory.Mattes D1-41/+48
2015-01-22cNetwork: Cosmetics.Mattes D1-6/+10
2015-01-22cNetwork: Fixed compilation.Mattes D1-9/+8
2015-01-22Wrap debug variable in ifdef worktycho1-0/+2
avoidss unused variable error in clang
2015-01-22cNetwork: Added error logging to server socket creation.Mattes D1-6/+24
This is mainly for WinXP and RasPi testing.
2015-01-22cNetwork: Added multithreading protection.Mattes D2-3/+28
2015-01-22cNetwork: Implemented connection shutdown and close.Mattes D2-17/+59
2015-01-22cNetwork: Fixed Linux compilation.Mattes D1-5/+23
2015-01-22cNetwork: Implemented link address getting.Mattes D1-57/+117
2015-01-22cNetwork: Implemented basic server functionality.Mattes D1-122/+215
2015-01-22cNetwork: Implemented IP-to-hostname lookup.Mattes D1-8/+114
2015-01-22cNetwork: Implemented HostnameToIP lookups.Mattes D2-6/+141
2015-01-22Added newline to logged messages in the tests.Mattes D1-8/+12
2015-01-22Extracted Google connection testTycho2-74/+13
2015-01-22cNetwork: Linux compilation fix.Mattes D2-4/+23
2015-01-22Implemented LibEvent-based client connections.Mattes D4-0/+1028
2015-01-22Added the libevent library.Mattes D1-1/+1
2015-01-21Fixed warnings in StringUtils.Mattes D2-49/+59
2015-01-21ByteBuffer: Added support for reading unsigned shorts and ints.Matyas Dolak2-1/+33
2015-01-20Fixed warnings in FastNBT.cpp.Mattes D1-39/+40
2015-01-18Fixed warnings in 1.7 protocol.Mattes D3-110/+131
2015-01-18Fixed various warnings.Mattes D3-8/+8
2015-01-18cWorld: Fixed a type warning.Mattes D1-1/+1
2015-01-18Fixed type conversion warnings.Mattes D2-4/+4
2015-01-18Fixed type-conversion warnings.Mattes D4-8/+8
2015-01-17correct comment to say millisecondsworktycho1-1/+1
2015-01-17Fixed CppCheck: (performance) Prefer prefix ++/-- operators for non-primitive types.Kirill Kirilenko2-2/+2
2015-01-17Fixed CppCheck: (performance) Possible inefficient checking for emptiness.Kirill Kirilenko4-5/+5
2015-01-17Fixed CppCheck: (performance) Function parameter should be passed by reference.Kirill Kirilenko2-4/+4
2015-01-16Converted Monster to std::chronoTycho4-18/+18
2015-01-16Converted cPickupEntity to std::chronoTycho2-12/+12
2015-01-16Converted MinecartEntity to std::chronoTycho2-8/+8
2015-01-16Converted cExpOrbEntity to std::chronoTycho2-7/+7
2015-01-16Converted ArrowEntityTiers to std::chronoTycho2-7/+7
2015-01-11Fix trailing whitespaceTycho1-1/+1
2015-01-11Initial convertion of a_Dt to std::chronoTycho117-221/+221
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
2015-01-11Created new type cTickTime and rewrote cWorld::TickThread to use itTycho2-6/+8
2015-01-03Fixed Linux compilation.Mattes D2-2/+2
2015-01-03Protocols: Ignore garbage data at the end of PluginMessage packets.Mattes D2-0/+21
Fixes #1692.
2015-01-03cByteBuffer: Improved SingleThreadAccessChecker performance.Mattes D1-1/+6
But it's still poor and unusable for regular testing.
2014-12-25MobHead: Fixed wither spawning.Mattes D1-13/+40
2014-12-25MobHeads: fixed regular head placement.Mattes D1-2/+22
2014-12-25Fixed door placement.Mattes D2-3/+4
2014-12-25Fixed forgotten big flower handler.Mattes D1-1/+2
2014-12-25Fixed basic style.Mattes D4-23/+71
2014-12-25cIsThread: Fixed a race condition on thread start.Mattes D2-7/+30
2014-12-24APIDump: Updated the player block placement documentation.Mattes D1-1/+2
The hooks now have fewer parameters but are called on all player-placed blocks (#1618).
2014-12-24Fixed redstone dust placement on upside-down slabs.Mattes D1-1/+36
2014-12-24ByteBuffer: SingleThreadAccessChecker is request-only.Mattes D1-1/+10
It slows the server down way too much, so it can't be turned on by default.
2014-12-24Replaced a std::hash specialization with explicit type.Mattes D2-8/+4
std::hash is problematic in gcc / clang, one has a class, the other a struct.
2014-12-24gcc compilation fix.Mattes D1-1/+6
2014-12-24Refactored all player block placing to go through hooks.Mattes D43-775/+1423
Fixes #1618.
2014-12-24Added Vector3::TurnCW() and Vector3::TurnCCW()Mattes D1-0/+16
2014-12-23Init Mojang API pointerworktycho1-0/+1
Fixes CID 90583
2014-12-22Fix compile error on OS X introduced by commit ecf778bbec2794562bf5e5b8645e2171f7cd081cJonathan Fabian1-1/+1
The following error occurs on OS X with the order reversed: `MCServer/src/World.cpp:282:2: error: field 'm_LastSave' will be initialized after field 'm_LastUnload' [-Werror,-Wreorder] m_LastSave(0),`. Reversing the order of initialization fixes this.
2014-12-22Added Depth Strider enchantmentJonathan Fabian2-0/+16
2014-12-21WSSAnvil: Added clamping to entity coords.Mattes D1-3/+3
Fixes CID 72854.
2014-12-21FastNBT: Added a sanity check for number of list items.Mattes D1-1/+8
Fixes CID 55812.
2014-12-21cChunk: Fixed missing initialization.Mattes D1-0/+2
Fixes CID 72670.
2014-12-21cWorld: Moved initialization into constructor.Mattes D1-3/+2
Fixes CID 71781.
2014-12-21cEndGen: Fixed unitialized member variables.Mattes D1-1/+3
Fixes CID 43671.
2014-12-21cNoise3DComposable: Fixed unitialized member variables.Mattes D1-1/+3
Fixes CID 43665.
2014-12-21Fixed coverity issues in protocols.Mattes D2-4/+11
Fixes CID 73099, CID 66411.
2014-12-21Fixed a possible division by zero.Mattes D3-6/+16
2014-12-21Fixed crash on restartTiger Wang2-5/+14
2014-12-20Fixed damn empty line with no useMasy982-5/+1
2014-12-20Added Rabbit.h and Rabbit.cpp to the CMakeListMasy981-0/+2
2014-12-20Fixed Rabbit sizeMasy981-1/+1
2014-12-20Added RabbitsMasy9811-0/+99
2014-12-19Fixed Guardians size and healthMasy981-1/+1
2014-12-18Guardian can now spawn if wanted!?Masy982-2/+2
2014-12-18Added Entity GuardianMasy9814-2/+141
2014-12-18Fix repeater unpoweringTiger Wang1-2/+4
2014-12-17derpHowaner1-1/+1
2014-12-17Added comment.Howaner1-1/+1
2014-12-17C++11 and function rename.Howaner16-50/+71
2014-12-17Fixed eMonsterType lua bugs.Howaner1-0/+1
2014-12-17Removed unneeded newlinesIvan Đorđević1-6/+0
2014-12-17NULL -> nullptrTiger Wang5-18/+22
2014-12-16Fixed water from spreading on bottom of worldgushromp1-7/+11
2014-12-16Fixed water from spreading on bottom of worldgushromp1-5/+8
2014-12-15Added braces to 'if' according to the code guidelinesgushromp1-0/+2
2014-12-15Updated cPlayer::DoMoveToWorld to send target world's weather info to Playerblashyrk1-0/+4
2014-12-14Fixed mob invisibilityHowaner1-1/+0
2014-12-14"& 0x0f" isn't neededHowaner2-3/+3
2014-12-13FixesHowaner4-5/+22
2014-12-13Implemented vanilla-like shift click.Howaner17-105/+400
This fixes many visual bugs.
2014-12-13WormNestCaves occasionally generates sandstone around the caveSTRWarrior1-3/+22
Only when the block around the cave is sand.
2014-12-13Own classes for all windows.Howaner28-597/+647
2014-12-12Fixed print of milliseconds from chronoLukas Pioch1-1/+1
2014-12-12LightingThread: Fixed a memory leak.Mattes D1-2/+2
2014-12-12Exported cWorld:PrepareChunk to Lua API, test in Debuggers.Mattes D1-0/+67
2014-12-11Cosmetic touchups.Mattes D5-10/+11
Removed trailing whitespace, added cast to remove warning, added file seeking in case of corrupt files.
2014-12-11Fixed DungeonRooms edges not generating sometimes.Mattes D1-2/+2
2014-12-10Added a cWorld:PrepareChunk function.Mattes D9-51/+260
It prepares the chunk - loads or generates it and lights it. The spawn prepare process uses this function.
2014-12-10Lighting thread: skip chunks that are already lit.Mattes D1-0/+10
2014-12-10Moved NetherOreNeststonibm191-1/+1
2014-12-10Changed method call to DoesAllowMultiLogin() instead of IsAllowMultiLogin()Vincent1-1/+1
Compiles correctly.
2014-12-09Fixed return value in CheckMultiLogin()Vincent1-1/+2
2014-12-09Fixed compiling.Howaner1-1/+1
2014-12-09Fixed indent problems and added return definitions to CheckMultiLogin().Vincent3-7/+8
Changed from IsAllowMultiLogin() to DoesAllowMultiLogin(). Fixed CheckMultiLogin() to not run to the end without returning a value.
2014-12-09Added a RemoveIf() function to cQueueMattes D1-0/+23
2014-12-09Changed DoWithPlayer to auto instead of using iterator.Vincent1-2/+2
2014-12-08Changed CheckMultiLogin() to not have main body wrapped in an if statement.Vincent4-21/+28
Added in indent to cPlayerListCallBack in cCallback class inside CheckMultiLogin(). Added doxy-comment for DoWithPlayer(). Changed comments on IsPlayerInQueue() and IsAllowMultiLogin() to doxy-comments.
2014-12-08Moved NaturalPatches in front of PreSimulator and Animals.Mattes D1-1/+1
2014-12-08Check to see if header write out is requiredplanetx1-17/+15
2014-12-08Added NetherOreNests to nether default generator.tonibm191-1/+1
Now there's quartz in the nether
2014-12-08Added NaturalPatches to finisherstonibm191-1/+1
2014-12-08Added timestamp to merged files WSSAnvilplanetx1-1/+1
2014-12-08Added timestamp to merged files WSSAnvilplanetx1-62/+62
2014-12-08Added timestamp to new files WSSAnvilplanetx2-79/+149
2014-12-08created callback in Root and changed CheckMultiLogin() to use the DoWithPlayer function at Root instead of World.Vincent2-2/+9
2014-12-08Fixed compile errorsVincent6-18/+14
2014-12-08removed last space in handlehandshakeVincent1-1/+0
2014-12-08Changed HandleHandshake to return the result of CheckMultiLogin instead of just true since it already returns true if it finds and kicks the current player.Vincent1-24/+23
2014-12-08Moved the check into a new function and just calls that function and a blank FindAndDoWithPlayer added.Vincent4-23/+52
2014-12-07Added Timestamp info to chunks in WSSAnvilplanetx2-87/+47
2014-12-07changed from using iterator to auto for server and clienthandleVincent2-4/+4
2014-12-07cMojangAPI: Fixed a possible problem with thread termination order.Mattes D1-5/+17
2014-12-07Fixed integer overflow problems.Mattes D2-4/+4
The event would overflow when requesting a 60 minute timeout.
2014-12-07Fixed format warning.Mattes D1-2/+2
2014-12-07Fixed crash on server stop.Mattes D1-0/+9
The entity destructors called through chunkmap destructor and chunk destructor were accessing the world which was in an already invalid state (half-destroyed). Fixed by destroying chunkmap explicitly and providing a nullptr check in the HasEntity() function.
2014-12-07Fixed c++11 branch issues.Mattes D7-44/+57
2014-12-07Reduced river heightSTRWarrior1-2/+2
Rivers would exceed the water height quite often
2014-12-07Fixed error message in cFinishGenPassiveMobsSTRWarrior1-1/+1
It would send an error message when trying to spawn mobs in a desert
2014-12-06Replaced most auto_ptr with unique_ptr.Mattes D2-62/+62
2014-12-05FinishGenPassiveMobs: Cosmetic changes.Mattes D2-30/+33
2014-12-05formatting and default spawn percentagep-mcgowan1-1/+2
2014-12-05CheckBasicStyle: Check missing braces for control statements.Mattes D1-0/+19
Only single-line control statements are checked.
2014-12-05BasicStyle: Added missing braces to control statements.Mattes D17-54/+241
2014-12-05CheckBasicStyle: Added a check for parentheses around comparisons.Mattes D1-0/+22
The check is only rudimentary and tends to fall towards missed positived rather than false positives.
2014-12-05Fixed reported parentheses around comparisons.Mattes D14-83/+99
2014-12-05reformatp-mcgowan1-9/+5
2014-12-05restructure, with logic this timep-mcgowan1-5/+13
2014-12-05restructured random animals, added check for desert (update as per wiki)p-mcgowan1-19/+17
2014-12-05handle non-vanilla dimensionsp-mcgowan1-2/+2
2014-12-05handle non-vanilla dimensionsp-mcgowan1-2/+3
2014-12-05formatting fixesp-mcgowan1-4/+11
2014-12-04CheckBasicStyle: Doesn't report false positives ending in a keyword.Mattes D1-5/+5
2014-12-04format blocks and randomizingp-mcgowan2-9/+9
2014-12-04Fixed trailing whitespace.Mattes D2-6/+6
2014-12-04last doxy fixp-mcgowan1-3/+3
2014-12-04awful comment fixing, randomizer fixp-mcgowan2-19/+32
2014-12-04Fixed the CRAFTING_NO_RECIPE hook call.Mattes D6-6/+6
It used a pointer-to-pointer-to-cCraftingRecipe, which the Lua bindings didn't know how to handle, and emitted a warning message at runtime. Fixes #1641.
2014-12-04Updated whitespace in comment, changed conditional to logical equivalent due to popular demandJonathan Fabian1-2/+2
2014-12-03Fixed indent.Mattes D1-2/+2
2014-12-03Server: Fixed a MSVC warning.Mattes D1-1/+1
2014-12-03ByteBuffer: Re-added Single-thread access checker.Mattes D2-0/+90
2014-12-03Fixes socket leak in HTTP server.Mattes D1-3/+11
Fixes #1643.
2014-12-03clearing CheckBasicStyle.lua messagesp-mcgowan4-34/+34
2014-12-03class description and doxy-commentingp-mcgowan2-5/+8
2014-12-03doxy-commentingp-mcgowan1-3/+3
2014-12-03Fix Spaces to TabsJonathan Fabian1-5/+5
2014-12-03Add missing IsSpectatorMode() checks in Player.cpp, make sure that player is flying when spawned otherwise it will fall through the world.Jonathan Fabian1-6/+11
2014-12-03Allow Spectator Gamemode as a world default.Jonathan Fabian1-1/+1
2014-12-03forgot generation defaul initp-mcgowan1-1/+1
2014-12-03forgot initializerp-mcgowan1-1/+5
2014-12-02typos and oversights for lua and CIp-mcgowan1-1/+5
2014-12-02fastRandom unusedp-mcgowan1-1/+0
2014-12-02indentation, repeatable random, small correctionsp-mcgowan1-98/+93
2014-12-02updated mooshroom check for myceliump-mcgowan1-1/+1
2014-12-02fix comments after replacing spaces with tabsp-mcgowan1-4/+4
2014-12-02animal terrain finisherp-mcgowan2-187/+187
2014-12-02animal terrain finisherp-mcgowan2-0/+241
2014-12-02Fixed forgotten semicolonSTRWarrior1-1/+1
2014-12-02Using IntNoise3DInt instead of IntNoise3DSTRWarrior1-1/+1
2014-12-02Suggestions by xoftSTRWarrior1-3/+3
Using IntNoise3D to prevent needless floating point math
2014-12-02extra formatting parenthesesp-mcgowan1-2/+2
2014-12-02added spawning rule to mooshroomp-mcgowan1-0/+13
2014-12-02reformat for lua and CIp-mcgowan2-6/+9
2014-12-02formatting and commenting fixesp-mcgowan2-6/+6
2014-12-01cacti no longer spawn outside of desert variantsp-mcgowan2-1/+16
2014-12-01Using static cast for Dungeon spawnersSTRWarrior1-1/+1
2014-12-01Using static cast for MineShaft spawnersSTRWarrior1-1/+1
2014-12-01Mineshaft spawners now spawn cave spidersSTRWarrior1-1/+4
2014-12-01Added cocoa pod.Howaner5-2/+139
2014-12-01Dungeons spawners now spawn mobsSTRWarrior1-1/+22
25% for a spider, 25% for a skeleton and 50% for a zombie spawner.
2014-12-01Simplefied SoulsandRimsSTRWarrior1-36/+6
Replaced two for loops with a single if
2014-12-01Added better soulsand rimsSTRWarrior5-12/+107
As a finisher called SoulsandRims
2014-12-01MobSpawner fixes.Howaner6-5/+13
2014-12-01DistortedHeightmap: Added missing initialization.Mattes D1-0/+2
This was probably the original cause for the "empty chunks". Fixes #1433.
2014-12-01Noise3D: Fixed missing initialization.Mattes D1-1/+3
This should fix terrain being at Y=0 or Y=255 for the spawn chunk. Fixes #1433.
2014-11-30Hopefully fixed random build failsSTRWarrior1-1/+1
2014-11-30Fixed a crash in cSpawnPrepare.Mattes D1-0/+2
2014-11-30Fixed nether ceilingSTRWarrior1-1/+1
2014-11-30Fixed compiling on linux.Howaner1-0/+1
2014-11-30Improved comments for cWorld::DoWithPlayer().Mattes D2-2/+3
2014-11-30Removed old StringToMobType() function from Monster.cppHowaner1-10/+0
2014-11-30Changed Kick messagevincentleung11-2/+2
2014-11-30removed extra space and fixed some formatting in cCallbackvincentleung11-3/+3
2014-11-30removed GetUsernames() from WorldVincent2-18/+0
2014-11-30Uses callback for players already in World.Vincent1-5/+12
2014-11-29Removed unneeded include.Mattes D1-1/+0
2014-11-29Fixed QtBiomeVisualiser compilation.Mattes D1-1/+0
2014-11-29Added a basic stacktracing for assert and signal failures.Mattes D5-4/+73
2014-11-29fixed naming of strings and changed from i to IVincent5-13/+18
2014-11-29Mark StringToMobType() as deprecated. Use cMonster:StringToMobType() insteadHowaner2-9/+39
2014-11-29Removed unused imports.Howaner2-2/+0
2014-11-29Many api fixes, add vanilla names to mob type -> string functions and mob spawner fixes.Howaner11-116/+86
2014-11-29issue 1253 - prevent multiple logins with same usernameVincent5-0/+58
2014-11-27Chunk: Fixed same-name iterators.Mattes D1-5/+5
2014-11-27OctavedNoise: Another unshadowed local variable.Mattes D1-9/+11
2014-11-27Minecart.h: Fixed integral conversion warning.Mattes D1-1/+1
2014-11-27RidgedNoise: Replaced fabs with std::abs().Mattes D1-2/+2
2014-11-27OctavedNoise: Unshadowed a local variable.Mattes D1-10/+12
2014-11-27BlockEntities: Removed the extra semicolon.Mattes D16-24/+25
2014-11-27Replaced auto_ptr with unique_ptr.Mattes D2-6/+6
2014-11-27CompoGenBiomal: Fixed signed vs unsigned comparison.Mattes D1-1/+1
2014-11-27Fixed BlockStringToType return value.Mattes D3-5/+5
-1 was not a valid BLOCKTYPE and would not be recognized by the callers, ever.
2014-11-26CMake: Fixed linux builds.Mattes D1-5/+4
2014-11-26cRoot: Fixed a memory leak with cRankManager.Mattes D2-3/+5
2014-11-26Windows: Fixed builds with LeakFinder enabled.Mattes D2-2/+4
2014-11-26WSSAnvil: Fixed bad code in arrow loading.Mattes D1-2/+8
2014-11-26Merge remote-tracking branch 'origin-master' into c++11Tiger Wang32-1653/+1688
2014-11-25ClientHandle: Fixed max block place distance check.Mattes D1-4/+10
Fixes #1492
2014-11-24Changed back capitalization.Mattes D1-3/+3
2014-11-23Added TwoHeights shape generator.Mattes D5-8/+162
This is a faster shape generator that can generate overhangs and has biome awareness.
2014-11-23Removed unnecessary #includesTiger Wang2-2/+0
2014-11-23Compilation fixesTiger Wang3-10/+8
2014-11-23Noise3D generator: Enlarged averaging to avoid steep beach slopes.Mattes D2-4/+4
2014-11-23formatting - newline at EOF inserted: Pig.cppp-mcgowan1-1/+5
2014-11-23pigs turn into pigmen on lightningp-mcgowan2-0/+19
2014-11-22cWorld: Rewritten spawn preparation.Mattes D2-120/+113
It now supports pregeneration distance of any size and runs in two threads in parallel (generator / lighting). Fixes #1597.
2014-11-22formatter errorp-mcgowan1-3/+3
2014-11-22villagers turn into witches on lightningp-mcgowan1-2/+4
2014-11-22villagers turn into witches when struck by lightningp-mcgowan1-0/+5
2014-11-20cWorld: Changed generator defaults.Mattes D1-13/+17
2014-11-20BiomalNoise3D generator: finished all biomes.Mattes D1-66/+74
2014-11-20CompoGenBiomal: Fixed sealevel offset.Mattes D1-1/+1
2014-11-20CompoGenBiomal: Fixed sealevel not generating properly.Mattes D1-1/+2
2014-11-20Generators: Unified SeaLevel into a single variable.Mattes D3-70/+3
It is shared between shape generators and composition generators and there's no sense in having two different values for those.
2014-11-20Noise3D generators: Changed noise generator to InterpolNoise.Mattes D2-10/+10
2014-11-19cInterpolNoise: Implemented optimized 2D generating.Mattes D3-32/+219
2014-11-19cOctavedNoise: Removed misleading comment, fixed assert texts.Mattes D1-3/+3
2014-11-18cOctavedNoise: Added a forgotten comment.Mattes D1-1/+1
2014-11-18Added a cInterpolNoise template for faster noise generator.Mattes D3-4/+439
Used an instance of it in the Noise3D generator.
2014-11-18Finished mob spawner implementation.Howaner18-124/+78
2014-11-18Moved all Noise-related files into a separate folder.Mattes D26-80/+56
2014-11-18Refactored cRidgedNoise into a separate template.Mattes D5-243/+104
This allows us to make the ridges out of any noise and to combine the cRidgedNoise with cOctavedNoise.
2014-11-18OctavedNoise: linux compilation fixes.Mattes D2-2/+3
2014-11-17Added cOctavedNoise template.Mattes D3-258/+206
This allows us to use any noise generator in the combination of octaves.
2014-11-17Use cLuaState's stack trace.Howaner1-48/+27
2014-11-17Fixed include path.Mattes D1-1/+1
2014-11-17Added cImprovedNoise implementation.Mattes D4-46/+376
2014-11-17Added UpdateSign() method to DeprecatedBindings.cppHowaner2-3/+88
2014-11-17Fixed a wrong assert in cClientHandle::SetViewDistance().Mattes D1-4/+8
2014-11-16Changed commentSTRWarrior1-1/+1
Suggestion by xoft
2014-11-16BiomalNoise3D: Added more biomes.Mattes D1-13/+65
2014-11-15Use LastPlacedSign instead of LastPlacedBlock.Howaner2-8/+6
2014-11-15Renamed m_UsedViewDistance to m_CurrentViewDistanceHowaner2-11/+11
2014-11-15Mobs: Fixed crash with terrain too high.Mattes D2-5/+7
2014-11-15Generator: Fixed crash with trees too high.Mattes D1-2/+7
2014-11-15Snow generator: Fixed failure at top of the world.Mattes D1-1/+1
2014-11-15ChunkDesc: Fixed comment about indexing.Mattes D1-1/+1
2014-11-15Renamed m_SetViewDistance to m_RequestedViewDistanceHowaner2-7/+7
2014-11-15Fixed a security problem with signs.Howaner5-16/+18
2014-11-15Renamed GetSettedViewDistance() to GetRequestedViewDistance()Howaner2-3/+3
2014-11-15DungeonRooms: Changed to work with the new shape generators.Mattes D1-10/+15
2014-11-14Use m_UsedViewDistance and m_SetViewDistance.Howaner3-15/+26
2014-11-14Noise3D: Added jungles.Mattes D1-0/+2
2014-11-13Noise3D: Added oceans.Mattes D1-0/+3
2014-11-13Gen refactor: Implemented CompositedHeiGen.Mattes D9-217/+141
This fixes crashes in the Village generator due to the missing generator.
2014-11-13First implementation for the LargeOakTreeSTRWarrior3-2/+125
2014-11-12Fixed trailing whitespace.Mattes D3-3/+3
2014-11-12Generator: Shape initial refactoring.Mattes D23-1346/+1356
The code compiles, but several structure generators are broken, crash on start.
2014-11-10BiomalNoise3D: Added a few biomes.Mattes D1-5/+8
2014-11-10TallGrassGenerator: Fixed crash when too highSTRWarrior1-0/+5
2014-11-10Added BiomalNoise3D shape generator.Mattes D4-29/+369
2014-11-09Noise3d Generator: Fixed unused function error.Mattes D1-1/+1
2014-11-09Noise3D generator: rewritten from scratch.Mattes D2-78/+145
Now it uses three 3D and one 2D perlin noises to generate the terrain, and is highly parametrizable.
2014-11-06Noise3D CompoGen: Fixed missing initialization.Mattes D1-0/+2
2014-11-06Fixed an extra space.Mattes D1-1/+1
2014-11-05renamed FindAndDoWithUUID to DoWithPlayerByUUID, fixed style and comments, added description to APIDumpLukas Pioch5-10/+11
2014-11-04cEvent: Changed chrono duration resolution.Mattes D1-1/+1
2014-11-04cEvent: Changed steady_clock to system_clock.Mattes D1-2/+2
2014-11-04MinMax heigen: Reduced the number of octaves.Mattes D1-2/+0
They didn't affect the terrain that much anyway.
2014-11-04Added MinMax height generator.Mattes D1-0/+207
Fixes #1578.
2014-11-03Fixed a missing endline.Mattes D1-1/+5
2014-11-03Added a (disabled) perf test for biome generators.Mattes D1-0/+46
2014-11-03HeiGen: Moved construction to the end of file.Mattes D1-75/+75
This will allow us to define generators in the cpp file instead of needing them in the header, thus speeding up compilation on changes.
2014-11-02Simplified FindAndDoWithUUID, formatted lineLukas Pioch2-8/+2
2014-11-02Added FindAndDoWithUUIDLukas Pioch5-0/+46
2014-11-02Grown biomes: fixed Linux build.Mattes D1-3/+3
2014-11-02Grown biomes: Unified with GrownProt biomes.Mattes D3-159/+595
Also fixed a Zoom filter randomness.
2014-11-01GrownProt: Added the rest of rare and M biomes.Mattes D2-14/+91
2014-11-01GrownProt biome gen: Added biome edges.Mattes D2-2/+162
2014-10-31cLuaState: Fixed errors on non-existent callbacks.Mattes D1-1/+5
This mostly affected table-based callbacks, such as the cLineBlockTracer. If a callback didn't exist, the code would still push its arguments on the stack, breaking the next callback.
2014-10-31Fixed missing CS lock in cChunkMap::WakeUpSimulatorsInArea().Mattes D1-0/+1
2014-10-31GrownProt biomes: added alterations.Mattes D3-130/+192
2014-10-30Fixed m_SentChunks list chunk removing.Howaner1-1/+1
2014-10-30... in this worldHowaner1-1/+1
2014-10-30Added a MaxViewDistance option.Howaner3-1/+16
2014-10-30QtBiomeVisualiser: Added a prototyping int generator flavor.Mattes D4-53/+1253
This generator is easier to manipulate, since it doesn't require rewriting the sizes in the template parameters. On the other hand, it doesn't optimize so well, so it's a bit slower.
2014-10-29Improved redstone simulatorTiger Wang2-818/+808
* Fixed style inconsistencies * Used more C++11 features * Improved speed perhaps
2014-10-29Fixed 1.8 world item format reading.Howaner2-3/+25
2014-10-29Grown biomes: made biomes smaller, made beaches smaller.Mattes D1-11/+8
2014-10-28Forgotten m_SendChunksMediumPriority.empty() check.Howaner1-1/+1
2014-10-27Fixed compile (typos).Alexander Harkness1-2/+2
2014-10-27Comment alignment.Alexander Harkness2-8/+8
2014-10-27CheckBasicStyle'dAlexander Harkness4-32/+32
2014-10-27Another one.#Alexander Harkness1-0/+22
2014-10-27Fixed more warnings.Alexander Harkness1-14/+14
It's ugly though.
2014-10-27Another switch.Alexander Harkness1-0/+5
2014-10-27Fix missing biomes in enum.Alexander Harkness1-0/+5
2014-10-27Fixed remaining warnings.Alexander Harkness1-5/+5
2014-10-27Actually fixed the warning.Alexander Harkness1-20/+9
2014-10-27Test warning fix.Alexander Harkness1-0/+11
2014-10-27Fixed typo.Alexander Harkness1-1/+1
2014-10-27Pocess?Alexander Harkness1-2/+2
2014-10-27cIntGen: Added a virtual destructor.Mattes D1-0/+4
2014-10-27Removed too advanced C++11 features.Mattes D2-32/+28
We need to keep gcc 4.6 compatibility; these features were not implemented in that version yet.
2014-10-26IntGen: Attempt at fixing Linux compilation.Mattes D1-13/+13
2014-10-26BioGenGrown: Smaller biomes, add land to map center.Mattes D2-16/+13
2014-10-26Fixed a copypasta error in cIntGenAddToOcean.Mattes D1-4/+4
2014-10-26Added a missing header to CMakeLists.Mattes D1-0/+1
2014-10-26Added new biomegen: GrownMattes D3-0/+1053
2014-10-26Added IsBiomeVeryCold() and IsBiomeCold() functions.Mattes D2-0/+71
2014-10-26Added type to block type enum.Mattes D1-1/+11
2014-10-25Cleaned up simulatorsTiger Wang17-2681/+2644
2014-10-25Fixed some block checksTiger Wang2-4/+3
* Fixes #1330
2014-10-24Moved the chrono include into Globals.Mattes D2-1/+2
2014-10-24Added a missing chrono include.Mattes D1-0/+1
2014-10-24IniFile: Removed the problematic printf-like Set function.Mattes D2-20/+0
It wasn't used in any client code anyway.
2014-10-24OSSupport/CMakeLists.txt: fixed indentationarchshift1-3/+3
2014-10-24SuggestionsTiger Wang7-10/+50
2014-10-24Fixed formatstringworktycho1-1/+1
2014-10-24Fixed potential linker errors with mingw, as it isn't MSVC and it isn't APPLE.archshift1-4/+4
2014-10-23Fix linking on OS X, which does not have librt.archshift1-2/+6
2014-10-23Use 3 priorities.Howaner4-7/+45
2014-10-23IniFile: Removed an unused macro.Mattes D1-4/+0
2014-10-23Removed iniFile library from linux dependencies.Mattes D2-2/+2
2014-10-23Merged IniFile into main MCS sources.Mattes D27-27/+1160
2014-10-23Fixed a crash in redstone simulator.Mattes D1-1/+0
2014-10-23Reimplemented cEvent using C++11 primitives.Mattes D2-136/+51
Fixes #1523.
2014-10-23Removed the "conditional expression is constant" warning.Mattes D1-2/+4
MSVC spits out many of these on its own std libraries.
2014-10-23Signs can be placed on wallsigns.Alexander Harkness1-1/+1
Fixes #1438
2014-10-23Added FastRandom.* back to CMakeLists.txt.Mattes D1-0/+2
2014-10-23En masse NULL -> nullptr replaceTiger Wang211-1746/+1768
2014-10-22ComposableGenerator: Removed nullptr initializers.Mattes D1-3/+3
2014-10-22LuaState: Projectiles are pushed using their full class.Mattes D1-1/+1
2014-10-21cItemFrame: Fixed a forgotten rename.Mattes D2-2/+2
2014-10-21Properly exported cItemFrame and cHangingEntity to Lua.Mattes D10-67/+100
2014-10-21Fixed trailing whitespace.Mattes D2-2/+2
2014-10-21Exported individual projectile classes to Lua API.Mattes D18-221/+367
They used to be exported, but then they were moved to separate files and those werent' added to the ToLua processing list.
2014-10-21Reverted hook move.Howaner1-5/+5
2014-10-21style.Howaner1-1/+2
2014-10-21Moved tall grass pickups handle.Howaner2-9/+37
2014-10-21Use two lists and 2 chunk send prioritys.Howaner4-66/+40
2014-10-21New c++11 stuff.Howaner1-4/+4
2014-10-21Missing EOL.Alexander Harkness1-1/+1
2014-10-21Alignment.Alexander Harkness1-6/+6
2014-10-21Missing space.Alexander Harkness1-1/+1
2014-10-21Missing space fix.Alexander Harkness1-1/+1
2014-10-21Compile fix?Tiger Wang2-4/+2
2014-10-21Windows close handlers handles more closesTiger Wang1-5/+2
2014-10-21Replace &*[0] accesses with .data()Tiger Wang3-8/+8
2014-10-21cLuaState: cEntity is pushed with specific type.Mattes D1-7/+48
2014-10-20En masse NULL -> nullptr replaceTiger Wang211-1439/+1439
2014-10-20Use std::recusive_mutexTiger Wang3-52/+9
2014-10-20Migrated cSleep and cTimer to std::chronoTiger Wang18-168/+45
2014-10-20Fixed #1550Julian Laubstein1-6/+6
2014-10-20Fixed a potential crash in cEntity bindings.Mattes D1-2/+6
2014-10-20Found it!Julian Laubstein1-1/+1
2014-10-20Fix for fix #1552Julian Laubstein1-2/+2
2014-10-20Added error messageJulian Laubstein2-9/+11
2014-10-20Added error handling to load <plugin> commandJulian Laubstein1-1/+11
2014-10-19Removed obsolete tr1::shared_ptr.Mattes D1-13/+2
2014-10-19Fixed minor style issues.Mattes D3-3/+3
2014-10-19TwoLevel BioGen: fixed swapped inside and outside biomes.Mattes D1-1/+1
2014-10-19Fixed error with non-const functionJulian Laubstein2-2/+2
2014-10-19Migrated random generators to std::randomTiger Wang16-556/+102
2014-10-19Added mechanics placeable on halfslabsJulian Laubstein4-10/+79
2014-10-19Mountain height gen: Added ditches.Mattes D2-8/+16
2014-10-19Generator: Rewritten to use SharedPtrs.Mattes D18-181/+145
2014-10-19cLuaState: cMonster descendants don't push their specific type.Mattes D1-1/+10
The individual mob types aren't exported to Lua, so pushing them would crash the server.
2014-10-19cLuaState: cBlockEntity descendants are pushed with proper class type.Mattes D17-26/+63
2014-10-19LuaState: Pushing a cEntity pushes the correct class name.Mattes D2-6/+8
This makes Lua scripts easier, as they don't need to cast values from cEntity to the specific descendant.
2014-10-19Bindings: Removed obsolete codegen files.Mattes D3-237/+0
LuaState_Call.inc is no longer needed, it was replaced with variadic templates.
2014-10-19Use std::threadTiger Wang13-432/+59
2014-10-18Fixed failure for cRankManager to restartTiger Wang4-43/+44
2014-10-18Furnaces now update their block entity typeTiger Wang2-3/+5
Therefore improving cChunk's variable boundary checking.
2014-10-18Simpler code.Alexander Harkness1-3/+2
2014-10-17cMojangAPI: Don't update data if server is in offline mode.Mattes D5-8/+12
2014-10-17LuaChunkStay: Fixed a crash on unused callback.Mattes D1-2/+6
2014-10-16Nullptr?Alexander Harkness1-2/+2
2014-10-16Merged branch 'fix_chunks'.Mattes D2-3/+35
2014-10-16Fixed a number of stylistic issues.Alexander Harkness1-7/+7
2014-10-16Use universal referencesworktycho1-4/+4
2014-10-16Changed i variable to jSTRWarrior1-3/+10
The server wasn't going over all the items before.
2014-10-16BioGen: Fixed a compiler warning.Mattes D1-2/+2
2014-10-16Reversed wrong fix for #1517.STRWarrior1-8/+2
2014-10-15Reversed the order of the lootSTRWarrior1-7/+15
For some reason the rare items weren't generating at all. Added forgotten Golden Apple
2014-10-15Added loot to dungeons.STRWarrior1-1/+27
2014-10-15Fixed possible crashSTRWarrior1-1/+8
It could crash if MinAmount - MaxAmount was 0 because it would execute (Number % 0)
2014-10-15cLuaState::Call() uses variadic templates.Mattes D1-3/+75
(doesn't compile)
2014-10-15Functions in cPluginManager get references instead of pointers.Mattes D29-181/+220
2014-10-15Using C++11 loopsSTRWarrior1-5/+5
2014-10-15The code now prevents conflicting enchantments.STRWarrior1-0/+1
2014-10-15IntNoise1DInt result gets devided by 7 firstSTRWarrior1-1/+1
suggestion by xoft
2014-10-15Adding enchantments directly instead of first getting the name of it.STRWarrior1-1/+1
2014-10-15Renamed the counter to 'j'STRWarrior1-1/+1
2014-10-15Returned cFastRandom and cEnchantment:GetRandomEnchantmentFromVector to beforeSTRWarrior5-16/+36
Added cEnchantment:GenerateEnchantmentFromVector that allows to get the same enchantments over and over.
2014-10-15Enchanted books generate in MineShafts chestsSTRWarrior5-6/+30
2014-10-15Usernames are lowercased before generating offline UUID.Mattes D1-1/+4
This breaks previous offline UUIDs, but it guarantees that future offline UUIDs will be the same even for usernames with wrong capitalization.
2014-10-13cWorld: Fixed scheduler.Mattes D1-9/+18
Fixes #1534. Added a test case into the Debuggers plugin.
2014-10-13Fixed style.Mattes D3-4/+7
2014-10-13CheckBasicStyle ignores the Bindings.h generated file.Mattes D1-0/+1
2014-10-12Aligned simulatorsworktycho1-5/+5
2014-10-12Fix styleworktycho1-2/+2
2014-10-12Fix spacesworktycho1-2/+2
2014-10-12Update World.cppworktycho1-1/+1
2014-10-12fix std:min call, include algorithm and compare same typeSteven Riehl1-2/+2
2014-10-12refactor an if block to std::minSteven Riehl1-4/+1
2014-10-12convert old style casts to fix warningsSteven Riehl17-549/+486
2014-10-11Fixed compilation.Alexander Harkness1-1/+1
2014-10-11Fixed typo and removed useless right side up slab meta.Alexander Harkness1-2/+1
2014-10-11Fix lambda captureworktycho1-1/+2
2014-10-10Moved a few objects to unique_ptrtycho4-39/+41
2014-10-10Fixed MSVC compilation.Mattes D2-1/+3
2014-10-09Float/Ciel: If it's going to use C++11, it might as well take advantage of itarchshift3-26/+12
2014-10-09Use static casts instead of C casts, add floor-cast functionsarchshift3-24/+55
2014-10-09DistortedHeightmap: Fixed crash on number rounding.Mattes D1-4/+5
Fixes #1521.
2014-10-08Added comments to the GetAcaciaTreeImage functionSTRWarrior1-0/+18
2014-10-08Using array with possible directions.STRWarrior1-8/+9
2014-10-08Added AcaciaTrees for the savanna biomesSTRWarrior1-5/+56
2014-10-07Added distance check.Howaner1-0/+12
2014-10-07Leaves are harvest-able.Howaner1-2/+0
2014-10-07Corrected drops from dead bush, tall grass and cobweb.Howaner5-39/+64
2014-10-07Corrected IsBlockAttachable() in BlockVine.hHowaner1-5/+15
2014-10-07Removed BlockHaybale.h from CMakeLists.txtHowaner1-1/+0
2014-10-07Removed unused cBlockHayBaleHandler.Howaner2-24/+1
2014-10-06Stream 4 chunks per tick. Added priority.Howaner7-29/+58
2014-10-06Better StreamNextChunk() methodHowaner2-15/+120
2014-10-06Fixed crash in ForEachEntityInBox API.madmaxoft3-6/+18
Fixes #1511.
2014-10-06cMojangAPI: Added periodical refreshes.Mattes D2-19/+132
2014-10-06Update CMakeLists.txtworktycho1-1/+1
2014-10-05Fixed a missed value.madmaxoft1-1/+1
2014-10-05Removed obsolete cMonster::eType.madmaxoft1-3/+0
Has been replaced with global eMonsterType.
2014-10-05Fixed eMonsterType Lua API mismatch.madmaxoft6-54/+25
2014-10-05cClientHandle: Added protocol version knowledge.Mattes D4-3/+21
2014-10-05Added a cEvent::Wait() with timeout.Mattes D2-0/+51
2014-10-04Fixes #1503 - No gravel is being generatedwin32re1-1/+1
2014-10-03Comment suggestionsTiger Wang1-2/+3
2014-10-03Improved furnacesTiger Wang15-180/+131
* Fixed progress bar on 1.8 * Fixed bugs * Improved code * Fixes #1068 * Fixes #1070
2014-10-02Optimized chunk loaderHowaner7-105/+93
2014-10-02Fix spelling of PRISMRAINEAlexander Harkness1-1/+1
Fixes #1497
2014-10-01Fixed sortingMasy981-2/+2
2014-10-01Fixed Red Sandstone and Prismarine dropsMasy983-24/+30
2014-10-01Added Daylight Sensors to the "can't push" listMasy981-0/+2
2014-10-01Fixed ":"Masy981-11/+11
2014-10-01Added missing 1.8 blocks, E_METAs and soundsMasy983-7/+59
2014-10-01cRoot: Removed useless variable from Lua API.madmaxoft1-2/+3
2014-10-01cPlayer: Removed useless functions from the Lua API.madmaxoft1-2/+6
2014-10-01Bindings: Fixed binding for cPlayer::PermissionMatches().madmaxoft1-10/+4
2014-10-01Unified cRoot broadcast chat documentation.madmaxoft1-5/+5
2014-10-01cClientHandle: Alpha-sorted the sending functions.madmaxoft1-7/+7
2014-09-30Removed WSSCompactTiger Wang28-1664/+0
2014-09-30Improved torch handlerTiger Wang2-70/+52
2014-09-30Code improvementsHowaner3-3/+7
2014-09-30Fixed 1.8 dirt typesHowaner3-3/+35
2014-09-30Fixed a missing semicolon.madmaxoft1-1/+1
2014-09-30Fixed iron trapdoorsHowaner4-2/+9
2014-09-30Fixed 1.8 doors.Howaner1-1/+14
2014-09-30IndentationJulian Laubstein1-3/+3
2014-09-30Rewritten plugin messages, vanilla are being parsed directly.madmaxoft6-118/+242
This should finally fix the compatibility problems between 1.7 and 1.8 protocols with the changes in the vanilla plugin messages.
2014-09-30Set right indentationJulian Laubstein1-3/+3
2014-09-30actual solving of the halfslap+torch problemJulian Laubstein1-1/+3
2014-09-29RankMgr: GetAllPlayers() returns players sorted by name.madmaxoft2-2/+2
2014-09-29Style fixes.madmaxoft3-10/+13
2014-09-29World: Fixed chunk generation by plugins.madmaxoft1-1/+1
ChunkWorx was broken, it was trying to generate chunks that were not properly marked as InQueue.
2014-09-29Fixed codestyle again.Alexander Harkness1-1/+1
2014-09-29BlockStone.h: fix the codestylew00tc0d31-6/+5
2014-09-29Tabs -> spacesw00tc0d31-4/+4
2014-09-29BlockStone: drop the right cobblestone on onBreak().netchip2-3/+15
Signed-off-by: netchip <w00tc0d3@outlook.com>
2014-09-29Renamed GetAllPlayers() to GetAllPlayerUUIDs()Howaner3-7/+7
2014-09-29Update BlockTorch.hJulian Laubstein1-3/+3
2014-09-29Added torches placeable on upside-down-halfslapsJulian Laubstein1-1/+3
2014-09-29DerpJonathan Frederick1-1/+1
2014-09-29Fix commentsJonathan Frederick1-2/+2
2014-09-28Plugin messages: Vanilla prefixes its payloads with VarInt lengths.madmaxoft1-4/+13
2014-09-28Make endermen take damage in waterJonathan Frederick2-0/+21
2014-09-28Revert "1.8: Fixed plugin messages."madmaxoft1-1/+3
This reverts commit 04ee8c43dd17eb98d1e3d66ff691898e9f269b95.
2014-09-28Protocol 1.8: Fixed possible crash on malformed packet.madmaxoft1-0/+5
2014-09-28Fixed trailing whitespace.madmaxoft1-1/+1
2014-09-28Fixed compilationSTRWarrior1-1/+10
2014-09-28Added Granite, Diorite and Andesite to the NaturalPatches generator.STRWarrior3-7/+37
2014-09-28Fixed SetDefaultRank() return value.Howaner1-1/+1
2014-09-28Update Chunk.cppworktycho1-1/+1
2014-09-28Use factory method to construct redstone simulator dataTycho4-1/+13
2014-09-28cRankManager: Added ClearPlayerRanks()Howaner3-0/+45
2014-09-28Compilation fixTiger Wang2-4/+4
2014-09-28Compilation fixTiger Wang1-1/+1
2014-09-28Updated api documentation.Howaner1-1/+1
2014-09-28cRankManager: Added GetAllPlayers() and GetPlayerName()Howaner4-0/+157
2014-09-271.8: Fixed plugin messages.Howaner1-3/+4
2014-09-27Bug fixTiger Wang5-32/+27
2014-09-27Fixed another redstone crash.madmaxoft1-1/+6
2014-09-27BioGen: TwoLevel is now fully settable in INI.madmaxoft2-44/+31
2014-09-27Combined conditionsMasy981-8/+11
2014-09-27Fixed minor style issues.madmaxoft3-3/+3
2014-09-27Wrapped clang-specific pragma into an #ifdef block.madmaxoft1-1/+6
MSVC was complaining about an unknown pragma.
2014-09-27Added barriers correctlyMasy982-0/+6
2014-09-27SuggestionsTiger Wang6-23/+69
2014-09-27Update IncrementalRedstoneSimulator.incworktycho1-1/+1
2014-09-27Update IncrementalRedstoneSimulator.incworktycho1-1/+1
2014-09-27Correct method name.worktycho1-1/+1
2014-09-27Set chunk dataworktycho1-0/+5
2014-09-27Add data accessor.worktycho1-0/+1
2014-09-27Dropped support for <1.7.xTiger Wang22-4733/+6
2014-09-27Added default value to switch and spruce gate to fence gate handlerMasy982-0/+6
2014-09-27Fixed convertToPickups for fence gatesMasy981-1/+1
2014-09-27Fixed convertToPickups for doorsMasy981-1/+38
2014-09-27Fixed compile errors.Howaner2-42/+42
2014-09-26Fixed UNUSED macro so that it doesn't require type knowledge.madmaxoft2-5/+14
Introduced new UNUSED_VAR macro that is used when type knowledge is available (for local variables).
2014-09-26Update Plugin.hworktycho1-2/+0
2014-09-26Moved curly brace to seperate lineMasy981-1/+2
2014-09-26Re-added 1.8 blocks to the redstone simulatorMasy981-9/+46
2014-09-26Removed more unessicary includesTycho48-59/+55
2014-09-26Fixed issue with castingtycho3-3/+8
2014-09-26Fixed players custom name in 1.8Howaner14-66/+30
2014-09-26Removed a few unnessicary includesTycho10-21/+16
2014-09-26Added type checking to map loading.Howaner2-11/+11
2014-09-26Improved searching for spawn.madmaxoft1-3/+14
Won't spawn on a small island inside ocean anymore.
2014-09-25cByteBuffer: Simplified ReadPosition().madmaxoft1-6/+9
Also, by popular demand, added more comments to the code.
2014-09-25Protocol 1.8: Fixed plugin message packet.madmaxoft1-1/+3
2014-09-25cByteBuffer: Fixed position reading.madmaxoft1-3/+3
2014-09-25TwoLevel BioGen: reads params from INI file.madmaxoft1-9/+26
2014-09-25Added cByteBuffer::WriteBEUShort().madmaxoft3-1/+15
2014-09-25Protocol 1.8: Handling packet compression properly.madmaxoft2-14/+39
The compression didn't work with CommLog turned on.
2014-09-25Protocol 1.8: Added checks for values presence.madmaxoft1-2/+8
Reported by @worktycho / Coverity.
2014-09-25Comment styleHowaner1-1/+1
2014-09-25Fixed wrong Surrounding sizeHowaner1-3/+3
2014-09-25Anvil: Arrow Tile tags are a short in VanillaHowaner2-7/+24
2014-09-25Use the json writer to write sign texts.Howaner1-5/+10
Without this change the client disconnects if the text contains "
2014-09-25Fixed dispender direction bugHowaner1-1/+1
2014-09-25Fixed hanging direction bugs.Howaner3-2/+17
2014-09-25Redstone: Fixed a crash with repeaters on a chunk border.madmaxoft1-13/+22
2014-09-251.8 Protocol: Fixed problems with no-payload packets.madmaxoft1-6/+7
2014-09-251.7 Protocol: fixed potential problems with no-payload packets.madmaxoft1-4/+4
2014-09-25HangingEntity: Silenced a crash.madmaxoft1-2/+8
Vanilla worlds sometimes contain data that this was asserting upon. Changed into a log.
2014-09-25Fixed styleTycho4-2/+108
2014-09-24derpHowaner1-4/+4
2014-09-24Don't create two entity lists.Howaner2-7/+14
2014-09-23Anvil: Wolf collar color is a byte in Vanilla.madmaxoft2-4/+18
Kept the old Int reading for compatibility reasons. Ref.: #1448
2014-09-23Fixed compiler warnings in 1.8 protocol.madmaxoft1-2/+2
2014-09-23Fixed a crash in WSSAnvil.madmaxoft1-3/+3
Reported as #1448.
2014-09-23MCServer world compatiblity with vanilla and mcedit.Howaner3-5/+52
2014-09-23Made ExpBottleEntity break on entities.archshift2-1/+23
Fixes #1369
2014-09-23A few compiler warning fixesChris Darnell5-44/+47
2014-09-22Updated README.mdHowaner1-1/+1
2014-09-22Hotfixed 1.8 item reading.Howaner2-6/+6
2014-09-22Changed metadata reading again.Howaner2-173/+7
2014-09-22Fixed item nbt reading.Howaner2-3/+168
2014-09-22Made it compile with clangChris Darnell6-11/+11
2014-09-21Fix crash in cLineBlockTracerTiger Wang1-8/+7
* Fixes #1418
2014-09-20Fixed cParsedNBT::FindTagByPath().madmaxoft1-1/+1
There was an off-by-one error in the name handling.
2014-09-19Implemented mob spawner.Howaner11-67/+393
2014-09-19Code improvements.Howaner4-38/+36
2014-09-18DerpHowaner1-1/+1
2014-09-18Exported player list states to extra functions.Howaner14-531/+837
2014-09-181.8: Simplified item metadata reading.Howaner3-27/+3
2014-09-17Fixed minor style issues.madmaxoft3-5/+5
2014-09-17Voronoi biomegen: Added JitterSize and OddRowOffset.madmaxoft3-88/+164
2014-09-17Implementing Spectator Modenesco1-1/+1
Adding some proprieties of the spectator game mode in player.cpp : - Players can't toss items - Players can't touch the ground
2014-09-17Added an explicit setting for allowing BungeeCord handshake.madmaxoft3-1/+16
2014-09-17Added first test to show the object can be createdTycho43-456/+508
2014-09-17Use xofts ReadPosition() code.Howaner1-3/+6
2014-09-17Created MobSpawnerEntity class.Howaner4-1/+165
2014-09-17Update World.hnesco1-1/+1
2014-09-17Preparing 1.8 updatenesco1-5/+15
2014-09-17BungeeCord compatibility: don't overwrite UUID / properties.madmaxoft1-2/+10
2014-09-17Full BungeeCord compatibility.madmaxoft2-1/+17
Fixes #1392. Fixes SpigotMC/BungeeCord#1211.
2014-09-17Initial BungeeCord support.madmaxoft4-1/+43
Ref.: #1392
2014-09-16IncrementalRedstoneSimulator now has no dependencies on cChunkTycho6-375/+384
2014-09-16Preparing 1.8 updatenesco1-1/+2
Partially added Spectator gamemode
2014-09-16Preparing 1.8 update nesco1-0/+3
Added Spectator gamemode
2014-09-16Pre 1.8 releasenesco1-0/+8
Added Spectator gamemode
2014-09-16Preparing 1.8 changesnesco1-0/+3
Added Spectator Gamemode
2014-09-16Pre 1.8 releasenesco1-0/+2
Added Gamemode Spectator
2014-09-15VoronoiMap: Added Jitter and OddRowOffset params.madmaxoft2-11/+55
2014-09-14Simplified WriteUUID()Howaner1-9/+9
2014-09-14Fixed warnings.Howaner1-3/+3
2014-09-14OSSupport: Fixed UNICODE Windows builds.Mattes D2-8/+8
The files now compile even inside UNICODE applications.
2014-09-13Improved cBlockHandler::DropBlockTiger Wang5-46/+34
2014-09-13Entities experience water resistanceTiger Wang2-16/+31
2014-09-131.8: Updated scoreboard packets.Howaner1-3/+7
2014-09-13Moved chat json creating to the CompositeChat class.Howaner6-346/+192
2014-09-13e.t.c. -> etc.Tiger Wang1-1/+1
etcetera, not egg tray conglomerate :P
2014-09-13Added newlinesTiger Wang1-1/+5
2014-09-131.8: Fixed maps.Howaner12-45/+43
2014-09-13Implemented Chest MinecartsTiger Wang15-94/+161
2014-09-12Fixed friction being applied whilst airborneTiger Wang1-11/+13
Reported by tonibm9 in #1300.
2014-09-12Only drop flint or gravel, not both.Howaner1-2/+4
2014-09-12Added extra mushroom handler.Howaner4-10/+60
2014-09-12Fixed farmland issues.Howaner11-64/+75
2014-09-12Only place farmland if no block is upper than dirt/grass.Howaner1-1/+6
2014-09-12Added hoe interact sound.Howaner1-0/+1
2014-09-12Play placesound from the middle of the block.Howaner1-1/+1
2014-09-12Fixed block place sounds.Howaner2-15/+27
2014-09-12Added Sea Lantern dropsMasy982-0/+32
2014-09-12Fixed 1.8 Item stacking and block harvestingMasy982-26/+44
2014-09-12Spawn exp if you break a mob spawner.Howaner6-4/+50
2014-09-12Disabled mobspawner itemdrop.Howaner1-0/+1
2014-09-12Players in survival mode are not allowed to break a bedrock.Howaner1-0/+6
2014-09-12Fixed iron ore drop.Howaner1-1/+2
2014-09-12Added flint drop and fence gate meta reset.Howaner2-0/+17
2014-09-12Fixed many right click issues.Howaner2-7/+17
2014-09-12Fixed wrong buffer length in the 1.8 protocol.Howaner1-10/+4
2014-09-121.8: Fixed ReadItem()Howaner2-20/+40
2014-09-121.8: Added difficulty sendingHowaner1-0/+6
2014-09-121.8: Fixed block entities.Howaner1-8/+2
2014-09-121.8: Fixed eating.Howaner1-0/+1
2014-09-121.8: Fixed workbench, enchanting and anvil window.Howaner1-3/+19
2014-09-121.8: Enderman, byte -> shortHowaner1-1/+1
2014-09-121.8: Fixed enderman spawning.Howaner1-1/+1
2014-09-111.8: Fixed inventory open packet.Howaner3-4/+32
2014-09-11Removed GetProtocolVersion() from the protocols.Howaner7-19/+6
2014-09-111.8: Fixed sign placing.Howaner1-1/+1
2014-09-111.8: Fixed hangings.Howaner4-32/+89
2014-09-11Don't include IncrementalRedsonteSimulator.inc when in SELF_TEST modeTycho1-5/+0
2014-09-11Possibly decoupled IncrementalRedstoneSimulator from the rest of the serverTycho22-2339/+2403
THis wil hopefully allow for unit testing
2014-09-111.8: Added ParticleEffect packet.Howaner19-38/+115
2014-09-11Added new doors in ItemDoor.hMasy981-1/+15
2014-09-11Fixed mutton name in Sheep.cppMasy982-3/+11
2014-09-11Fixed mutton name in ItemHandlerMasy981-1/+1
2014-09-11Added barrier blockMasy983-1/+7
2014-09-11Added 1.8 food to the food listMasy982-2/+5
2014-09-11Added blocks to the fire simulatorMasy981-0/+11
2014-09-11Fixed incorrect handlersMasy981-3/+3
2014-09-11Fixed a redstone sim failure with droppers.Mattes D1-1/+1
2014-09-10Added stone slab in BlockSlab.hMasy981-1/+3
2014-09-10Fixed typoMasy981-1/+1
2014-09-10Added new blocks to the BlockInfoMasy983-12/+76
2014-09-10Added new blocks to the BlockHandlerMasy981-0/+12
2014-09-10Added iron trapdoor, fence gates and doors to the redstone simulatorMasy981-0/+11
2014-09-10Added 1.8 Blocks and ItemsMasy981-0/+37
2014-09-10Grammar fixes.Alexander Harkness1-2/+2
2014-09-10Added abilty to set build infoTycho3-0/+24
build info is displayed at startup Fixes #1410
2014-09-09Removed old sound-configuration for SignPostsMasy981-6/+0
2014-09-09Removed old sound-configuration for RepeatersMasy981-6/+0
2014-09-09Removed old sound-configuration for TrapdoorsMasy981-5/+0
2014-09-091.8: Added MultiBlockChange packet.Howaner4-54/+86
2014-09-09Removed old sound-configuration for doorsMasy982-10/+0
2014-09-09Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy9845-272/+172
2014-09-09Actually set defaultworktycho1-0/+1
2014-09-09Added the player list to the 1.8 protocol.Howaner15-31/+108
2014-09-09PlayerSpawn packet: Send the correct uuid.Howaner1-5/+1
2014-09-091.8: Added new uuid field.Howaner3-17/+44
2014-09-08use the correct ASSERTworktycho1-2/+2
2014-09-08FIxed a couple more warningsTycho1-2/+8
2014-09-08More fixes.Howaner3-12/+7
2014-09-08TimeOfDay does not need to be an Int64Tycho3-6/+6
2014-09-08Fixed a few compile warningsTycho1-9/+14
2014-09-08Recoded cProtocol180 class.Howaner4-589/+2690
2014-09-08capitalisation errorworktycho1-1/+1
2014-09-081.8: Fixed tab complete.Howaner3-2/+20
2014-09-08Fixed more 1.8 packets.Howaner7-47/+313
2014-09-08derpworktycho1-1/+1
2014-09-08If server fails init, save any changed or generated settings.worktycho1-0/+1
2014-09-08Updated chunk sending to 1.8Howaner4-26/+22
2014-09-08Added GetProtocolVersion() to cProtocol.Howaner8-26/+29
2014-09-08Implemented packet compression.Howaner7-35/+117
ChunkData packet needs this.
2014-09-07Exported cClientHandle:GetIPString() to Lua API.Mattes D1-1/+1
2014-09-07Webadmin: Added default ports to auto-generated ini file.Mattes D1-2/+6
Fixes #1382.
2014-09-07WebAdmin: Added HTTPS instructions when cert / key is missing.Mattes D1-0/+1
2014-09-06Removed chunk's unused Y coord.Mattes D2-5/+4
This fixes the second issue of #1313.
2014-09-06Added Y-wise asserts to signs.Mattes D3-0/+4
This should help detect #1313's second case.
2014-09-06Alpha-sorted protocol 1.7 senders.Mattes D1-7/+7
2014-09-06Fixed player spawning in unknown world.Mattes D1-0/+4
This may happen if the admin removes a world.
2014-09-06Anvil: Fixed an off-by-one error in the loader.Mattes D1-1/+1
Fixes #1307.
2014-09-06Fixed scoreboard loader type checks.Mattes D1-10/+10
Fixes scoreboard loading error reported on the Dropper map in #1307.
2014-09-06Xoft fixes.Alexander Harkness1-1/+1
2014-09-05WorldStorage no longer queues chunks into generator.Mattes D4-51/+17
2014-09-05Fixed loading empty chunks.Mattes D2-2/+7
Reported on the Dropper map in #1307.
2014-09-05Rewritten chunk status to specify whether the chunk is in queue.Mattes D9-107/+141
This fixes #1370.
2014-09-05BiomeMultiCache is not used for simple generators.Mattes D1-21/+22
2014-09-05Fixed style.Mattes D3-9/+13
2014-09-05Fixed security: Player cannot spawn in a disabled world.Mattes D1-1/+1
2014-09-05Anvil: Fixed loading block entities with invalid Y coord.Mattes D1-1/+1
2014-09-04Fixed client errors.Howaner5-52/+79
2014-09-04Fixed compilation after chunk Y removal.madmaxoft1-1/+1
2014-09-04Anvil: Cleanly refuse to store data that is too large.madmaxoft1-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.
2014-09-04Added more 1.8 protocol things.Howaner6-14/+632
2014-09-04Revert "Globals.h: Added Floor and Ciel casting, C++ cast cleanups, etc"archshift4-62/+29
This reverts commit 472efa8174626a00ffdf5b39e1a44ac419cd3698. Apparently we don't support some of these features quite yet (darn you C++98!)
2014-09-04In 1.8, carrots and potatoes yield one less hunger point.archshift2-2/+2
2014-09-04Globals.h: Added Floor and Ciel casting, C++ cast cleanups, etcarchshift4-29/+62
Snow Golems must also be above 64Y to spawn snow (as of 1.8).
2014-09-04Started implementing of the 1.8 protocol.Howaner7-7/+502
2014-09-03LuaState: Fixed class value-getting off the stack.madmaxoft1-4/+4
2014-09-03LuaState: Fixed referenced function pushing.madmaxoft2-1/+9
The references are no longer destroyed by the call.
2014-09-03ChunkGenerator: Log world seed when creating a new one.madmaxoft1-3/+14
2014-09-03Anvil: switched inflate to stream mode.madmaxoft3-18/+70
This removes the fixed-size buffer which could have caused #1307 and #1366.
2014-09-03change to linear calculationDayBr3ak2-9/+7
2014-09-03Exported ForEachEntityInBox() to Lua API.madmaxoft1-0/+70
2014-09-03Added cWorld::ForEachEntityInBox()madmaxoft8-0/+117
2014-09-03cBoundingBox: Added accessors.madmaxoft1-0/+11
2014-09-03commitLO1ZB1-1/+1
2014-09-03Fixed style and alpha-sorting.madmaxoft6-20/+20
2014-09-03Added mutton, which sheep now drop when killedarchshift4-0/+13
2014-09-03EntityEffect.cpp: Enable 1.8's leaping potionarchshift1-1/+1
2014-09-03adapting formatDayBr3ak3-7/+14
2014-09-03re-add the missing "s" too cChunkCoordsWithBoolListLO1ZB3-6/+6
2014-09-03hopefully the last commit for removing y-coord from chunks. :)LO1ZB5-23/+41
2014-09-02Clang wants volatile...madmaxoft1-1/+1
2014-09-02Added strict error reporting to chunk loading.madmaxoft1-1/+29
This should help with #1307.
2014-09-02Changed the IsEnchantable() comment again.Howaner1-1/+2
2014-09-02Renamed SetWalkSpeed() to SetRelativeWalkSpeed()Howaner3-9/+9
2014-09-02[WebAdmin] Code improvements.Howaner2-61/+99
2014-09-02Added CustomName saving.Howaner3-2/+23
2014-09-02Added the new functions to APIDump.Howaner2-3/+3
2014-09-02Added SetCustomName() to players.Howaner15-41/+124
2014-09-02forgot this oneDayBr3ak2-2/+2
2014-09-02opting for size_tDayBr3ak2-5/+5
2014-09-02fixing memory leakDayBr3ak1-4/+5
2014-09-02changing implem, using vectorsDayBr3ak2-98/+23
2014-09-02adding config file entry #381DayBr3ak1-1/+10
2014-09-02adding the multicache behaviorDayBr3ak3-4/+119
2014-09-01Pickups combine only within one chunk.madmaxoft1-2/+6
This greatly improves performance of the tick thread.
2014-09-01added multicache class definitionDayBr3ak1-0/+35
2014-09-01Fixed off-by-one errors in cChunkDef asserts.madmaxoft1-8/+8
2014-09-01Added name tagHowaner7-3/+31
2014-09-01Added CustomName to cMonster.Howaner4-4/+64
2014-09-01Make sure packets are validworktycho1-6/+24
Fixes CID 66408, 66409 and 72045
2014-09-01Fixed Bindings regeneration under MSVC.madmaxoft1-1/+6
2014-09-01fix possibility of a twice generated chunkLO1ZB1-1/+2
2014-09-01Fixed previous commit's wrong assumptions.madmaxoft1-10/+10
The equipment-getting functions return a copy already, so we can't take a pointer, really.
2014-09-01Fixed MSVC compilation, improved performance.madmaxoft1-30/+59
We're not creating copies of the equipped items anymore, rather, we're using pointers to them. Also pow() is needlessly slow for a simple second power, and MSVC2008 was confused about the pow() overloads.
2014-09-01Fixed MSVC warning.madmaxoft1-2/+2
2014-09-01Avoid false positive in style check.madmaxoft1-1/+1
2014-09-01Fixed style.madmaxoft1-1/+2
2014-08-31Removed isDone checkworktycho1-2/+2
The same data is returned by executeStep so why execute a call when you have the data.
2014-08-31Changed null check to assertworktycho1-5/+3
Changed the null check to clarify that the function should not be called before the entity has been attached to a world.
2014-08-31Use std::auto_ptrHowaner1-6/+6
2014-08-31Delete the entity before removing from the listworktycho1-1/+1
Old code was calling dereference on invalid iterator
2014-08-31Init RankMgr pointer to NULLworktycho1-1/+2
2014-08-31Fixed compile warnings.Howaner2-5/+5
2014-08-31Fixed wrong doxy-comment.Howaner1-1/+1
2014-08-31Rewrited furnace.txt loading.Howaner4-159/+119
2014-08-31WebAdmin: Stop webadmin if template can't load.Howaner1-1/+3
2014-08-31WebAdmin: Added "files" folder and load the login template from login_template.htmlHowaner2-10/+102
2014-08-31Fixed styleJaume Aloy3-8/+9
2014-08-31Check range of y in HasNearLogworktycho1-1/+1
Fixes #803
2014-08-30Fixed style.madmaxoft2-4/+6
2014-08-30WSSAnvil: Removed leftover debugging code.madmaxoft1-4/+0
2014-08-30Fixed MSVC2008 compilation.madmaxoft1-18/+18
It was getting confused about which sqrt() overload to call.
2014-08-30Changed the IsEnchantable() comment.Howaner1-1/+2
2014-08-30Fixed potion removing in creative mode.Howaner5-8/+16
2014-08-30Added slowness effect and added entity support.Howaner2-16/+65
2014-08-30Added SetWalkSpeed() to cMonster.Howaner2-0/+9
2014-08-30remove orphaned comment.LO1ZB1-4/+0
2014-08-30Added a_Digger checkJaume Aloy2-30/+33
2014-08-29cChunk: Fixed the Coords param.Mattes D1-1/+1
2014-08-29me being stupidLO1ZB1-1/+1
2014-08-29add commentsLO1ZB1-1/+2
2014-08-29fix chunk regeneratingLO1ZB3-9/+9
2014-08-29Rewritten block entity loading.Mattes D7-215/+308
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.
2014-08-29A better hotfix for CraftingRecipiesTiger Wang1-1/+1
2014-08-29Added new console command with cleanupTiger Wang2-28/+45
2014-08-29Improved explosion damageTiger Wang2-48/+28
2014-08-29Removed unused codeTiger Wang3-3/+1
2014-08-29Improved command block securityTiger Wang1-6/+19
2014-08-29VanillaFluidSimulator: Fixed an invalid Y-coord query.Mattes D1-1/+1
This was causing a spam of console messages, along with possible server crash, when liquids passed below the world: http://forum.mc-server.org/showthread.php?tid=1508&pid=15632#pid15632
2014-08-29Fixed conversion warning.Mattes D1-1/+1
2014-08-29Fixed spaces.Mattes D1-1/+1
2014-08-29Hotfixed recipe.txt loading.Hownaer2-4/+7
2014-08-28Added speed entity effect.Hownaer3-1/+46
2014-08-28Fire can be destroyed with the sword in creative-modeHownaer1-1/+2
2014-08-28Fixed anvil placing.Hownaer1-5/+6
2014-08-28APIDump: Added missing cItem things.Hownaer1-1/+1
2014-08-28Fixed a typo.Mattes D1-1/+1
2014-08-28Final template keyword style fix.Mattes D1-2/+2
2014-08-28More template keyword fixes.Mattes D5-16/+16
2014-08-28CheckBasicStyle: Added checking for the "template" keyword.Mattes D1-1/+2
2014-08-28Fixed spaces after "template" keyword.Mattes D5-14/+14
2014-08-28Added comments.Hownaer1-1/+3
2014-08-28Fixed bad values in the IsEnchantable() method.Hownaer2-5/+17
2014-08-28Fixed crashes and use std::swap.Hownaer4-26/+43
2014-08-28remove y-coord from chunksLO1ZB18-217/+208
2014-08-28Enchanting table improvements.Hownaer5-154/+113
2014-08-28Fixed mob burning.reiter1-1/+1
Fixes #1298
2014-08-27DungeonRooms: Fixed an off-by-one error.Mattes D1-2/+2
2014-08-27More basic style fixes.Mattes D1-2/+2
2014-08-27Fixed basic style violations.Mattes D2-13/+11
2014-08-27CheckBasicStyle: Relaxed the "space after comma".Mattes D1-1/+1
An apostrophe directly following a comma is not a violation.
2014-08-27DungeonRooms: Added a height probability distribution function.Mattes D3-9/+19
2014-08-27DungeonRooms: Added the spawner in the center of the room.Mattes D1-0/+15
2014-08-26DungeonRooms: Chests are never placed next to each other.Mattes D1-22/+27
2014-08-26DungeonRooms: Random pattern for floors.Mattes D1-1/+32
2014-08-26DungeonRooms: Replaced explicit switch with CanBeTerraformed().Mattes D1-11/+3
2014-08-26Added initial dungeon rooms finisher.Mattes D4-0/+289
2014-08-25Type warning fixes.Mattes D2-2/+2
2014-08-25Fixed a type warning.Mattes D1-2/+2
2014-08-24RankMgr: Exported the default-rank functions.Mattes D1-0/+55
2014-08-24RankMgr: Default rank is applied to players without any rank.Mattes D3-60/+21
2014-08-24Change comment formattingChristophe Piveteau1-20/+12
2014-08-23RankMgr: Unified function signature comments in the bindings.Mattes D2-28/+36
2014-08-23Assume POWER is big-endian, so it compiles.Alexander Harkness1-1/+1
[reference](http://nadeausoftware.com/articles/2012/02/c_c_tip_how_detect_processor_type_using_compiler_predefined_macros#POWER) We may want to come back and figure out if the processor is running in little-endian mode, but for now assume they're big-endian.
2014-08-23RankMgr: Implemented default rank, added defaults.Mattes D2-24/+198
2014-08-22Fixed item drop.Howaner1-14/+18
Fixes #1341
2014-08-22More EnchantmentsJaume Aloy2-58/+70
- Added Thorns and Respiration enchantments
2014-08-22Fixed a warning in FastRandom.Mattes D1-1/+1
2014-08-22World: Report chunk count for the spawn area.Mattes D1-1/+1
2014-08-22Fixed cPlugin::OnPlayerMoving signature.Mattes D3-3/+3
2014-08-22cLuaState: Fixed Vector3<> names pushed to Lua.Mattes D2-5/+44
2014-08-21Added initializers for class members.Mattes D14-9/+54
As reported by Coverity, these weren't initialized.
2014-08-21cSetChunkData: Added missing initializers.Mattes D1-0/+3
2014-08-21Added cWorld initializers.Mattes D1-0/+30
2014-08-21Fixed 1.7.2 login packet reading.Mattes D1-1/+5
Fixes #1317.
2014-08-21Sorted the generated param count.Mattes D1-1/+1
2014-08-21Fixed a compile-time warning in MSVC.Mattes D1-1/+1
2014-08-21cMojangAPI updates cRankManager's playernames.Mattes D4-2/+87
2014-08-21RankMgr: Added cRankManager::RemovePlayerRank().Mattes D3-0/+59
2014-08-21Removed last remnant of cGroup.Mattes D1-1/+0
2014-08-21Removed Group.h from Bindings' dependencies.Mattes D1-1/+0
2014-08-21Removed cGroup and cGroupManager.Mattes D10-395/+8
2014-08-21cMojangAPI: Fixed MakeUUID___() bindings.Mattes D2-4/+58
ToLua would generate a shadow return value for the input strings.
2014-08-21Protection Enchantments, some fixesJaume Aloy4-15/+122
- Protection echantments (fire, blast, feather falling, protection and projectile). It isn't finished, add secondary effects and optimize the code. - Removed some brackets. - Silk touch fixed.
2014-08-20Renamed a_Motd to a_ServerDescription.Howaner7-14/+14
2014-08-20Exported cServer:ShouldAuthenticate to Lua API.Mattes D1-1/+1
2014-08-20Added a_ClientHandle to the HOOK_SERVER_PING hook.Howaner8-10/+14
2014-08-20cPlayer: Exported the LoadRank function to Lua API.Mattes D1-2/+2
2014-08-20RankMgr bindings: fixed GetRankVisuals return value.Mattes D1-18/+22
2014-08-20RankMgr: Fixed an ignored return value in the API.Mattes D1-2/+2
2014-08-20Added "HOOK_SERVER_PING" call to older protocolsHowaner1-13/+12
2014-08-20Cleaned up code.Howaner3-848/+1
2014-08-20Added HOOK_SERVER_PINGHowaner8-36/+926
2014-08-20Removed old classes from the CMakeLists.txtHowaner1-2/+0
2014-08-19Code formatting fixes.Howaner29-152/+83
2014-08-19Changed if in BlockHandlerJaume Aloy2-6/+2
2014-08-19FixesJaume Aloy6-50/+51
- Changed m_TicksLeftBurning > 0 for IsOnFire() - Tried to do the changes in BlockHandler.cpp - Removed m_Creator in ArrowEntity - Added m_Enchantments in ProjectileEntity CreatorData - Added blank lines between functions
2014-08-19cPlayer reads ranks from cRankManager.Mattes D3-263/+139
2014-08-19Changed if for switchJaume Aloy3-15/+25
2014-08-19Added more enchantments and some fixesJaume Aloy6-23/+101
- Removed Debug messages - Added Punch enchantment effect - Added Silk Touch enchantment - Added Unbreaking enchantment effect
2014-08-19Added some EnchantmentsJaume Aloy4-7/+100
- Bow enchantments: Infinity, Flame and Power - Sword and tools enchantments: Fire Aspect, Bane of Arthropods, Smite, Sharpness
2014-08-18Player: Silenced a few type conversion warnings.Mattes D1-2/+2
2014-08-18Adjust comment formattingChristophe Piveteau1-20/+40
2014-08-17Player saving creates the "players" folder, if needed.Mattes D1-0/+1
Fixes #1268.
2014-08-18SwamplandM: Fixed sometimes having no mountains.STRWarrior1-1/+1
2014-08-16Better OnPlayerMoving hook.Howaner6-9/+17
2014-08-16First implementation of HOOK_SERVER_PING.Howaner5-0/+43
2014-08-15Added a lot of commentsChristophe Piveteau1-30/+36
2014-08-15Clarify comment messageChristophe Piveteau1-2/+2
2014-08-15End of comment moved away from new lineChristophe Piveteau1-2/+1
2014-08-15Add some commentsChristophe Piveteau1-10/+21
2014-08-15Removed an unneeded cast.madmaxoft1-1/+1
2014-08-14RankMgr: Removed unneeded testing code.madmaxoft1-208/+2
2014-08-14Further changes in coding styleChristophe Piveteau1-38/+28
2014-08-14CheckBasicStyle checks the src folder as well.madmaxoft5-14/+20
2014-08-13Further fixing of coding style errorsChristophe Piveteau1-26/+22
2014-08-13Another intendation errorChristophe Piveteau1-2/+2
2014-08-13Fixed braces and intendation errorsChristophe Piveteau1-3/+11
2014-08-13Implement ability to push minecarts on curved railsChristophe Piveteau1-2/+70
2014-08-13Fixed commentsTycho1-5/+5
2014-08-13Added missing headerTycho1-0/+1
2014-08-13Fixed Integer pasing warnings in CraftingRecipies.cppTycho2-4/+64
2014-08-13File logger prefixes are 4 chars wide.madmaxoft1-6/+6
2014-08-13Logger: Fixed windows debug ODS logger, fixed-size file prefixes.madmaxoft1-8/+9
2014-08-13Logger: Fixed missing timestamp in log messages.madmaxoft1-1/+1
2014-08-13Fixed type issues in CraftingRecipe.cppTycho2-5/+5
2014-08-13Fixed forgotten error checkingTycho1-1/+5
2014-08-13Fixed shadowing variableTycho1-5/+5
2014-08-13Removed unused methodTycho2-25/+0
2014-08-13RankMgr: Fixed multithreading issues.madmaxoft2-49/+109
Only one thread is allowed to interact with a SQLite::Database object at a time. Additionally, improved performance of the migration by wrapping the entire thing in a transaction.
2014-08-13RankMgr: Initial migration code.madmaxoft3-1/+568
2014-08-12Fixed windows compilation and style issues.madmaxoft4-37/+177
2014-08-12Fix messing renameTycho1-1/+1
2014-08-12Renamed LoggersTycho14-426/+405
2014-08-11Revert "Removes the fire if the block under the fire was broken."Howaner1-5/+0
This reverts commit 01001d2a49a3366e9b1eccf938d5073ab9a2f06e.
2014-08-11Removes the fire if the block under the fire was broken.Howaner1-0/+5
2014-08-11Moved the clicked-through block check to the top of the function.Howaner2-41/+17
2014-08-11Fixed unchecked return values.madmaxoft1-3/+6
2014-08-11cProtocol172: Check return values.madmaxoft1-4/+9
Fixes CID 43489, CID 43490, CID 43491, CID 43493, CID 66410, CID 66411, CID 66416, CID 66417, CID 66418, CID 66419, CID 66420, CID 66421, CID 66422, CID 66423, CID 66424, CID 66425, CID 66429, CID 66430, CID 66431
2014-08-11Fixed cancelled fire interact from all directions.Howaner1-4/+12
2014-08-11Fixed tolua error with static initializationarchshift2-3/+12
2014-08-11Exported daylight cycle flag to the protocol.Howaner12-28/+29
2014-08-11Gave names to unnamed enumsarchshift4-5/+5
2014-08-11Player.cpp: change unnamed enum to constant integersarchshift2-7/+8
2014-08-10Fixed circular dependecy luaState_Call.incTycho1-1/+1
2014-08-10Fixed potential null dereferenceTycho1-5/+5
Fixes CID 70466
2014-08-10Bunch of tweaks:STRWarrior3-15/+15
Renamed Quarts to Quartz Using const_iterator instead of iterator Used CheckBasicStyle script to find style errors
2014-08-10SpacesTycho1-1/+1
2014-08-10Fixed potential crash in Player.cppTycho1-0/+4
Fixes CID 71780 If ShouldBroadcastDeathMessages is false the pointer would fall through to a check agaist it being a player
2014-08-10Fixed Tools to work with new logging frameworkTycho5-206/+0
2014-08-10Added forgoten filesTycho4-0/+457
2014-08-10First Implementatation of new Loggin frameworkTycho14-398/+49
2014-08-10Added a comment and simplified code.Howaner2-11/+5
2014-08-10Changed comment.Howaner1-3/+1
2014-08-10Fixed swing arm animation when you ate.Howaner1-4/+2
2014-08-10Added IsDaylightCycleEnabled saving.Howaner1-0/+2
2014-08-10Renamed functions.Howaner2-7/+7
2014-08-10Added NaturalPatches generatorSTRWarrior1-0/+22
It generates gravel and dirt.
2014-08-10Added NetherOreNests.STRWarrior1-0/+15
It generates Nether Quarts.
2014-08-10Changed cStructGenOreNests to take a list of ores + the block to replace.STRWarrior3-53/+83
2014-08-10Removed an old and outdated comment.STRWarrior1-2/+0
2014-08-09WebAdmin: Manually exported string conversion functions.madmaxoft2-6/+64
ToLua generated an extra return value for GetHTMLEscapedString() and GetURLEncodedString(), making them difficult to use.
2014-08-09WebAdmin: Added GetURLEncodedString().madmaxoft2-1/+36
2014-08-09WebAdmin: Manually exported string conversion functions.madmaxoft2-6/+64
ToLua generated an extra return value for GetHTMLEscapedString() and GetURLEncodedString(), making them difficult to use.
2014-08-09WebAdmin: Added GetURLEncodedString().madmaxoft2-1/+36
2014-08-09RankMgr: Added GetRankVisuals() function.madmaxoft3-5/+81
2014-08-08Exported cRankManager to LuaAPI.madmaxoft5-1/+894
2014-08-08cLuaState: Added GetStackValues() auto-generated templates.madmaxoft1-0/+27
These will read consecutive values off the stack, each value of a type independent of the other values. Auto-generated because we don't have variadic templates in C++03.
2014-08-08Renamed m_DoDaylightCycle to m_CycleDaylight.Howaner2-7/+7
2014-08-08Added comment.Howaner1-0/+3
2014-08-08RankMgr: Finished API implementation.madmaxoft2-38/+401
2014-08-08Send the old slab to the client when the interact cancelled.Howaner1-0/+11
2014-08-08RankMgr: Implemented GetXforY and GetAll APIs.madmaxoft2-18/+162
2014-08-08RankMgr: Implemented the basic API functions.madmaxoft2-60/+696
2014-08-08RankMgr: Renamed PermissionGroup to Group in API and PermGroup in DB.madmaxoft2-28/+36
"Group" is SQL keyword and shouldn't be used as table name.
2014-08-07Fixed nether wart digging.Howaner1-0/+1
Fixes #1265
2014-08-07Removed debug message.Howaner1-1/+0
2014-08-07Added SetDoDaylightCycle() and IsDaylightCycleEnabled() to cWorld.Howaner4-20/+56
I need this for a GameRule plugin.
2014-08-06On destroy ender crystal, create bedrock and firearchshift1-3/+3
2014-08-06Fixed style issuesTycho3-5/+8
2014-08-06Fixed multiple inhertance being output by toluaTycho2-6/+10
2014-08-06Resending fire to the client when the interact cancelled.Howaner1-0/+8
2014-08-05Removed dependecy of redstone simulator on NoteBlockTycho4-12/+20
2014-08-05Refactored Redstone simulator not to depend on TNTEntity or DropSpenserENtity DirectlyTycho5-9/+56
2014-08-05RankMgr: Added SQL integer datatypes.madmaxoft1-5/+5
2014-08-05RankMgr: More interface.madmaxoft1-2/+14
2014-08-05Made lua clamp() compatible with all number types.Howaner1-4/+4
2014-08-05RankMgr: Initial interface declaration.madmaxoft3-0/+258
2014-08-05Added api documentation for Clamp()Howaner1-2/+2
2014-08-05Added Clamp() function to the lua api.Howaner1-0/+28
2014-08-05Fixed unsigned long comparison to size_tarchshift1-1/+1
2014-08-04MojangAPI: Fixed PlayerNameToUUID().madmaxoft1-1/+1
2014-08-04Changed arrow comment.Howaner1-1/+1
2014-08-04Fixed signs not staying on other signsTiger Wang2-2/+4
2014-08-04Made AllToLua output consistentTiger Wang1-2/+2
2014-08-04Added arrow consuming on shootingHowaner1-0/+10
2014-08-04Fixed #1286Howaner1-1/+1
2014-08-04CheckBasicStyle: multi-level indent change.madmaxoft7-13/+33
2014-08-04BasicStyleCheck: Dividers are exactly 80 slashes.madmaxoft2-2/+18
2014-08-04Refactored case-conversion functions.madmaxoft7-47/+54
StrToLower() returns a modified copy of the string, InPlaceLowercase() modifies the string in-place.
2014-08-04Anvil: Wolf owner not saved if not present.madmaxoft1-2/+8
2014-08-04Changed properties for-loop.Howaner1-1/+1
2014-08-04Changed /** to /*Howaner1-3/+5
2014-08-04Rewritten string case manipulation to use std::transform.madmaxoft1-22/+4
2014-08-04Fixed warningsHowaner1-3/+3
2014-08-04Attempt to fix knockback and swimming.Howaner2-18/+22
2014-08-03Attempting a compilation fix for gcc / clang.madmaxoft2-0/+18
2014-08-03Fixed skins in mc 1.7.9/1.7.10Howaner1-6/+5
2014-08-03Wolf uses UUID for owner.madmaxoft5-17/+82
Fixes #1277.
2014-08-03cMojangAPI: Added UUID-to-Name lookup.madmaxoft5-62/+522
Also fixed the bindings, now all functions are static-like.
2014-08-03Trailing whitespace fix.madmaxoft1-1/+1
2014-08-03Added cMojangAPI:GetUUIDFromPlayerName().madmaxoft2-0/+35
This is a simpler way to ask for a single name -> uuid conversion.
2014-08-03Added cPlayer::GetUUID().madmaxoft1-0/+3
2014-08-03Fixed a ToLua warning - operator = not supported.madmaxoft8-8/+16
2014-08-03VillageGen: Fixed a typo in commentSTRWarrior1-1/+1
2014-08-03Entity.cpp: Air timer comment fixarchshift1-1/+1
2014-08-03Code reduction and clarity fixesarchshift2-29/+16
2014-08-03Removed unused cPlayer::FoodPoison functionarchshift2-12/+0
2014-08-03Entity.cpp: On portal check, use if-else for current dimensionarchshift1-60/+54
If current dimension corresponds with the portal (nether portal in the nether) send to the overworld, else send to the portal dimension. No need to switch on the dimension and exclude potential others.
2014-08-02Added proper trees and height for SwamplandM biomeSTRWarrior3-2/+4
2014-08-02Fixed a bug who can used from hacked clients.Howaner2-1/+18
2014-08-01Fixed issues with autocomplete and time loadingTiger Wang1-7/+33
* Fixes #1274
2014-08-01Improved endermen code a littleTiger Wang3-20/+56
2014-08-01Added missing HOOK_BLOCK_SPREAD call.Howaner1-6/+14
2014-08-01Compile fix.Howaner1-2/+1
2014-07-31Import Statistics.hHowaner1-0/+1
2014-07-31Use "default:" in switch.Howaner1-3/+6
2014-07-31Capitalised "incremental"Howaner1-4/+4
2014-07-31Changed IsSolid to FullyOccupiesVoxelHowaner1-1/+1
2014-07-31Fixed hunger bugs, Implemented golden apple, added jump statistic, added correct food effects.Howaner8-48/+177
2014-07-31Removed trailing whitespace.madmaxoft1-2/+2
2014-07-31Fixed UUIDs handling in cPlayer.madmaxoft2-6/+9
The loading expected dashed UUIDs, MCS uses short UUIDs throughout.
2014-07-31Comment suggestionsTiger Wang1-9/+8
2014-07-31Fixed water from ice and removed packed ice drop.Howaner2-2/+13
2014-07-31Added a default value to WaterSimulator, LavaSimulator and RedstoneSimulator.Howaner1-2/+2
2014-07-31Renamed "select..." methods to "set..." and better IsValidEffect() function.Howaner4-55/+19
2014-07-31MojangAPI: Moved the settings to a separate ini section.madmaxoft1-2/+2
2014-07-31Updated documentation.Howaner1-3/+3
2014-07-31Renamed functions and added beacon json saving.Howaner8-66/+84
2014-07-31MojangAPI: Added a UseCachedOnly param to GetUUIDsFromPlayerNames().madmaxoft3-9/+23
2014-07-30Added window update.Howaner1-0/+23
2014-07-30Added beacon load/save.Howaner5-1/+74
2014-07-30SuggestionsSTRWarrior1-2/+2
2014-07-30Changed return type from GetPrimaryPotion() and GetSecondaryPotion()Howaner1-2/+2
2014-07-30Exported the beacon.Howaner11-17/+107
2014-07-30Added beacon.Howaner13-33/+689
2014-07-30Moved GetRoofedForestTreeImage content to GetDarkoakTreeImageSTRWarrior2-66/+55
2014-07-30Fixed doxy commentSTRWarrior1-1/+1
2014-07-30Fixed comment at the end of a for-loopSTRWarrior1-1/+1
2014-07-30Renamed NEWLEAVES and NEWLOG to LEAVES and LOG.archshift1-34/+34
2014-07-30Added lighting code and added commentsSTRWarrior1-0/+17
2014-07-30MojangAPI: Renamed cache file to MojangAPI.sqlite.madmaxoft1-2/+2
2014-07-30Fixed compiling using ClangSTRWarrior1-4/+2
2014-07-30Added RoofedForest trees.STRWarrior2-2/+73
Could still be improved allot.
2014-07-30MojangAPI: Clarified the UUID conversion code.madmaxoft2-4/+17
2014-07-30ManualBindings: Fixed alignment.madmaxoft1-3/+3
2014-07-30Removed lighting code in cEnderman::CheckEventSeePlayerSTRWarrior1-9/+1
2014-07-30MojangAPI: Implemented UUID shortening and dashing.madmaxoft5-22/+40
2014-07-30Exported cMojangAPI to Lua.madmaxoft4-5/+20
2014-07-30Added a cMojangAPI class for PlayerName -> UUID lookups, with cache.madmaxoft9-239/+564
The cache is persisted into a SQLite DB file on server shutdown.
2014-07-30PreSimulator: Added configurations.STRWarrior3-6/+30
You can now choose if it should pregenerate something or not
2014-07-30Fixed "Dependency" typosarchshift2-6/+6
2014-07-30Fixed FinishGen.h types.madmaxoft1-2/+2
2014-07-30Entity.h: Moved constants out of some unnamed enumarchshift1-14/+14
2014-07-30Changed size_t to 'unsigned long'Howaner1-2/+2
2014-07-30Fixed compile error with clang.Howaner1-2/+2
2014-07-29Added soulsand to the terraformed list.STRWarrior1-0/+1
2014-07-29Added cBlockInfo::CanBeTerraformed and made finishers use itSTRWarrior4-44/+31
I might have forgotten some of them though
2014-07-29Slight cleanup after portalsTiger Wang8-20/+14
2014-07-29Detrailed whitespaceTiger Wang1-3/+3
2014-07-29Some finishing touchesSTRWarrior2-2/+2
Removed whitespace fixed dead bush comment
2014-07-29Fixed comment above cFinishGenSingleTopBlockSTRWarrior1-1/+1
2014-07-29SingleTopBlock: All blocktypes and biometypes get initialized properlySTRWarrior1-2/+14
2014-07-28Added cClientHandle:GetUUIDsFromPlayerNames() to Lua API.madmaxoft1-3/+62
2014-07-28Using suggestionsSTRWarrior1-25/+20
2014-07-28Forgot Mesa Plateau biome.STRWarrior1-0/+1
2014-07-28Renamed cFinishGenSingleBiomeSingleTopBlock to cFinishGenSingleTopBlockSTRWarrior3-20/+82
Now accepts a vector of biomes and a vector of allowed blocks.
2014-07-28cAuthenticator: Added GetUUIDsFromPlayerNames().madmaxoft2-3/+116
2014-07-28DistortedHeightmap: Now generates gravel in deep ocean.STRWarrior1-1/+1
2014-07-27Hotfixed compilation problems.madmaxoft2-2/+2
2014-07-27Change Group->SetColor() again.Howaner1-1/+1
2014-07-27Use AString(1, Color[0])Howaner1-1/+1
2014-07-27NetherClumpGenerator: Fixed generating stuff on halfslabs and fencesSTRWarrior1-1/+1
2014-07-27Use Color[0].Howaner1-1/+1
2014-07-27Added a missing include for abs(float).madmaxoft1-0/+6
2014-07-27Updated NetherForts' weights.madmaxoft1-2/+2
2014-07-27RoughRavines: Made floor and ceiling settings-adjustable.madmaxoft4-20/+99
The world.ini has settings for the minimum and maximum height for each at the ravines' center and edges.
2014-07-27RoughRavines: Added per-height radius modifier. Ledges!madmaxoft1-32/+73
2014-07-27Removed forgotten commentSTRWarrior1-1/+1
2014-07-27Made nether ceiling smooth.STRWarrior1-1/+8
2014-07-27RoughRavines: More settings - size, width, roughnessmadmaxoft3-23/+84
2014-07-27Fixed group color's.Howaner2-16/+5
2014-07-27Added a ceiling to disguise the bedrock above it.STRWarrior1-1/+9
2014-07-27NetherClumpFoliage: Fixed assertSTRWarrior1-8/+39
2014-07-27Add "Broadcasting" settings to world.iniHowaner5-11/+22
2014-07-27Updated NetherFort prefabs to latest Gallery content.madmaxoft1-37/+752
2014-07-27RoughRavines: Initial generator implementation.madmaxoft4-3/+264
This provides the basic shape of the ravines, with the basic settings based on GridStructGen, and good default values.
2014-07-27Fixed plugin count and fixed plugin loading, when settings.ini was regenerated.Howaner1-16/+30
2014-07-26Derp.Howaner1-1/+1
2014-07-26Change comment.Howaner1-1/+1
2014-07-26Rename function.Howaner4-6/+6
2014-07-26SplashPotionEntity: Use `const cItem &` instead of a cItemarchshift2-2/+2
2014-07-26Fixed indentations, removed redundant init code in SplashPotionEntity.cpparchshift4-9/+7
2014-07-26Moved potion static functions to EntityEffect to create splash potions through worldarchshift7-139/+164
2014-07-26Endianness.h: undefined ntohll before redefiningarchshift1-0/+1
2014-07-25Tweaks to NetherClumpFoliageSTRWarrior1-34/+6
Simplefied the way NetherClupFoliage creates the X and Z coordinate.
2014-07-25Speed up the NetherClumpFoliage finisher.STRWarrior1-8/+9
Using IntNoiseXX instead of CubicNoiseXX.
2014-07-24Fixed block dropsTiger Wang5-17/+59
* Fixes #1242 (the issue addressed within)
2014-07-24Removed redundant semicolons and re-added warningarchshift73-103/+103
2014-07-24Added a queue for setting chunk data.madmaxoft11-118/+349
Fixes #1196.
2014-07-24Made the cWorld::SpawnMobFinalize function more readable.STRWarrior1-0/+10
2014-07-23SuggestionsTiger Wang6-24/+28
2014-07-23Moar view distance!tonibm191-2/+2
Let's blow up our computers! :D
2014-07-23Fix item durability.Howaner16-69/+149
Fixes #1181
2014-07-23TallGrass: Less grass on mountains.STRWarrior1-0/+11
2014-07-23Fixed possible crash in the NetherClumpFoliage finisher.STRWarrior1-0/+5
2014-07-23BlockLeaves: Fixed comment style.madmaxoft1-2/+2
2014-07-22Fixed MSVC bindings regeneration.madmaxoft1-1/+1
Still one typo had been left in the cmake file.
2014-07-22Fixed Bindings generation in MSVC.madmaxoft1-2/+2
The bindings weren't regenerated because of the typo in the dependencies cmake variable.
2014-07-22Export SendEntityAnimation to ToLuaarchshift1-1/+1
2014-07-22Fix misguided comment on bits...Tiger Wang1-1/+1
...obviously written by someone very confused, also known as me
2014-07-22Export BroadcastEntityAnimation with ToLuaarchshift1-1/+1
Fixes #752
2014-07-22Speed improvements, crash fixes, & self-suggestionsTiger Wang8-61/+55
2014-07-22Extreme Hills M variant only spawn with grass and stoneSTRWarrior1-1/+1
Removed gravel.
2014-07-22Suggestion and failed merge fixTiger Wang2-1/+6
2014-07-22Updated prefabs to current Gallery content.madmaxoft3-226/+243
2014-07-21SuggestionsTiger Wang9-126/+160
2014-07-21ExtremeHillsPlus and ExtremeHills spawn with grass onlySTRWarrior1-12/+2
Turns out only the M variants have stone and gravel in them.
2014-07-21Defines.h: Fixed a warning.madmaxoft1-1/+1
2014-07-21CheckBasicStyle: Added a lua shebang.madmaxoft1-0/+1
2014-07-21CheckBasicStyle: Doesn't require LuaFileSystem.madmaxoft1-34/+10
Instead it uses the list of files generated by CMake.
2014-07-21CMake: generates a list of all source files.madmaxoft1-0/+20
This will be used for the style-checking script.
2014-07-21Normalized spaces after "catch".madmaxoft2-3/+4
2014-07-21CheckBasicStyle: Checks spaces after keywords, no space before ")".madmaxoft1-1/+16
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft94-535/+541
2014-07-21Style: Normalized spaces after if, for and while.madmaxoft28-135/+137
2014-07-21Fixed a missing enter.STRWarrior1-0/+1
2014-07-21Removed y for-loop.STRWarrior1-27/+27
Only the top block now gets long grass.
2014-07-21Fixed indentationSTRWarrior1-12/+12
2014-07-21Cuboid: added explicit copy assignment operatorarchshift2-0/+13
2014-07-20Changed CubicNoiseXX to IntNoiseXXSTRWarrior2-40/+49
Added some comments
2014-07-20Renamed cFinishGenFoliage to cFinishGenTallGrassSTRWarrior3-17/+34
Better grass density Added double tall grass.
2014-07-20Fixed warningsSTRWarrior2-5/+4
2014-07-20First attempt for a new foliage finisherSTRWarrior3-0/+74
2014-07-20Revert "Only one instance of server can be started"Tiger Wang1-0/+2
This reverts commit 6484e9814a3a540518606f552398e0b82f91ab4d. * Fixes #1200
2014-07-20Line tracer invalid chunk fixTiger Wang2-26/+27
* Fixes #1230 * Additionally improved speed in some scenarios
2014-07-20Proper comment for DropBlock()Tiger Wang1-2/+5
2014-07-20NBTChunkSerializer.cpp: Added break after serializing the splash potionarchshift1-0/+1
2014-07-20Bug and crash fixesTiger Wang12-65/+107
* 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
2014-07-20Added m_TicksAlive to entities, allows projectiles to hit their creatorsarchshift3-3/+14
2014-07-20Added destroy-timer system to splash potion entitiesarchshift2-3/+24
2014-07-20Add armor items directly to the armor slots.Howaner3-3/+16
2014-07-20main.cpp: field style fixesarchshift3-12/+12
2014-07-20ChatColor.h: The @deprecated tag slipped. Oops.archshift1-2/+2
2014-07-19Socket: removed unused Socket destructorarchshift2-10/+0
2014-07-19main.cpp: Fixed warnings with g_TERMINATE_EVENT_RAISED and g_SERVER_TERMINATEDarchshift3-6/+6
2014-07-19Monsters: Made IsUndead overridable by the respective mob classesarchshift6-13/+11
2014-07-19Fixed attempts to call c_str on ChatColorsarchshift2-6/+6
2014-07-19Removed references to deprecated cChatColor::Colorarchshift2-2/+2
2014-07-19Refactored cChatColorarchshift2-49/+51
- Changed std::string fields to const char-pointers in order to wipe out potential issues with static initialization and global destructors - Deprecated cChatColor::Color() because the name does not match the value
2014-07-19CheckBasicStyle: Checks for braces not on separate lines.madmaxoft1-2/+6
Only the opening braces at the end of a line are checked, others (such as inline getters and setters or initializers) are valid.
2014-07-19Code style: Fixed braces on separate lines.madmaxoft14-20/+38
2014-07-19CheckBasicStyle: Check spaces around commas.madmaxoft1-6/+6
We want no space in front of and at least one space after a comma.
2014-07-19Fixed spaces after commas in protocol data.madmaxoft1-7/+7
The JSON data is well-formatted with spaces, too; we can afford to waste the few bytes.
2014-07-19Fixed style: spaces after commas.madmaxoft42-101/+100
2014-07-19Fixed MSVC bindings generation.madmaxoft2-4/+4
2014-07-19World.cpp: fixed not all enum fields being used in m_Dimension switcharchshift1-1/+2
2014-07-19Minecart: slimmed down SpawnOn by keeping subtype in the payload enumarchshift2-20/+7
2014-07-19Trees.cpp: removed unused "debug" fieldsarchshift1-7/+1
2014-07-19Splash potions: Renamed PotionParticleType to PotionColor for clarityarchshift5-15/+15
2014-07-19Fixed splash potion color on tossarchshift2-0/+16
2014-07-19Fixed clamping issuesarchshift6-33/+6
2014-07-19Renamed AllToLua_lua script.madmaxoft1-0/+0
Fixes #1222.
2014-07-19Authenticator.cpp: Killed a global destructor warningarchshift1-53/+56
2014-07-19Moved Windows custom command to src/CMakeLists.txtarchshift2-15/+20
2014-07-19CMakeLists: Moved Bindings-specific code to subdirarchshift3-120/+125
2014-07-19Blocks/CMakeLists.txt: Fixed header list after merge of masterarchshift2-10/+6
2014-07-19CMake: Add Bindings library from subdirectoryarchshift2-23/+12
2014-07-19src/CMakeLists.txt: Replaced glob with list of filesarchshift2-20/+180
On MSVC, CMake will traverse all the CMakeLists and add their source and header files to one conglomerate SOURCE list.
2014-07-19Subdirs: Only add_library if not using MSVCarchshift13-19/+45
2014-07-19src/CMakeLists: Small changes for increased readabilityarchshift1-5/+9
2014-07-19OSSupport/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+32
2014-07-19HTTPServer/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+20
2014-07-19Generating/Prefabs/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+22
2014-07-19Simulator/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+28
2014-07-19WorldStorage/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+26
2014-07-19Generating/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+54
2014-07-19BlockEntities/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+35
2014-07-19UI/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+9
2014-07-19Protocol/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+23
2014-07-19Blocks/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+92
2014-07-19Items/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+47
2014-07-19Entities/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+56
2014-07-19Mobs/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+69
2014-07-18Clarified RemoveItem()'s comments.madmaxoft2-2/+4
2014-07-18Fixed slime-related comments.madmaxoft3-5/+10
2014-07-18Added RemoveItem() function to the player inventory.Howaner4-0/+57
2014-07-18Normalized code style for both sign handlers.madmaxoft2-16/+20
2014-07-18Fix failed merge and other issuesTiger Wang14-77/+28
2014-07-18Removed cBlockSignPostHandler descend.Howaner1-2/+28
2014-07-18Slime sizes are 1, 2 or 4 and not 1, 2 or 3.Howaner3-4/+4
2014-07-18Moved comment.Howaner1-1/+1
2014-07-18Monster fixesTiger Wang7-35/+5
* Fixes #1203 * Fixes #627
2014-07-18Fixed creative players not being able to drinkarchshift1-3/+4
Fixes #1215
2014-07-18CheckBasicStyle: Proper spaces with commas.madmaxoft1-21/+48
2014-07-18Fixed spaces before commas.madmaxoft7-14/+14
2014-07-18Removed duplicate IPvX labels.madmaxoft3-6/+6
2014-07-18Moved ChatColor.h out of defines where it was not neededarchshift2-1/+1
2014-07-18ProtocolRecognizer.cpp: removed unused NumBytesReadarchshift1-2/+0
2014-07-18Generator: removed rnd definitions that are never readarchshift2-2/+0
2014-07-18Added a extra wall sign handler.Howaner4-27/+85
Fixes #1119
2014-07-18Skeletons should spawn with a bow in the hand.Howaner2-0/+17
Fixes #1184
2014-07-18Fixed the armor slot in creative mode. Also removed that armor get directly to the armor slot. It is extremely buggy and unnecessary.Howaner2-9/+13
2014-07-18Items should first added to the first slot, not the latest.Howaner1-3/+3
2014-07-17Fixed NULL being passed instead of a double to AddEntityEffectarchshift1-1/+1
2014-07-17Split into more lines.Howaner2-6/+10
2014-07-17Fixed issues relating to saplings and leavesTiger Wang10-139/+32
- Removed cBlockInfo::RequiresSpecialTool * Fixes #1195 * Fixes #1201
2014-07-17Fixed code style in Trees.cpp.madmaxoft1-24/+24
The src folder now has zero BasicStyle violations.
2014-07-17Fixed tabs used for alignment.madmaxoft29-99/+115
2014-07-17More trailing whitespace fixes.madmaxoft13-25/+25
2014-07-17Player.cpp: Fixed compile errorarchshift1-1/+1
2014-07-17Player.cpp: Added Wither death messagearchshift1-0/+1
2014-07-17Basic style fixes.madmaxoft130-286/+290
2014-07-17Fixed many slime bugs.Howaner3-7/+74
- Fixed slime hurt/death sound - Added slime spawning on death. - Fixed the max health. - Fixed the attack damage. - Little slimes should not attack players.
2014-07-17Initial version of a script to check basic style.madmaxoft1-0/+188
This script reports basic violations of the style, such as indentation using spaces, alignment using tabs, trailing whitespace etc. Passing this script does NOT mean that the style is clean, it's only for fast-checking purposes.
2014-07-17Normalized comments.madmaxoft173-867/+893
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.
2014-07-17Fix sapling drop.Howaner1-1/+1
2014-07-17Fixed spaces around single-line comments.madmaxoft34-139/+141
There should be at least two spaces in front and one space after //-style comments.
2014-07-17Fixed basic whitespace problems.madmaxoft52-298/+306
Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
2014-07-17Fixed mob knockbackTiger Wang1-23/+8
* Fixes #901
2014-07-17Fixed crash with entities in unloaded chunksTiger Wang1-1/+3
* Fixes #1190
2014-07-17Fixed 3 MSVC warnings in SplashPotionEntity.madmaxoft1-1/+1
2014-07-17Updated cPawn::KilledBy signature for custom death messages.madmaxoft2-3/+3
2014-07-17Reformatted cItemPotionHandler.madmaxoft2-48/+79
2014-07-17Fixed formatting for cWitherSkullEntitymadmaxoft2-3/+13
2014-07-16Another fix for excessive food drainTiger Wang2-1/+10
2014-07-16Fixed a bug with bucketsTiger Wang2-9/+10
* Additionally fixed cLineBlockTracer's EntryFace parameter when a block was hit on the first iteration along the projected line
2014-07-16Fixed another redstone simulator crashTiger Wang1-0/+7
2014-07-16SuggestionsTiger Wang1-2/+5
2014-07-16Resolved backwards compatibility issuesTiger Wang7-9/+9
2014-07-16Function renameTiger Wang2-3/+3
2014-07-16Unified functionsTiger Wang2-34/+28
Thanks @Howaner!
2014-07-16Store properties as Json::ValueTiger Wang9-21/+44
2014-07-15Fixed a DropSpenser AddFace bugTiger Wang1-1/+1
2014-07-15Restructured cSplashPotionEntity code.madmaxoft5-72/+104
The callback doesn't need declaration in the header. Renamed PotionName to PotionParticleType.
2014-07-15Removed Stairs and carpet from the "isSolid" list to prevent mobs falling through them.Masy981-1/+0
2014-07-15Removed Stairs and carpet from the "isSolid" list to prevent mobs falling through them.Masy981-12/+0
2014-07-15Derp.Howaner1-2/+2
2014-07-15Fixed code formatting.madmaxoft2-6/+9
2014-07-15Added Brick fence to m_TransparentMasy981-0/+1
2014-07-15Fixed FindClosestPlayerTycho1-3/+6
2014-07-15Added various missing blocks in the lists in BlockInfo.cppMasy982-64/+214
2014-07-15Added super typedefTycho3-3/+6
2014-07-15Only the cEntityEffect::effXXX constants are Lua-exported.madmaxoft2-72/+102
The rest of the classes don't need exporting, there's no interface using them anyway.
2014-07-15Reformatted EntityEffect code.madmaxoft1-25/+29
2014-07-15Fixed a MSVC warning in cEntityEffect::CreateEntityEffect().madmaxoft1-0/+1
2014-07-15Pass cItem by reference.madmaxoft1-1/+1
Fixes CID 66445.
2014-07-15Added missing member initialization to cGridStructGen.madmaxoft1-0/+1
Fixes CID 68228.
2014-07-15COnverted Lilypad back to mixinTycho1-8/+2
2014-07-15Revert "Converted some blockhandlers to use cClearMetaOnDrop"Tycho9-21/+67
This reverts commit 333f4f982cbd24ffcb376594eddef439b3f05e9e.
2014-07-15Fixed redstone simulator crashTiger Wang2-8/+31
* Fixes #1176 * Fixed #1186
2014-07-14Fixed some meta resetting bugsTiger Wang6-27/+28
* Fixes #1174 * Fixes #1171
2014-07-14Maybe improved arrow sinkingTiger Wang1-2/+2
2014-07-14Fixed placing liquids over liquidsTiger Wang1-1/+1
* Fixes #1182
2014-07-14ItemHandler.cpp: removed redundant food and drink checksarchshift1-33/+0
2014-07-14Readability and clarity changesarchshift4-59/+68
2014-07-14Added documentationTycho1-0/+6
2014-07-14Converted some blockhandlers to use cClearMetaOnDropTycho9-67/+21
2014-07-14Simplified ClearMetaOnDropTycho1-1/+1
2014-07-14Added cClearOnDrop Mixin to cPumpkinTycho1-2/+2
2014-07-14Added first implementation of cClearMetaOnDropTycho2-2/+21
2014-07-14Player properties are now retrievedTiger Wang11-116/+216
2014-07-14Reset meta to zero when the block explode.Howaner1-4/+4
2014-07-14EntityEffect: Inlined functions, added explicit copy constructor and operator.archshift2-20/+29
2014-07-14Changed separating comment style from asterisks to slashes.archshift2-93/+93
2014-07-13Added parenthasiesworktycho1-1/+1
2014-07-13Fixed Issue with Comparing agast the wrong chest, potentially causing crashes.worktycho1-7/+7
2014-07-13CopyPaste Errorworktycho1-1/+1
Fixes CID 70460.
2014-07-13Another COpyPaste Errorworktycho1-1/+1
Fixes CID 70461
2014-07-13Adjusted calls to CreateProjectile that passed ItemsTycho1-2/+2
2014-07-13Made CreateProjectile a pointerworktycho4-6/+7
2014-07-13Fix CopyPaste error that ment a_MaxRelX wasdn't checkedworktycho1-1/+1
Fixes CID 70464
2014-07-13Fixed MSVC warnings in SoundEffect functions.madmaxoft3-15/+7
2014-07-13Update.Howaner1-1/+1
2014-07-13Changed BroadcastSoundEffect function to take floating pos.Howaner36-83/+77
2014-07-13Only one instance of server can be startedTiger Wang1-2/+0
This disallows the UDP multicasting that the original code enabled. xoft deterrent, in PR #1151 you implied that this was unwanted behaviour (but comments gone now as I force pushed - check emails?). Revert at will if unsatisfactory :P
2014-07-13Revert failed fix for #31Tiger Wang2-31/+4
This reverts commit 69dc9b4c9aea58ebd95e2dbd0205701dfc4ce54e.
2014-07-13Changed comments.Howaner1-3/+5
2014-07-13Fixed wrong types. (BLOCKTYPE -> NIBBLETYPE)Howaner3-6/+6
2014-07-12Comment grammar correctionTiger Wang1-1/+1
2014-07-12Simplified buckets code slightlyTiger Wang1-32/+15
2014-07-12cNBTChunkSerializer: Fixed alignment.madmaxoft1-14/+14
2014-07-12cHopperEntity: Simplified chest conditions.madmaxoft1-10/+4
2014-07-12cChestEntity: Renamed a member to avoid confusion.madmaxoft2-8/+9
2014-07-12Fixed alignment.madmaxoft1-2/+3
2014-07-12Suggestions and bug fixTiger Wang7-30/+35
* 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
2014-07-12Changesdaniel09161-5/+4
2014-07-12Added splash potions to NBT serialization and retrievalarchshift6-1/+50
2014-07-12For now, removed creator member from Entity Effect for pointer safetyarchshift12-104/+94
2014-07-11Simplified the player data loading.madmaxoft1-9/+8
2014-07-11SuggestionsTiger Wang3-2/+6
2014-07-11Changesdaniel09161-24/+16
2014-07-11SuggestionsTiger Wang4-14/+18
2014-07-11Player data filenames are based on UUID.madmaxoft4-67/+155
2014-07-11Improved LinkedPowering speedTiger Wang1-15/+15
* Additionally fixed wires powering other wires through blocks
2014-07-11Fixed a missing return value.madmaxoft1-0/+2
2014-07-11Preparation for player UUID-based storage: LoadFromFile()madmaxoft2-21/+42
2014-07-10Fixed style consistency.madmaxoft2-61/+64
2014-07-10Implemented support for forced chunk ticking.madmaxoft6-8/+95
Fixes #1160.
2014-07-10Changesdaniel09161-20/+22
2014-07-10Maybe fixed whitespacesdaniel09161-7/+7
2014-07-10Maybe fixed whitespacesdaniel09161-1/+1
2014-07-10Fixed Bucket Placingdaniel09161-6/+57
2014-07-10Fixed a missing "inline" keyword.madmaxoft1-1/+1
2014-07-10Fixed Vector3.h compilation in MSVC2008.madmaxoft1-0/+9
2014-07-10Removed lilypad from plains village prefabs.madmaxoft1-7/+8
2014-07-09Fixed bow chargeTiger Wang1-11/+2
2014-07-09Fixed arrow collection animationTiger Wang5-33/+4
* Fixed piston extension non-solidness
2014-07-09Fixed Bucket placingdaniel09161-1/+1
2014-07-09Removed unused include line.Howaner1-1/+0
2014-07-09Added inventory number click.Howaner2-1/+43
2014-07-08Updated generator prefabs to current Gallery contents.madmaxoft3-7/+8
2014-07-08Made things consistentTiger Wang2-6/+9
2014-07-07Added extra space before commentsTiger Wang1-6/+6
2014-07-07Fixed compilation and pressure platesTiger Wang1-8/+4
2014-07-07Implemented trapped chests & othersTiger Wang26-179/+340
+ Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
2014-07-06Fixed crafting grid updating.Mattes D2-2/+21
Fixes #1152.
2014-07-06Fixed slime handling in cMonster::StringToMobType().madmaxoft1-1/+1
2014-07-06Added drop window action.Howaner3-25/+113
2014-07-05Changed everything to callbacksTiger Wang4-82/+53
2014-07-05Add middle click.Howaner2-21/+88
2014-07-04Crash and compile fixTiger Wang3-5/+10
2014-07-04Compile fixTiger Wang1-1/+1
2014-07-04SuggestionsTiger Wang7-11/+20
2014-07-04MCS WebAdmin sockets rebinds instantlyTiger Wang1-0/+2
* Fixes #272 * Fixes #1150
2014-07-04Various fixedTiger Wang4-17/+111
* Fixed potential invalid pointer dereferencing, fixes #1117 * Fixed ender pearls not being loaded properly
2014-07-04cPluginManager: Reformatted the switch statement.madmaxoft1-7/+34
2014-07-04Moved sending error messages to cPluginManager:CallHookChatSTRWarrior1-4/+6
2014-07-04Eps comparisonTiger Wang2-2/+2
2014-07-04Fixed c1deda5d8f01811efa5094e9375166acb69d50edTiger Wang1-2/+2
I keep on breaking stuff :P
2014-07-04Tailored death messagesTiger Wang20-40/+61
2014-07-04Removed world-saving log messages.madmaxoft3-35/+5
Ref.: http://forum.mc-server.org/showthread.php?tid=1518
2014-07-03Changed OnWeatherChanging hook to always read the returned weather.madmaxoft3-4/+18
Ref.: http://forum.mc-server.org/showthread.php?tid=1512
2014-07-03CMake: Changed slash format to support MSYS.madmaxoft1-1/+1
Ref.: #1044
2014-07-02Spacing fixes and a few more BLOCK_META constants.narroo1-131/+152
2014-07-02SuggestionsTiger Wang4-19/+31
2014-07-02SuggestionTiger Wang1-13/+13
2014-07-02Fixed player teleport food drainTiger Wang2-1/+14
2014-07-02Redstone simulator is alerted to lever unpoweringTiger Wang4-1/+6
* Fixed the "fix" that broke the fix for #535, thereby fixing said issue * Fixed #535
2014-07-02CMake: Use cmake for file-copying.madmaxoft1-1/+1
This should enable MSYS builds.
2014-07-02Removed foodlevel-change possibility. Plugins can cancel the event and use cPlayer:SetFoodLevel()Howaner5-6/+6
2014-07-01Vector clamping fixesTiger Wang2-21/+24
Thank you, @madmaxoft.
2014-07-01Fixed printf formats for Win buildsmadmaxoft2-4/+4
2014-07-01Tolua generates LuaState_Call.inc file.madmaxoft4-624/+31
2014-07-01Initial codegen for LuaState_Call.inc.madmaxoft1-0/+196
2014-07-01Fixed a possibly unused variable.madmaxoft1-1/+1
2014-07-01Add doxy-comments.Howaner1-1/+4
2014-07-01Only fixes the server crash.Howaner2-7/+1
2014-07-01Fix server-crash with non-existing items.Howaner2-2/+8
2014-07-01Fixed linking order under MinGW.Mattes D1-1/+1
Ref.: #1044
2014-06-30Fixed size_t printfing under MinGW.Mattes D1-3/+18
2014-06-30Fixes.Howaner2-4/+4
2014-06-30Fixed cFile compilation under MinGW.madmaxoft1-0/+3
2014-06-30Changed commentworktycho1-1/+1
2014-06-30Moved the random code to a function (cSheep::GenerateNaturalRandomColor())Howaner2-36/+47
2014-06-30Implemented Vector3<>::Floor()Tiger Wang2-10/+19
2014-06-30Removed unneeded codeTiger Wang4-38/+1
2014-06-30Add new hook: HOOK_PLAYER_FOOD_LEVEL_CHANGEHowaner6-26/+67
2014-06-30Unnecessary returnHowaner1-2/+0
2014-06-29Fixed respawningTiger Wang12-19/+19
* Fixes #1103
2014-06-29SuggestionsTiger Wang3-3/+20
2014-06-29Fixed offline UUID generator.Mattes D1-2/+4
It generated invalid UUIDs, too many hex chars.
2014-06-29Removed bad commentTiger Wang1-1/+0
2014-06-29Properly implemented enderchestsTiger Wang10-99/+102
2014-06-29Send statistics to the player, when he logged in.Howaner2-2/+4
2014-06-29Code fixes.Howaner1-1/+1
2014-06-28An unification of code styleTiger Wang1-1/+1
2014-06-28Likely fixed too quick food depletionTiger Wang1-1/+1
* Fixes FS427 properly, hopefully
2014-06-28Fixed doxycommentsSTRWarrior1-3/+3
2014-06-28Fixed issue with breaking blocks at -1 coordinatesTiger Wang1-6/+1
2014-06-28Implemented tripwire(s) (hooks)Tiger Wang9-17/+324
* Fixes #944
2014-06-28Fixed a silly path error in #include.Mattes D1-1/+1
2014-06-28CMake: Added polarssl include dir as non-system.Mattes D1-1/+2
2014-06-28Save IsSheared from Sheep.Howaner2-4/+14
2014-06-28Fix sheep color's, add shear sound.Howaner3-3/+42
2014-06-28Changed include folders to work for Bindings, too.Mattes D1-3/+3
2014-06-28Added more block exceptions to torchesTiger Wang1-0/+4
2014-06-28Minor change to buttons and leversTiger Wang2-3/+3
+ They now detect if the block they are on occupies its voxel, instead of just being solid
2014-06-28Fixed bad water/redstone simulator communicationTiger Wang1-32/+22
* Fixes #713
2014-06-28Fixed server forcing players afloatTiger Wang1-1/+4
* Fixes #1131
2014-06-27Added generic entity-collecting.Mattes D17-25/+36
Now any cEntity can be collected, not only cPickups. This should help PR #1098.
2014-06-27Added PolarSSL dependency to Bindings.Mattes D1-1/+1
2014-06-27Removed the md5 library, obsoleted by PolarSSL.Mattes D3-19/+16
Fixes #1130.
2014-06-26Check GridSize for 0worktycho1-0/+10
Fixes CID 68226 and CID 66437
2014-06-26Add Null check to SendBlockToworktycho1-1/+1
Fixes CID 43611
2014-06-26FurnaceRecipe parsing: Fixed whitespace removing.Mattes D1-1/+1
2014-06-26Fixed misformed trimming.Mattes D1-1/+1
2014-06-26FurnaceRecipe: Moved the parsing into separate functions for clarity.Mattes D2-60/+68
2014-06-26FurnaceRecipe parser: Made the parser more forgiving.Mattes D1-2/+2
Errors don't cause a stop in the parsing, but rather just skip the offending line.
2014-06-26FurnaceRecipe parser: Added an else branch, changed to a switch.Mattes D1-45/+69
2014-06-26Add comment.Howaner1-0/+1
2014-06-26Fixed a comment and changed CombineCount to short.Howaner1-2/+2
2014-06-26GameMode checkHowaner1-1/+1
2014-06-25BlockInfo is now a proper C++ singleton.madmaxoft2-381/+374
It is properly initialized before it is ever used.
2014-06-24Optimize combining.Howaner1-3/+3
2014-06-24Better combining.Howaner1-3/+20
2014-06-24Add entity health saving.Howaner2-16/+8
2014-06-24Fix pickup combining over the maximum stack size.Howaner2-5/+9
2014-06-24Fixed BlockInfo initialization.madmaxoft1-15/+6
Now cBlockInfo is initialized in the getter, instead of "at any time during startup", which included "after it was already needed".
2014-06-24Added asserts for cChunk::GetBlockEntity() coords.Mattes D1-0/+6
2014-06-24Fixed crashes in HopperEntity.Mattes D1-19/+58
Some of the coords were off and some functions were assuming too much. Fixes the crash reported in http://forum.mc-server.org/showthread.php?tid=1497
2014-06-23Parenthesised comparisonTiger Wang1-1/+1
2014-06-23VoronoiMap: Added a missing initializer.madmaxoft1-1/+3
Fixes CID 68410.
2014-06-23Added a (disabled) block meta mirror / rotate test code.madmaxoft1-2/+87
This will perform basic sanity checks on block metadata mirroring and rotating. cMetaRotator must disable its asserts in order for this to work.
2014-06-23Fixed the slab vertical mirroring.madmaxoft1-9/+6
2014-06-23Fixed sign and lever rotations.madmaxoft2-8/+9
2014-06-23Prefabs don't draw into chunk if they don't intersect.madmaxoft1-0/+11
2014-06-22SuggestionsTiger Wang1-6/+7
2014-06-22Bettered zombie and skeleton AITiger Wang2-6/+4
* Fixed potential issues with skylight detection
2014-06-22Some Entity.cpp style improvementsTiger Wang2-13/+8
2014-06-22Fixed multiple issues with projectilesTiger Wang8-63/+112
* Fixed arrows not being collectable/not truly hitting a block/not lodging into blocks/not going in far enough * Fixed projectiles not playing their block hit animation owning to being destroyed too quickly
2014-06-22Changed 0xFFFFFFFB to ~0x04Howaner1-1/+1
2014-06-22Fixed another daylight sensor bugTiger Wang1-20/+23
Additionally fixed unpowering across chunks.
2014-06-22Chests don't open if obstructedTiger Wang1-0/+13
* Fixes FS383
2014-06-22Fixed missing breakworktycho1-0/+1
Fixes CID 68409
2014-06-22Fixed invalid iteratorworktycho1-2/+3
Fixes CID 60408
2014-06-22Fixed compile errorsworktycho1-2/+2
2014-06-22Conforms to standardsTiger Wang1-1/+1
2014-06-22SuggestionsTiger Wang2-40/+30
2014-06-21Fixed invalid iteratorsTiger Wang7-39/+26
2014-06-21Added cClientHandle::IsUUIDOnline function.madmaxoft2-2/+38
Ref.: #771
2014-06-21More suggestionsTiger Wang4-5/+7
2014-06-21Removed debugging codeTiger Wang1-1/+0
2014-06-21Rewrote furnace recipe parserTiger Wang2-93/+181
* Fixes #110
2014-06-21Added a TestRails generator.madmaxoft5-0/+667
This is for debugging purposes only.
2014-06-21Fixed a caching bug in GridStructGen.madmaxoft1-2/+2
The elements in cache were queried wrong, so sometimes they wouldn't be used even if they were the ones to use.
2014-06-21Updated prefabs to the latest Gallery content.madmaxoft4-2049/+2644
2014-06-20Updated all prefabs to current Gallery content.madmaxoft2-650/+824
2014-06-20MCA saver marks chunks as populated.madmaxoft1-0/+3
Fixes #140.
2014-06-20Optimized Voronoi calculation.madmaxoft4-21/+81
Fixes #818.
2014-06-20Added pig riding.tonibm192-0/+14
Now you can ride a pig using a carrot on a stick.
2014-06-19Nullify deleted pointers.archshift35-18/+75
2014-06-19EntityEffects.x -> EntityEffect.x, Object-Oriented effectsarchshift15-320/+748
Changed effect map to take a pointer of the effect as a result.
2014-06-18(Force)ExecuteCommand returns the CommandResult enumsSTRWarrior2-8/+8
Exported and documented the CommandResult enums
2014-06-18Replaced strange algebra with dot product.worktycho1-4/+6
10 degrees is a completely arbitary constant I pulled from nowhere. Feel free to adjust this value.
2014-06-18Improved Enderman codeTiger Wang2-14/+34
2014-06-18Swapped m_Player and m_EndermanPosSTRWarrior1-2/+2
2014-06-18Enderman attacks a player if he's looking at him.STRWarrior2-0/+91
2014-06-17Entity effects: changed User to Creator, removed pawn pass-by-valuearchshift6-36/+20
2014-06-17Added the OnEntityAddEffect hook.madmaxoft7-0/+57
2014-06-17Entity Effects: Clarified user, added it to AddEntityEffectarchshift7-15/+32
Added second AddEntityEffect with a pass-by-value of the class.
2014-06-17Changed the AddEntityEffect() params for easier calls.madmaxoft7-50/+52
2014-06-17Entity Effect: Separates total duration and ticks of activityarchshift3-22/+23
Changed HandleEntityEffect to use cEntityEffect's ticks instead of a static counter
2014-06-17Fixed MSVC compilation.madmaxoft3-14/+17
2014-06-17Pawn: renamed HandleEntityEffects to HandleEntityEffectarchshift7-10/+12
Exported entity effect functions for ToLua and documented them in APIDesc.lua
2014-06-17Cave spider now poisons its victim, added IsPawn function to Entityarchshift5-5/+24
2014-06-17Added wither damage type, wither entity effect.archshift4-1/+21
2014-06-17Monster: added IsUndead(), undead-specific entity effectsarchshift3-6/+71
2014-06-17Applies splash potion effects to mobs as well as playersarchshift2-8/+12
2014-06-17Removed long function wrappingarchshift2-12/+3
2014-06-17ItemHandler: changed IsDrinkable() to take a short argumentarchshift5-18/+14
2014-06-17Splash potion: Adjusted speed, fixed spawn positionarchshift1-6/+3
2014-06-17Entity effect type: use 'eff' as a prefix instead of 'ef'archshift5-74/+74
2014-06-17Added splash potion functionalityarchshift6-15/+122
2014-06-17Entity: only fire critical hit if damage type is physicalarchshift1-1/+2
2014-06-17Player: made healing instantaneousarchshift2-2/+2
2014-06-17Implemented drinkable potions, noeffect entity effect,archshift8-6/+165
Clears entity effects on death
2014-06-17Implemented milk, added documentation to Pawn.harchshift7-5/+86
2014-06-17Pawn.cpp: fixed effect iterator BAD_ACCESSarchshift2-9/+14
Erasure was occurring before the iterator increased, causing a bad access. Solved by storing map pairs in variables and manually updating iterator before erasure. Fixed mix-up in function arguments on food poisoning
2014-06-17Pawn: Enabled entity effect broadcast, added typedefarchshift2-4/+6
Typedef'd std::map<cEntityEffect::eType, cEntityEffect> to tEffectMap
2014-06-17EntityEffect: read-only getters, added user and distance modifier fieldsarchshift3-11/+35
User: the pawn that uses or produces the entity effect (drinks/throws a potion) Distance modifier: the potency modifier from splash potion effectivity radius
2014-06-17Player: Removed food-poisoning-specific code, set duration to 30 secondsarchshift3-27/+3
http://minecraft.gamepedia.com/Hunger#Behavior
2014-06-17Entity effects: Added handlers for entity effectsarchshift4-13/+138
Implemented hunger, instant health, damage, poison, regen Added "template" entity effect implementations
2014-06-17Added iterator on tick to manage entity effect durationarchshift1-1/+18
2014-06-17cPawn: Remove unused m_bBurnablearchshift2-2/+0
2014-06-17Moved Effects.h to EntityEffects.h, added initial implarchshift9-36/+115
2014-06-17Added classes for splash potions and wither skullsarchshift5-0/+149
2014-06-17Fix fence gate sound (Redstone simulator).Howaner1-4/+10
2014-06-17Add fence gate sound.Howaner1-0/+1
2014-06-17Add UNUSED() TagsHowaner1-0/+6
2014-06-17Add door soundHowaner1-0/+1
2014-06-17Added crBlocked and crNoPermissionSTRWarrior2-2/+4
2014-06-17HandleCommand now returns an CommandResult enum.STRWarrior2-23/+19
2014-06-17Check block type from cBlockEntityHowaner1-8/+8
2014-06-17Add more documentation.Howaner1-0/+2
2014-06-17derpHowaner1-3/+3
2014-06-17Fixed possible confusion.STRWarrior2-2/+8
If a command handler gets an error then the player will receive an unknown command error. This can be confusing for players.
2014-06-17Add comment.Howaner1-0/+1
2014-06-17Add parenthesisHowaner1-2/+2
2014-06-17The same: Float, not DoubleHowaner1-1/+1
2014-06-17Float, not DoubleHowaner1-1/+1
2014-06-17Revert "Fix right click bugs."Howaner1-41/+40
This reverts commit 61b6fdde7553dac6e2d5c5a071b9a13fa0d71b2f.
2014-06-17The motion is already set in AddBasicEntity()Howaner1-5/+0
2014-06-17Add DoWithBlockEntityAt() to WorldInterface.hHowaner4-40/+64
2014-06-17Add end lines to BlockPressurePlate.hHowaner1-1/+5
2014-06-17Add pressure plate handlerHowaner3-0/+41
2014-06-17Fix fence gate redstone simulator.Howaner1-2/+1
2014-06-16Split Broadcast Sound Effect function call in multiple lines.Howaner2-3/+24
2014-06-16Fix doubleslab meta.Howaner1-0/+1
2014-06-16Glass shouldn't drop.Howaner1-0/+3
2014-06-16This isn't neededHowaner1-1/+0
2014-06-16Fix bow sound and creative arrow pickup.Howaner2-19/+30
2014-06-16Fixed GCC compilation.madmaxoft1-1/+1
2014-06-16Fixed MSVC builds.madmaxoft1-9/+0
2014-06-16Add bow charging animationHowaner2-2/+6
2014-06-16FIxed second weird enumTycho1-20/+1
2014-06-16Refactored reversing logic into seperate functionTycho2-16/+16
2014-06-16Fixed gcc compilation.madmaxoft1-1/+1
2014-06-16Fixed tigers weird enumsTycho1-14/+6
2014-06-16Merge branch 'master' of github.com:mc-server/MCServerTycho30-455/+820
2014-06-16Moved repeater handling to seperate passTycho2-97/+64
2014-06-16Fix a few warningsTycho1-3/+3
2014-06-16Added overrideTycho1-3/+3
2014-06-16Fixed a copypasta error in WormNestCaves generator settings.madmaxoft1-1/+1
2014-06-16Updated the SandFlatRoofVillage prefabs.madmaxoft1-288/+381
2014-06-16Implemented PR suggestionsarchshift4-7/+4
Furnace.txt: newline BlockID: removed extraneous dimension mapping cEntity: fixed typo cPlayer: WorldPtr typedef
2014-06-15Added random offsets to cGridStructGen.madmaxoft17-85/+127
Fixes #740.
2014-06-15Players are saved regularlyTiger Wang2-2/+22
* Fixes #1076
2014-06-15Fixed bad comparison crashTiger Wang1-2/+2
* Fixes #1095
2014-06-15Fixed daylight sensor unpoweringTiger Wang1-6/+28
* Fixes #1094
2014-06-14Changed names of callbacksTycho2-10/+10
2014-06-14Removed spacesTycho1-2/+2
2014-06-14Documented starvation callbacksTycho1-0/+7
2014-06-14Documented cAllocationPoolTycho1-0/+5
2014-06-14Reformated ChunkMap.hTycho2-4/+10
2014-06-14Moved m_SectionsTycho1-1/+2
2014-06-14Added generic Allocation Pool InterfaceTycho7-30/+46
2014-06-14fixed spacesTycho7-13/+15
2014-06-14fixed spacesTycho3-6/+6
2014-06-14fixed compileTycho1-1/+1
2014-06-14fixed const issueTycho1-3/+3
2014-06-14Fill with buffer on startupTycho1-0/+10
2014-06-14Fixed commentsTycho2-6/+6
2014-06-14Added loggingTycho1-3/+12
2014-06-14Removed an unused tolua_end and tolua_begin pair.madmaxoft1-2/+0
2014-06-14Simplified speed clamping.madmaxoft1-8/+3
2014-06-14Refactored speed-setting to use a common function for all cases.madmaxoft4-93/+44
2014-06-14Fixed bindings generation for Win64 builds.Mattes D3-9/+29
Fixes #1092.
2014-06-14Fixed MSVC Bindings generation.Mattes D1-0/+3
2014-06-14Remove windows bindings crutchworktycho1-10/+0
2014-06-14Fixed a repeater issueTiger Wang2-17/+16
* Repeaters now properly continuously update their powering * Minor cosmetic improvements
2014-06-14Reverted portal creation codeTiger Wang2-103/+0
It wasn't really working and needs more development
2014-06-14Cauldrons check the heightmapTiger Wang3-8/+12
2014-06-14Reduced cPluginManager code duplicationTiger Wang1-286/+178
2014-06-13Removed an unused fwd declaration.madmaxoft1-1/+0
2014-06-12Fixed order of initalisationTycho2-5/+6
2014-06-12Removed unnessicary indirection from Entity iterator listTycho2-6/+6
2014-06-12automaticlly build tolua and generate bindings as part of build.tycho2-84/+85
2014-06-12Fixed compileworktycho1-1/+1
2014-06-12Fixed two redstone bugsTiger Wang1-0/+6
* Fixed chunk border powering * Fixed quick place-replace powering
2014-06-12Portals animate and delay correctlyTiger Wang19-117/+174
2014-06-11DispenserEntity code cleanup after PR merge.madmaxoft2-30/+30
2014-06-11Roads in villages are made out of wooden planks if they generate on water.STRWarrior1-4/+17
2014-06-11Changed the teleport permissions to the new ones.Alexander Harkness1-1/+1
2014-06-11Fixed constnessworktycho1-5/+5
2014-06-11Player.h: Moved doxy-comments to Entity.harchshift2-3/+10
Moved doxy-comments to the defining function in Entity.h rather than the overloaded functions in Player.h Comment for each function (instead of assumed encapsulating comments) @deprecated tag for ForceSetSpeed()
2014-06-11Compile fixTiger Wang1-1/+1
2014-06-11Reduced code duplicationTiger Wang1-4/+4
call @maxmaxoft! calling... call connected (0:20) call ended
2014-06-11IsWeatherSunnyAt does something useful :DTiger Wang1-9/+5
2014-06-11Added cBlockArea:GetCoordRange to Lua API.madmaxoft1-0/+32
2014-06-11SMICOLOSLAlexander Harkness1-4/+4
Meant to be semicolons up there.
2014-06-11Revert "Initial Mesa Bryce implementation."madmaxoft4-116/+4
This reverts commit 1ff1a93866ab81e3868588a256f446a902a1a8c4.
2014-06-11Updated unnecessary function :/Tiger Wang1-1/+5
2014-06-11Add DoxyComments to he weather things. Alexander Harkness1-7/+24
Also changed the function names.
2014-06-11Add new IsWeatherWet hook for cauldrons.Alexander Harkness1-1/+12
@madmaxoft can you comment?
2014-06-11Removed assert that is now informed by type systemworktycho1-1/+0
2014-06-10Initial Mesa Bryce implementation.madmaxoft4-4/+116
2014-06-10Portal improvements and suggestionsTiger Wang9-54/+175
2014-06-10Fixed clang warnings about abs() in Noise.cpp.madmaxoft1-2/+2
MSVC provides a float overload of abs(), clang does not. Using the proper fabs().
2014-06-10Fixed a race condition when adding a player to a world.madmaxoft3-4/+29
2014-06-10Fixed gcc compilation.madmaxoft1-2/+2
2014-06-09Added an experimental height generator, Mountains.madmaxoft2-0/+87
2014-06-09Added cRidgedMultiNoise, fixed cPerlinNoise.madmaxoft2-1/+233
2014-06-09Added Y coord checks and documentation to cBlockDoorHandler.madmaxoft1-19/+40
2014-06-09ToLua can now be run in pure-lua mode.madmaxoft1-0/+27
See the src/Bindings/AllToLua_lua.bat for usage example.
2014-06-09Fixed a crash when creating negative-size blockareas.madmaxoft1-0/+8
Now the server emits a warning instead and continues execution.
2014-06-08Fixed deadlock when moving players to other worlds.Mattes D32-96/+204
Fixes #1039, fixes #851
2014-06-08Added queue for adding entities to cWorld.Mattes D6-7/+42
This alone doesn't work properly yet, further changes to cPlayer are needed.
2014-06-08Proper fix for long interaction.madmaxoft1-7/+14
Fixes #1078 and #1038.
2014-06-08Fixed E_META_...Typos in BlockID.hnarroo3-90/+80
2014-06-07docs/Generator: Added the easy Finishers.madmaxoft1-1/+13
2014-06-07Added RainbowRoads finisher generator.madmaxoft5-3/+1594
2014-06-07Further improvements on redstone speedTiger Wang3-68/+81
Based on suggestions of @worktycho * Repeaters now walk their data structure only when needed * Fixed a bug with cChunkData returning an incorrect value for whether a meta had changed
2014-06-07Fixed mob hitbox sizes, removed TODOsarchshift3-5/+2
Measured bat and blaze in vanilla, updated values. Cavespiders are, in fact, passive in the day.
2014-06-07Fixed Time of dayworktycho1-1/+1
2014-06-06Further reduced redstone idle CPU consumptionTiger Wang1-7/+27
* Repeaters and wires are no longer unnecessarily ticked * Fixed #1063, likely addressed #1062 * Fixed bugs regarding duplicate values
2014-06-05SuggestionsTiger Wang5-14/+14
2014-06-05- Fixed a lot of alignmentJoannisO1-7/+7
2014-06-05Fixed decision failureTiger Wang1-1/+1
2014-06-05Fixed compilationTiger Wang1-1/+1
2014-06-05Redstone fixes and improvements [SEE DESC]Tiger Wang3-61/+96
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
2014-06-04SuggestionsTiger Wang2-2/+5
2014-06-04Time and weather is saved, part of #1058Tiger Wang2-3/+22
Also fixed unreliability in Health and LootPickup loading.
2014-06-04Health of monsters is now savedTiger Wang2-0/+2
2014-06-04Fixed a NetherFinisher bugTiger Wang3-24/+9
2014-06-04Configurable portalsTiger Wang4-14/+83
2014-06-04SuggestionsTiger Wang3-6/+10
2014-06-04Fix itemframe break.Howaner1-1/+3
2014-06-04Removed use of autoTiger Wang1-1/+1
2014-06-04Added checks for no downfall biomesTiger Wang3-3/+3
2014-06-04- Removed the code that removed fireworks from a dispenser even thoughtJoannisO1-3/+0
they weren't launched.
2014-06-04derpworktycho1-1/+1
2014-06-04- Fixed variable names in a function.JoannisO1-2/+2
2014-06-04- Fixed a lot of astethicsJoannisO2-14/+17
2014-06-04Fixed bad coordinateworktycho1-1/+1
2014-06-04Make sure m_StackSizeToBeUsedInRepair Always has a valid valueworktycho1-1/+3
2014-06-04Removed unused field testworktycho1-1/+0
2014-06-04Initialise m_Callbacks field to NULL in empty constructor.worktycho1-1/+2
2014-06-04Exploded creepers drop nothing, part of #1058Tiger Wang1-2/+8
2014-06-04Fixed mob loading, part of #1058Tiger Wang1-1/+1
2014-06-04Fixed #1057Tiger Wang1-1/+1
2014-06-04Update IncrementalRedstoneSimulator.cppJulian Laubstein1-8/+8
2014-06-03Player permissions aren't logged to console anymore.madmaxoft1-7/+0
This was only logspam on most servers and there are alternative ways to list players' permissions.
2014-06-03- Fixed an issue where there were 2 "DispChunk"-s in the same function.JoannisO1-16/+5
Resused the initial one.
2014-06-03- Fixed a bug where I didn't return anything in the GetShootVectorJoannisO1-0/+2
function. This was however passed as "working" by GCC.
2014-06-03Fixed OnProjectileHitBlock bindings.madmaxoft3-82/+111
Also sorted the various cLuaState::Push() functions.
2014-06-03- Fixed a bug where I used the FireCharge ITEM instead of the ProjectileJoannisO1-1/+1
ENUM
2014-06-03- Cleaned up the code massivelyJoannisO2-90/+31
- Stopped using cChunk in the GetShootVector class. Parameter is now the Metadata of the block - Stopped using cChunk in the SpawnProjectileFromDispenser method now using coordinates and finding the chunk by itself. - Removed the matrix calculations from GetShootVector.
2014-06-03- Added doxy comments and exported to luaJoannis2-22/+64
- Manipulation of the ShootVector is not to be done by the function that wants to spawn a projectile.
2014-06-02Small tweak for mobsSTRWarrior1-4/+14
Mobs move a bit smoother and aren't able to move allot when in air.
2014-06-02cBlockArea reading hotfix.madmaxoft1-63/+109
This should fix the crashes introduced with chunksparsing. Not the most performant solution, but at least it should work. Ref.: #1056
2014-06-01Update UnderwaterBase prefabs.madmaxoft1-12/+378
Added the waterfall room and the decaying sphere room. Re-tweaked the pieces' weights.
2014-06-01Suggestions twoTiger Wang2-10/+12
2014-06-01Implemented bed homesTiger Wang4-16/+42
+ Implemented bed home positions * Fixed some inventory and health server/client mismatches after world change
2014-06-01abort does not take a parameter.worktycho1-2/+2
2014-06-01Use abort in SIGSEGV and SIGABRT handlersworktycho1-2/+2
This should cause Mcserver to generate core dumps when it crashes.
2014-06-01Made a_BlockHitPos a referenceSTRWarrior5-6/+6
2014-06-01Updated UnderwaterBase prefabs.madmaxoft1-103/+123
2014-06-01Updated AlchemistVillage prefabs.madmaxoft1-103/+105
2014-06-01Players can't set items in the result slot, when they shift a item.Howaner2-0/+39
2014-06-01Add HandleSmeltItem() call for achievements.Howaner1-7/+11
2014-06-01Missing return;Howaner1-0/+1
2014-05-31Implemented end and nether portalsTiger Wang23-92/+254
2014-05-31Added an initial version of the underwater base generator.madmaxoft5-0/+2103
2014-05-31- Changed the name of the ProjectileLookVector method.JoannisO2-3/+3
Note: I still think the new name is unclear. Any other suggestions are welcome.
2014-05-31Used recommendationsSTRWarrior6-9/+8
2014-05-31Moved the IsDoor check before the meta get.Howaner1-2/+1
2014-05-31Add doxy-commentHowaner1-3/+4
2014-05-31Updated PlainsVillage prefabs.madmaxoft1-73/+85
2014-05-31Fixed a memory leak in VillagGen.madmaxoft1-0/+5
2014-05-31Set DraggingItem to Slot directly.Howaner1-1/+1
2014-05-31Fix DBL bug.Howaner1-5/+4
2014-05-31Change "Slot.IsEmpty()" to "Slot.m_ItemCount <= 0"Howaner1-1/+1
2014-05-30Fix the furnace result slot.Howaner1-2/+90
2014-05-30Fixed bindings for cCompositeChat:SetMessageType().madmaxoft1-2/+2
2014-05-30Updated PlainsVillage and AlchemistVillage.madmaxoft2-239/+1270
2014-05-30Wrong arrow commit.Howaner1-4/+0
2014-05-30Better SetOpen() and IsOpen() function from the doors.Howaner2-77/+27
2014-05-30removed NULL assignment to const valueTycho1-1/+0
2014-05-30removed unneded addressofTycho1-7/+11
2014-05-30Fixed cChunkData nibble copying.madmaxoft1-9/+9
2014-05-30Test failures break into MSVC debugger.madmaxoft1-0/+6
2014-05-30Test failures are reported verbosely and into the debug console on Win.madmaxoft1-2/+18
2014-05-30Fixed sign comparison.madmaxoft1-1/+1
2014-05-30Fixed wrong copy sizes in cChunkData.madmaxoft1-10/+10
2014-05-29Attempt at fixing an unresolved symbol in gcc / clang.madmaxoft1-1/+1
2014-05-29Fix bug when a_Idx is not a multiple of SectionBLockCountworktycho1-1/+1
2014-05-29Derpworktycho1-1/+1
2014-05-29fix underflowworktycho1-1/+1
Wish c++ could specify saturating unsigned underflow.
2014-05-29Fixed wrong block sizes for copying / setting.madmaxoft2-42/+36
2014-05-29- Prefixed all args with "a_"JoannisO2-6/+10
- Added braces around the cases.
2014-05-29Fixed Wrong types in nibble sizeofsworktycho1-3/+3
2014-05-29Add SetOpen() and IsOpen() to BlockDoor.h and fix door redstone bug.Howaner2-13/+90
2014-05-29Fixed overflow bugworktycho1-6/+9
2014-05-29Added comments, reformatted code.madmaxoft6-280/+226
2014-05-29Very minor code changesTiger Wang3-3/+3
2014-05-29Cauldrons fillTiger Wang4-3/+19
2014-05-29SuggestionsTiger Wang1-1/+6
2014-05-29More comments!Tiger Wang1-5/+4
2014-05-29Revert "Fixed a food saturation issue"Tiger Wang1-1/+1
This reverts commit 67308e4337b422ebefb249049e662266072b0ba2.
2014-05-29Add commentworktycho1-0/+4
2014-05-29Changed block send queue to use vectorsTiger Wang3-21/+29
As suggested by @worktycho.
2014-05-29Fixed piston power checkingTiger Wang1-11/+6
2014-05-29Fixed a memory leak in cPOCPieceGeneratormadmaxoft1-0/+5
2014-05-29Fixed forgotten changes.madmaxoft1-3/+3
2014-05-28Fixed a crash in message formatter.madmaxoft1-1/+2
The code would fail if a message is sent to a player not yet added to a world.
2014-05-28cChunkData: Normalized code style.madmaxoft2-89/+106
2014-05-28Code improvementsHowaner3-12/+4
2014-05-28Fix hay place sound.Howaner2-1/+31
2014-05-28Fix fire break.Howaner2-18/+19
2014-05-28Add throw sound and fix arrow server crash.Howaner4-5/+16
2014-05-28Fixed cChunkData formatting.madmaxoft2-39/+101
2014-05-28Fixed a memory leak in cPrefabPiecePool.madmaxoft2-1/+34
The pool pieces weren't freed upon pool destruction.
2014-05-28Fix Y-Position from arrow entity.Howaner1-0/+1
2014-05-28Fix right click bugs.Howaner1-40/+41
2014-05-28Fix skull bugs.Howaner2-2/+46
2014-05-28- Removed breaks. I thought it wouldn't compile without them but theJoannisO1-2/+0
issue was appearantly solved with an earlier commit.
2014-05-28- Fixed an issue where dispensers would only shoot arrows (appearantlyJoannisO1-33/+24
some commits didn't come through) - Cleaned up the code according to suggestions.
2014-05-28- Implemented vertical dispensing for projectiles.Joannis2-16/+40
- Fixed some terrible commit issues on my side.
2014-05-27Added AlchemistVillage prefabs (Thanks, KingsCraftAu).madmaxoft3-9/+3007
2014-05-27Fixed testing weights in PlainsVillages.madmaxoft1-3/+3
2014-05-27cPieceGenerator chooses starting pieces based on weights.madmaxoft4-1/+44
Fixes #1033.
2014-05-27Biome generators: biome lists can contain spaces.madmaxoft1-1/+1
2014-05-27Fixed test globals to work with precompiled headersTycho2-16/+36
2014-05-27- Fixed the ampersands and asterisks to fit the format.Joannis2-8/+8
- Fixed the method "SpawnProjectileFromDispenser" to use CamelCasing.
2014-05-27ClientHandle.cpp: Process look before posarchshift1-1/+1
2014-05-26ClientHandle.cpp: remove redundant codearchshift1-22/+2
HandlePlayerMoveLook() calls HandlePlayerPos() and HandlePlayerLook() to reduce code redundancy.
2014-05-26Revert "Add more move checks"madmaxoft2-59/+17
This reverts commit 989312c4e7f517ae324e857cb255211e3fd8bb06.
2014-05-26- Added support for more types of projectiles in the DispenserJoannisO2-38/+51
- Improved the method of spawning projectiles in the world - Added another method for spawning the projectiles
2014-05-26Fixed prefab test initialization.madmaxoft1-0/+3
2014-05-26Added Arrow- and FireCharge-Dispensing to DispenserEntity.JoannisO2-27/+95
2014-05-25Added support for Miners' Village.madmaxoft10-2234/+4438
The village contains both prefabs that snap to ground and prefabs that connect strictly via connectors. Fixes #1027.
2014-05-25SEMICOLONS!Alexander Harkness1-2/+2
2014-05-25Update GroupManager.hworktycho1-2/+2
2014-05-25A fix that is better than #950.Alexander Harkness1-5/+15
2014-05-25Fixed bad mergeTycho2-9/+10
2014-05-25Fixed bug in freeing NULL pointersTycho1-13/+15
2014-05-25Fixed a food saturation issueTiger Wang1-1/+1
2014-05-25Hopefully fixed piston duplication issuesTiger Wang15-437/+372
* Fixes #879 * Fixes #714
2014-05-24inject TestGlobals.h correctlyTycho1-3/+7
2014-05-24Added Japanese village prefabs.madmaxoft5-4/+2442
2014-05-24Moved accessors to cpp fileTycho2-216/+241
2014-05-24Implemented style changesTycho6-92/+95
2014-05-23Implemented Allocation Pool use by cChunkDataTycho7-32/+79
2014-05-23Use placement new to initalise objectsTycho1-2/+5
2014-05-23Fixed Mineshaft system size.Mattes D1-1/+1
2014-05-23Auto-enlargement for cGridStructGen cache.Mattes D1-0/+9
2014-05-23Fixed datatype conversion warning.Mattes D1-2/+2
2014-05-22Updated plains village prefabs.madmaxoft1-186/+171
Expanded the hitboxes so that houses don't touch each other. Fixed minor visual defects.
2014-05-22Villages have min and max density setting.madmaxoft5-17/+110
Also made roads use 3+9 scheme, instead of 3+5, for the house connectors. Fixes #1020.
2014-05-22Added doxy-commentsSTRWarrior1-6/+8
2014-05-22cEntity::SetSpeed(a_Vector3d) isn't virtualized anymoreSTRWarrior2-2/+2
2014-05-22cPlayer overrides the SetSpeedXX functionsSTRWarrior3-4/+53
Fixed compile error
2014-05-22Both SetSpeed functions are now overridden by cPlayerSTRWarrior3-6/+32
2014-05-22Updated plains village prefabs.madmaxoft1-44/+43
The DoublePlantBed had sponges in wrong places, plus a few cosmetic fixes.
2014-05-21Changed desert village roads to gravel.madmaxoft1-1/+1
2014-05-21Added second kind of desert village (FlatRoof).madmaxoft3-4/+1535
2014-05-21Fixed if spacesTycho2-22/+23
2014-05-21Added callback for stopping starvation modeTycho1-0/+4
2014-05-21Fixed reversed comparisons to nullTycho2-17/+17
2014-05-21Implemented Allocation PoolTycho1-0/+50
2014-05-21Added space to ChunkData.cppTycho1-20/+100
2014-05-21Changed cChunkData::SetMeta to return a bool indicating whether the value changedTycho2-7/+9
2014-05-21Fixed stylistic issuesTycho4-25/+25
2014-05-21Renamed cChunkBuffer to cChunkDataTycho9-67/+67
2014-05-21Fixed minor style issuesTycho3-7/+7
2014-05-21Fixed cWither::KilledByandrew2-1/+3
2014-05-20Update CompositeChat.hTiger Wang1-2/+4
2014-05-20Fixed some E_META_*** Namesnarroo1-71/+67
2014-05-20Cleaned up cPlayer::UpdateMovementStats; Wither achievementsandrew7-15/+128
2014-05-20Update Player.cppAlexander Harkness1-19/+19
2014-05-19Fixed a cactus Y position issueTiger Wang1-2/+3
2014-05-19Simplified cacti conditionsTiger Wang1-2/+2
2014-05-19cCompositeChat message type is now formattedTiger Wang4-5/+13
2014-05-19Added client translation to achievementsTiger Wang4-4/+70
2014-05-19Changed the m_slotarea positionJulian Laubstein1-2/+2
2014-05-19Fixed warnings in IncrementalRedstoneSimulatorJulian Laubstein1-1/+7
2014-05-19Fixed some warnings in Server.cpp, and in UI/Julian Laubstein3-3/+11
2014-05-19DerpAlexander Harkness1-1/+1
2014-05-19Rolled some changes backJulian Laubstein1-12/+2
2014-05-19Should have fixed assumptions about entity width.Alexander Harkness1-4/+5
@madmaxoft can you comment?
2014-05-19Fixed some warningsJulian Laubstein1-2/+12
2014-05-19Fixed clanging errors.Alexander Harkness1-5/+5
Please @tigerw make sure this is correct.
2014-05-18Implemented cacti damageTiger Wang3-2/+29
+ Implemented cacti damage * Fixed pickup tossing (PR #994 bug)
2014-05-18Updated SandVillage prefabs to latest Gallery content.madmaxoft1-12/+12
This fixes sand village generation.
2014-05-18There's no "round" function in MSVC2008.madmaxoft2-4/+4
2014-05-18Fixed datatype truncation in Diff() template.madmaxoft1-1/+1
2014-05-18removed the <list> includeJulian Laubstein1-1/+0
2014-05-18Added unload <pluginname> commandJulian Laubstein1-5/+9
2014-05-18Fixed issue with types not being defined for an unused parameterTycho8-107/+111
2014-05-17Village roads are drawn properly.madmaxoft2-8/+35
2014-05-17Village houses are height-adjusted onto the terrain.madmaxoft5-7/+67
2014-05-17Added load cmdJulian Laubstein1-5/+29
2014-05-17Added load command in the cServer classJulian Laubstein1-0/+6
2014-05-17derpTycho1-1/+1
2014-05-17fixed assignment bugs and Skylight bugTycho1-3/+5
2014-05-17Fix assignment ops 2worktycho1-3/+8
2014-05-17Fix assignment operatorsworktycho1-10/+14
2014-05-17Updated PlainsVillage prefabs to the latest Gallery contents.madmaxoft1-2265/+2892
2014-05-16Add more move checksHowaner2-17/+59
- Invalid X/Y/Z/Stance check (std::isnan) - Illegal stance - Illegal position (32.000.000 is the world size)
2014-05-16Fixed anvil exp removingtonibm191-1/+1
2014-05-15Fix compile error.Howaner1-1/+1
2014-05-15Move radius check.Howaner1-25/+40
2014-05-15Fixed a NULL ptr failure in GridStructGen.madmaxoft2-9/+42
When the descendant generator returned a NULL structure, the generator would crash. Now it uses a special cEmptyStructure class instead.
2014-05-15Changed village generator defaults to more reasonable values.madmaxoft1-2/+2
2014-05-15Changed village road generation to use multiple prefabs.madmaxoft3-39/+38
2014-05-15VillageGen rewritten using BFSPieceGenerator.madmaxoft5-412/+406
Piece composition is not good yet, the buildings aren't height-adjusted and the road pieces will need special processing. This is mainly for adjusting the per-piece params.
2014-05-15cPrefab can be constructed in code.madmaxoft2-0/+51
2014-05-13Fixesandrew5-20/+23
2014-05-12VillageGen: Added well placement and the general algorithm description.madmaxoft3-6/+152
2014-05-12Movement Statisticsandrew6-14/+101
2014-05-12cEntity::Killed(cEntity *) Handler; Achievement triggers; cPlayer::AwardAchievement()andrew8-10/+143
2014-05-12More switch warnings.archshift2-7/+34
2014-05-12Fixed a few more switch warnings.archshift3-32/+35
2014-05-11Fixed a warning and a complaint about a never-read variable.archshift2-15/+11
2014-05-11Initial VillageGen implementation.madmaxoft6-0/+5807
WIP, doesn't generate anything yet. Ref.: 740.
2014-05-11Fixed compilationandrew1-0/+2
2014-05-11Added several more testsfor arrays and coordinatesTycho1-4/+16
2014-05-11Fixed bug that caused Array Setters to always create segmentsTycho1-4/+4
2014-05-11Fixed stat serializationandrew4-24/+44
2014-05-11SkyLight defaults to 0xFFTycho1-1/+1
2014-05-11Fixed a bug in writting zeros to a non-allocated sectionTycho2-0/+23
2014-05-11Statistic Managerandrew16-43/+448
2014-05-11Rename HandleBlockDigCancel to FinishDigAnimtion.Howaner2-5/+5
2014-05-10Fixed stupid errorTycho1-1/+1
2014-05-10Fixed stupid buffer overflow in array setblocksTycho2-5/+5
2014-05-10Fixed the console saying no plugins are loaded.STRWarrior1-1/+1
2014-05-10Fixed compile problem.STRWarrior1-1/+1
2014-05-10A portal block now chooses a number between 2000 and 0STRWarrior1-1/+1
2014-05-10Each time a portal block receives a tick it has a 1 in 500 chance of spawning a zombie pigman.STRWarrior1-0/+14
2014-05-10Fixed bug in setting metasTycho2-19/+7
2014-05-10Client cert is not requested.Mattes D1-1/+1
2014-05-09Add block place/break distance check.Howaner2-0/+31
2014-05-09Add DIG_STATUS_CANCELLED packet and add item resend, when a block can't place/break.Howaner4-36/+79
2014-05-09Fixed size_t in FireworksSerializer.Mattes D1-2/+2
2014-05-09Fixed message formatting.Mattes D1-2/+2
2014-05-09Removed unused constants from MineShafts and Ravines.Mattes D2-9/+0
2014-05-09Even more size_t fixes.Mattes D1-4/+4
2014-05-09More size_t fixes.Mattes D2-6/+6
2014-05-09Removed an unused NetherFortGen variable.Mattes D1-6/+0
2014-05-09Removed an unused macro.Mattes D1-7/+0
2014-05-09Build fixes after the last size_t batch.Mattes D6-15/+15
2014-05-09Range Check on schematic sizeworktycho1-1/+1
Fixes CID 55830
2014-05-09World pre-generation distance is settable in world.ini.Mattes D1-2/+6
2014-05-09Lighting thread disabled its chunkstays before deleting them.Mattes D1-0/+2
2014-05-09Fixed MSVC 64-bit build warnings.Mattes D46-156/+173
2014-05-09Check the height and width values read.worktycho1-0/+8
Fixes CID 55831
2014-05-09Ravines rewritten using cGridStructGen.Mattes D2-182/+40
Ref.: #987.
2014-05-09Initialise m_HasTeleported in both constructorsworktycho1-0/+1
2014-05-09cWormNestCaves rewritten using cGridStructGen.Mattes D2-223/+29
Ref.: #987.
2014-05-09Mineshafts generator rewritten to use GridStructGen.Mattes D2-156/+33
2014-05-08Fixed cGridStructGen.Mattes D1-18/+6
Now cNetherFortGen works with the new architecture.
2014-05-08Fixed MSVC 64-bit build warnings.Mattes D46-156/+173
2014-05-07cNetherFortGen uses cGridStructGen.madmaxoft5-264/+42
WIP, this doesn't work properly yet.
2014-05-07Superfluous method override.Howaner1-6/+0
2014-05-07Missing commaHowaner1-2/+2
2014-05-07Send item back to the client when the item get damage.Howaner1-0/+1
2014-05-07Change m_RepairCost to int.Howaner6-16/+10
2014-05-07Add lava and water check to block handlers.Howaner2-2/+14
2014-05-07Rename CanChangeDirtToGrass to CanDirtGrowGrassHowaner6-9/+9
2014-05-07Where is the problem with clang?Howaner1-1/+1
2014-05-07Fix MagmaCube save.Howaner2-3/+9
2014-05-07Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner8-57/+125
2014-05-07Initial cPrefabPiecePool refactoring.madmaxoft2-0/+196
Ref.: #986.
2014-05-07Fixed wires powering wires diagonally below themTiger Wang1-5/+1
2014-05-06Fixed an extra space.madmaxoft1-1/+1
2014-05-06Suggestions'd #2Tiger Wang2-1/+6
2014-05-06Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count()Howaner9-34/+33
2014-05-06Simplified the HandleAnvilItemName() code.Howaner1-7/+2
2014-05-06Initial cGridStructGen refactoring.madmaxoft2-0/+262
Ref.: #987.
2014-05-06Suggestions'dTiger Wang3-7/+11
2014-05-05Changed cPieceGenerator to support pairings.madmaxoft3-57/+104
Fixes #982.
2014-05-05Prefabs can specify that they don't want flooring.madmaxoft1-30/+33
Previously the flag was ignored.
2014-05-05Change int to size_t return.Howaner2-3/+3
2014-05-05Fixed a flipped condition in cBlockArea::Merge().madmaxoft1-2/+2
2014-05-05Fix SetRepairedItemName() in SlotArea.cppHowaner1-1/+1
2014-05-05Add comments to CanTakeResultItem()Howaner1-5/+5
2014-05-05Add doxycomments to cSlotAreaAnvil functions.Howaner1-0/+2
2014-05-05Changed HandleAnvilItemName() length to size_t in ClientHandle.hHowaner1-1/+1
2014-05-05Add anvil shift click.Howaner2-5/+86
2014-05-05This isn't a enchantment table :DHowaner1-1/+1
2014-05-05Add clicks, exp subtraction, item check, ...Howaner7-18/+210
2014-05-05Add MC|ItemName plugin message.Howaner6-8/+51
2014-05-05Add anvil window and slot area.Howaner13-0/+356
2014-05-05Fixed crash on creating a world during plugin initialisationworktycho1-1/+1
2014-05-05Fixed formattingTiger Wang1-4/+5
2014-05-04Fixed 027efe09ea3d3222c3cbf169643e57773c1614aeTiger Wang1-3/+49
2014-05-04Fixed lever and button powering directionTiger Wang1-16/+8
2014-05-04Removed convert-assign operator.madmaxoft1-8/+0
We want all conversions to be explicit, not hidden.
2014-05-04Fixed pressure plate oversightsTiger Wang1-2/+8
* Fixed stone pressure plates not checking for the correct distance for players * Fixed pressure plates in general not link powering the blocks beneath them
2014-05-04Fixed portal Z direction loop coding failureTiger Wang1-10/+9
* Fixed portals created in the ZP/ZM direction eating its frame * Changed return type of a function
2014-05-03Hotfixed Chunked transfer encoding in Yggdrasil.madmaxoft1-1/+1
By using HTTP/1.0, we're disabling the support for the Chunked encoding on the server. This is a hotfix for #979, a proper parser implementation is still needed.
2014-05-03Fixed connection encryption.madmaxoft1-1/+1
Fixes #975.
2014-05-03Removed the controversial Vector3::operator <.madmaxoft1-6/+0
It hasn't been used in any C++ code and Lua doesn't need it.
2014-05-03Fixed float comparison warnings in Vector3.madmaxoft1-5/+23
There's a bitwise comparison (Equals), and there's Eps-based comparison (EqualsEps).
2014-05-03Implemented a true assignment operator for Vector3.madmaxoft1-1/+9
2014-05-03Fixed vanilla fluid simulator.madmaxoft1-4/+1
Fixes #919.
2014-05-03cCHunkBuffer that compiles with TestGlobals.hTycho4-1/+13
2014-05-02Attempted fix for CLang warnings in Vector3.h.madmaxoft1-1/+9
C++11 seems to have deprecated classes that have custom copy-constructor but not a custom assignment operator.
2014-05-02WebAdmin outputs a log message about HTTP / HTTPS status.madmaxoft1-18/+31
2014-05-02Fixed vanilla fluid simulator.madmaxoft4-14/+20
Fixes #919.
2014-05-02Fixed a buffer overflow in cChunk:SetLight().madmaxoft1-2/+2
There are only half as many bytes for light than there are blocktypes.
2014-05-02Open files in shared mode on windows, so that other tools may read them.madmaxoft1-2/+2
This was the behavior before fopen_s() was used for implementation; unlike fopen(), fopen_s() opens the file in exclusive mode.
2014-05-02A bit of reformatting.madmaxoft1-5/+10
2014-05-02Fixed MagmaCube spawning.madmaxoft1-0/+4
Fixes #928.
2014-05-02Added a sanitizer for Spawn egg damage value.madmaxoft1-1/+39
This disallows spawning unknown mobs from unknown spawn eggs. Ref.: #928.
2014-05-02HOOK_DISCONNECT has cClientHandle as its first parameter.madmaxoft6-10/+10
Ref.: #655.
2014-05-01Fixed warnings in ManualBindings.madmaxoft1-20/+20
2014-05-01Fixed warnings in Lua helpers.madmaxoft2-3/+3
2014-05-01Fixed a warning in Noise.madmaxoft1-1/+1
2014-05-01More ClientHandle fixes.madmaxoft2-3/+3
2014-05-01Fixed warnings in ClientHandle.madmaxoft8-9/+9
2014-05-01Fixed warnings in cByteBuffer.madmaxoft2-14/+14
2014-05-01Fixed warning in BlockID.madmaxoft1-1/+1
2014-05-01Fixed warnings in cBlockArea.madmaxoft1-2/+2
2014-05-01Fixed warnings in FastNBT.madmaxoft1-2/+2
2014-05-01Fixed warning in cCallbackSslContext::cDataCallbacks.madmaxoft1-0/+3
2014-05-01Fixed warning in cBlockArea.madmaxoft1-1/+1
2014-05-01Added a missing return statement.madmaxoft1-0/+1
2014-05-01Removed the explicit copy constructor for cItem.madmaxoft1-0/+6
The compiler generates an implicit one with the same contents and warns about it. The function left in for ToLua to generate the binding for it.
2014-05-01cSslContext has virtual destructor now.madmaxoft1-1/+1
2014-05-01Fixed MSVC2013 compilation.Mattes D1-1/+1
2014-05-01Renamed PublicKey to CryptoKey in CMakeLists.txtMattes D1-3/+2
2014-05-01Anvil saver pads data to 4K boundaries.madmaxoft1-0/+5
Fixes #524.
2014-05-01Renamed cPublicKey to cCryptoKey.madmaxoft9-41/+40
The class can hold both the private key and the public key, bad naming on PolarSSL's part. Also somewhat fixed the cert and key loading in cHTTPServer.
2014-05-01Fixed crashes in the SSL HTTP connection.madmaxoft9-23/+36
2014-05-01Implemented SSL connection for WebAdmin.madmaxoft4-2/+191
Fixes FS-319.
2014-05-01Fixed HTTP message parsing, prepared for SSL.madmaxoft2-3/+4
2014-05-01Added a (disabled) test of low-security ciphersuites.madmaxoft1-0/+12
Enabling this allows the connection to be sniffed and decoded using Wireshark, when given the SSL private key.
2014-05-01Fixed BufferedSslContext's buffer reading and writing.madmaxoft1-2/+2
2014-05-01cSslContext supports setting own cert / privkey.madmaxoft5-7/+187
2014-05-01Added cBufferedSslContext implementation.madmaxoft2-20/+51
2014-04-30If webadmin.ini doesn't exist, example one is written immediately.madmaxoft1-0/+1
2014-04-30Fixed a warning when an empty item is being created.madmaxoft1-1/+1
2014-04-30Ladders set as transparent.madmaxoft1-0/+1
2014-04-30Removed the unused cBlockingTCPLink class.madmaxoft3-171/+0
2014-04-29Delayed sending the KeepAlive packet for 3 seconds after login.madmaxoft1-0/+5
This should alleviate #889.
2014-04-29Removed unneeded #includes.madmaxoft1-6/+0
2014-04-29Moved the rest of the Crypto objects into their own respective files.madmaxoft13-422/+465
2014-04-29Moved cPublicKey to its separate file in PolarSSL++.madmaxoft6-109/+124
2014-04-29Added BiomeToString() API function.madmaxoft2-81/+106
2014-04-29Added BiomeToString() API function.madmaxoft2-81/+106
2014-04-29Added missing initialization.madmaxoft1-2/+5
2014-04-29Moved cRsaPrivateKey to PolarSSL++, rewritten using existing objects.madmaxoft9-225/+244
2014-04-28Disabled MSVC warnings about constant bool expressions.madmaxoft1-2/+19
2014-04-28Hopefully fixed repeated clang warnings.madmaxoft1-9/+9
2014-04-28Fixed a MSVC warning.madmaxoft1-1/+1
2014-04-28Fixed Formmatingnarroo1-69/+69
2014-04-28Added some E_META_* values to BlockID.hnarroo1-20/+120
2014-04-28Added the G1 root cert.madmaxoft1-2/+29
Now the authenticator finally works.
2014-04-28Added a debug cert printing function.madmaxoft2-0/+65
2014-04-28Fixed braces.madmaxoft1-1/+5
2014-04-28Fixed missing return value warning in MSVC.madmaxoft1-0/+1
2014-04-28Removed static from combinators.Tycho1-7/+7
THis allows us to use the functions in template params at the cost of polluting the global namespace.
2014-04-28Fixed unbraced ifsTycho1-10/+40
2014-04-28Removed inlines from combinatorsTycho1-7/+7
gcc requires external linkage for functions provided to template parameters
2014-04-28Template MagicTycho4-173/+183
Removed need to allocate a fake meta block by using templates to provide a version of the code that does not use metas. Also changed the function to a template argument to make sure that the compilier is able to inline it.
2014-04-28Revert "Withers now use the new invulnerable."Howaner2-10/+26
This reverts commit 619592b5a0ab651e714d55932bc7909e4204cee9.
2014-04-28Revert "Changed the old invulnerable methods from the wither to the new."Howaner5-28/+4
This reverts commit d50f8f6f11f69e7e1e56be92fb2d72a5014a3e34.
2014-04-28Fixed projectile source filenames, indentationsarchshift26-80/+80
2014-04-27Reordered constructors.madmaxoft1-2/+2
2014-04-27Fixed a late-night typo.madmaxoft1-2/+2
2014-04-27Fixed warnings.madmaxoft2-2/+3
2014-04-27Fixed player spawning #953.madmaxoft1-1/+4
2014-04-27Worked around const pointerTycho1-2/+3
2014-04-27Rewritten cAuthenticator to use the new PolarSSL++ wrapper classes.madmaxoft1-91/+45
2014-04-27PolarSSL wrappers for the SSL context.madmaxoft10-5/+847
2014-04-27cSocket creates the socket in Connect if no socket is present yet.madmaxoft1-2/+8
2014-04-27Fixes to uninitallsed array access in Noise.cppTycho1-0/+2
CID 43634, 43634
2014-04-27Initalize counter in fastrandomTycho1-1/+2
Fixes CID 43622
2014-04-27Initialised MetaArrays in BlockAreaTycho1-2/+6
Fixes CID 43621
2014-04-27Removed unneeded assertTycho1-1/+1
Fixed CID 43610
2014-04-27Removed Old AssertsTycho1-2/+0
Removed asserts about non-negative numbers on what are now unsigned types Fixes CID 43608
2014-04-27Removed old unused codeTycho1-5/+0
2014-04-27Fixed OnPluginMessage hook not exiting early.Tycho1-1/+1
OnPluginMessage hook would call all plugins even after one returned true. Fixes CID 43512
2014-04-27Added some commentsandrew2-2/+2
2014-04-27Revert "Creative players cannot throw ender pearls."archshift1-16/+0
This reverts commit 75bb36574b4bb78e8b5975bf905a97402fd8a4bb.
2014-04-27Creative players cannot throw ender pearls.archshift1-0/+16
2014-04-27Fixed ToLua errors, added newlinesarchshift18-19/+19
2014-04-27Redstone simulator now directly accesses cChunkTiger Wang10-453/+586
* Redstone simulator performance improvements * Added return values to some functions * Minor fixes
2014-04-27Another attempt at #889.madmaxoft1-3/+5
The packet was being sent after the state was adjusted, so another thread *may* have sent another packet in the meantime.
2014-04-27Fixed bad commentTycho1-1/+1
2014-04-27Fixed a couple of segfaults and made Free a seperate functionTycho2-6/+39
2014-04-27Added other half of implementationTycho1-14/+133
2014-04-27Fixed issues with gccTycho1-6/+7
2014-04-27Fixed MobProximity Counter to remove chunk copysTycho2-5/+4
2014-04-27Fixed bad mergeTycho1-13/+9
2014-04-27Fixed ToLua issuesarchshift9-19/+24
2014-04-27Moved cFireworkEntity out of ProjectileEntity.harchshift5-115/+116
2014-04-27Moved cGhastFireballEntity out of ProjectileEntity.harchshift6-74/+85
2014-04-27Moved cFireChargeEntity out of ProjectileEntity.harchshift6-82/+90
2014-04-27Moved cThrownSnowballEntity out of ProjectileEntity.harchshift5-74/+84
2014-04-27Moved cExpBottleEntity out of ProjectileEntity.harchshift4-52/+61
2014-04-27Moved cThrownEnderPearl out of ProjectileEntity.harchshift5-86/+95
2014-04-27Moved cThrownEggEntity out of ProjectileEntity.harchshift5-91/+100
2014-04-27Moved cArrowEntity out of ProjectileEntity.harchshift10-284/+297
2014-04-27A tiny speed improvement in ApplyFoodExhaustion()Tiger Wang1-5/+5
2014-04-27More comments!Tiger Wang2-3/+10
* Also fixed a potential issue with position sending - if someone moved slowly enough, their position would never be updated.
2014-04-27Added static const, initialized fields.archshift4-2/+7
2014-04-26More small fixes.archshift3-11/+11
2014-04-26Moar alignment.archshift1-7/+7
2014-04-26Implemented Chunk Sparsing with segmentsTycho17-401/+610
2014-04-26Further refactored, Reverted Minecart changearchshift11-90/+62
Other small changes.
2014-04-26Changed the old invulnerable methods from the wither to the new.Howaner5-4/+28
2014-04-26Withers now use the new invulnerable.Howaner2-26/+10
2014-04-26FixesHowaner8-23/+26
2014-04-26Fixed unitialized member in gZipFile (CID 43673)jfhumann1-1/+1
2014-04-26Fixed mobs that don't naturally spawn.archshift3-7/+11
2014-04-26Moved switch{} out of GetArmorCoverAgainst().archshift2-5/+29
2014-04-26Removed unused assignments.archshift3-6/+2
2014-04-26Fixed a couple more warnings.archshift2-21/+17
2014-04-26Moved the weather picker out of TickWeather(), squashing a warning and improving readability.archshift2-25/+30
2014-04-26Fixed a memory leak in tolua_cWorld_ChunkStay. (CID 43618)jfhumann1-1/+4
2014-04-26Removed impossible default case.archshift1-6/+0
Squashed a warning.
2014-04-26Removed extraneous switch{} in Start()archshift2-17/+3
Squashed a warning.
2014-04-26Fixes resource leaks in the yggdrasil authenticator. (CID 43617)jfhumann1-0/+33
2014-04-26Moved huge conditional out of InStateChasing(), improving readabilityarchshift2-1/+20
Squashed a warning.
2014-04-26Fix for minor resource leak (CID 43616)jfhumann1-1/+9
2014-04-26Change m_InvulnerableTicks description again again :DHowaner1-1/+1
2014-04-26Change m_InvulnerableTicks description again.Howaner1-1/+1
2014-04-26Change m_InvulnerableTicks descriptionHowaner1-1/+1
2014-04-26Add entity invulnerableHowaner22-50/+111
2014-04-25Should fix CIDs 43631, 43632 and 43633jfhumann1-0/+2
2014-04-25Implemented commentsTiger Wang3-33/+52
2014-04-25Missed these CMakeLists.archshift2-1/+7
2014-04-25Cmake generated projects for IDEs include headers in project files.archshift12-0/+12
2014-04-25Fixed C++11 check for SharedPtr.madmaxoft1-1/+1
2014-04-25Creator not user.archshift2-5/+5
2014-04-25Comments for TrySpawnChicken() and TeleportUser().archshift1-0/+2
2014-04-25Rename spawn chicken method, Initialize m_HasTeleported.archshift2-4/+5
2014-04-25Fix formattingr.ramazanov1-9/+15
2014-04-25Added shared_ptr handling for C++03 mode.madmaxoft1-3/+7
2014-04-25Fix for clangr.ramazanov1-5/+1
2014-04-25Mobs shouldn't burn when it's Raining & Mob Knockback is far too muchr.ramazanov1-8/+5
2014-04-25Small changes; warning fixing.archshift6-14/+12
2014-04-25Chicken eggs and ender pearls can hit entities.archshift2-7/+66
Fixed warning by adding dedicated m_HasTeleported for fired arrows.
2014-04-25Oops, fixed that.archshift1-0/+2
2014-04-25Giants!archshift2-7/+12
Changed mfMaxplusone to mfUnhandled for readability, and fixed a default case warning.
2014-04-25Refactored SendChat(), placing the message-type formatting into its own function.archshift2-84/+81
Removed default case warning in the process.
2014-04-25Add commit what the code is doing.Howaner1-0/+1
2014-04-25Add unkown armor warning and fix armor stacks.Howaner1-2/+14
2014-04-24Fixed indentTiger Wang1-1/+1
2014-04-24Implemented suggestionsTiger Wang1-7/+6
2014-04-24Add armor to switch() in ItemHandler.cppHowaner2-7/+26
2014-04-24Another small speed improvement?Tiger Wang1-12/+2
2014-04-24Implemented suggestionsTiger Wang2-89/+16
2014-04-24Replaced MSVC-specific decorators with our universal ones.madmaxoft2-2/+2
2014-04-24cByteBuffer uses void * instead of char * in data interface.madmaxoft2-5/+6
This makes it compatible with any pointer type.
2014-04-24Declared a SharedPtr that hopefully resolves on all platforms.madmaxoft1-1/+9
MSVC2008 has it in std::tr1, all the others in std.
2014-04-24Fixed filename case.madmaxoft1-1/+1
2014-04-24Attempted CMake inclusion for PolarSSL++.madmaxoft2-2/+19
2014-04-24Authenticator uses some C++ SSL objects.madmaxoft1-19/+40
2014-04-24Initial C++ SSL classes.madmaxoft7-2/+248
2014-04-24Changed cByteBuffer constructor to take a size_t instead of int.madmaxoft2-2/+2
2014-04-24Fixed class capitalization for the cave spider.archshift4-7/+7
2014-04-24Fix armor in survival mode.Howaner6-17/+157
2014-04-24Fixed references to renamed files.archshift5-8/+8
2014-04-24Rename mob source files to fit CamelCase.archshift6-6/+0
Rename Cavespider.cpp to CaveSpider.cpp Rename Cavespider.h to CaveSpider.h Rename Magmacube.cpp to MagmaCube.cpp Rename Magmacube.h to MagmaCube.h Rename Zombiepigman.cpp to ZombiePigman.cpp Rename Zombiepigman.h to ZombiePigman.h
2014-04-23Updated docs for StringToEnchantmentID.madmaxoft1-1/+1
Ref.: mc-server/Core#67
2014-04-23Updated NetherFort prefabs to latest Gallery content.madmaxoft1-7/+29
2014-04-23Some change to Entity.cppTiger Wang7-123/+105
* Added comments to BroadcastMovementUpdate() and the collision tracer
2014-04-23Small changesTiger Wang4-12/+15
2014-04-23The new leaves don't decay anymore.STRWarrior1-0/+1
Fixes #792
2014-04-23Mobs shouldn't burn when it's Raining #906r.ramazanov1-9/+30
Mob Knockback is far too much #776
2014-04-23Renamed getter and setter for IsFireproof.archshift3-4/+4
2014-04-23Added IsFireproof hook for monsters.iniarchshift1-0/+3
2014-04-23Fireproof status getter and setter.archshift2-0/+16
2014-04-22Updated NetherFort prefabs from the Gallery server.madmaxoft1-274/+785
2014-04-22Fixed indentation and changed m_Fireproof to m_IsFireproof.archshift2-14/+14
2014-04-22Lay foundation for fireproof entities.archshift2-3/+15
Prevent any entities with the m_Fireproof flag from taking fire or lava damage.
2014-04-21reverted the revert of the minecart collision detection fix.jfhumann1-2/+1
2014-04-21Mobs shouldn't burn when it's Raining #906r.ramazanov1-5/+12
2014-04-21Added prefab hitboxes.madmaxoft3-11/+138
The nether forts should quite limit their bridge-to-floor overlaps. Cannot eliminate, but at least severely diminish.
2014-04-21Added enchantment combining into cEnchantments.madmaxoft2-16/+33
2014-04-21Replaced X.size() with X.empty(), where applicable.madmaxoft1-3/+3
2014-04-21Fixed a warning in CraftingRecipes.Mattes D1-1/+1
2014-04-21Allow 1.6.4 Forge clients to log in.Mattes D2-0/+20
Fixes #913.
2014-04-21Fixed enchanting return values.Mattes D1-3/+3
Items are enchanted in those cases, so return true. Ref.: #914.
2014-04-20Fixed MSVC compilation.madmaxoft1-1/+1
2014-04-19Fixed Codedaniel09162-145/+148
2014-04-19Fixed Flint and Steel, reverted Minecart change, renamed a parameter namejfhumann4-9/+10
2014-04-19Declared one mutex as mutable in order to allow for const correct get accessors.jfhumann3-7/+7
2014-04-19Fixed Code (2)daniel09161-97/+93
2014-04-19Fixed Codedaniel09165-411/+418
2014-04-19Fixed formatting, made function static.madmaxoft2-13/+18
2014-04-18Fixed clang compilation errors. Apparently gcc and MSVC do not care about the order of initializer lists, but clang does.jfhumann2-2/+2
2014-04-18Small style changesjfhumann4-9/+9
2014-04-18Compilation fixTiger Wang1-1/+1
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann48-212/+257
2014-04-18Added performance test of the nether fort generator.madmaxoft2-0/+35
2014-04-18Fixed Errorsdaniel09163-5/+23
2014-04-18Removed old includedaniel09162-2/+1
2014-04-18Fixed #906Tiger Wang2-1/+12
2014-04-18Fixed #904Tiger Wang2-1/+6
2014-04-18Removed unsupported C++11 features.madmaxoft1-13/+19
2014-04-17Added area flooring.madmaxoft1-1/+42
Fixes #743.
2014-04-17Added new AI rulesTiger Wang6-53/+64
+ Added new AI rules handling cacti and large heights * Fixed cIniFile not recognising comments in cIniFile::ReadFile() * Fixed users.ini not being properly generated * Changed all instances of (int)floor(GetPosXXX()) to POSXXX_TOINT
2014-04-17Fixed some Errors (not all)daniel09164-20/+21
2014-04-17Added Prefab initializers to SELFTEST code.madmaxoft1-1/+13
2014-04-17Prefabs can have per-piece per-placement weights.madmaxoft5-32/+752
Fixes #753. Also upgraded NetherFortPrefabs to lates Gallery contents.
2014-04-17Compile fix?Tiger Wang1-2/+2
2014-04-17Modified many thingsdaniel091610-918/+1000
2014-04-17Implemented weighted pressure platesTiger Wang3-29/+175
2014-04-17Mobs rotationr.ramazanov1-4/+6
2014-04-16Added asserts for proper game state.madmaxoft1-5/+131
This is to help hunt #889.
2014-04-16Fixed conflicting enchantments checkingdaniel09162-24/+24
2014-04-16Added deletions from merge conflictdaniel09161-0/+875
2014-04-16Fixed merge conflictdaniel09161-877/+0
2014-04-16Fixed double enchanting itemsdaniel09161-2/+2
2014-04-15Attempted fix for the client crash with the new protocols.madmaxoft2-6/+16
2014-04-15Code Optimizationdaniel09162-358/+183
2014-04-15Added Book Enchantingdaniel09162-2/+311
2014-04-15Add more checks to cSlotAreaEnchantingHowaner3-99/+212
2014-04-15Modified namesdaniel09162-49/+49
2014-04-15Add linux compatibilityHowaner1-61/+71
2014-04-15Rewrote redstone powering to use power levelsTiger Wang6-183/+157
2014-04-15Added support for per-piece per-placement weights in cPieceGenerator.madmaxoft2-28/+48
Ref.: #753.
2014-04-15NetherFortPrefabs: Fixed a connector in MidStaircase.madmaxoft1-1/+1
2014-04-14Implemented the 1.7.6 protocol and authenticator.madmaxoft10-128/+198
Server works both in online and offline modes with 1.7.9.
2014-04-14Added ItemPlaceCount in SlotAreadaniel09162-0/+35
Thanks to Howaner for helping
2014-04-14A client UUID is generated when the server is in offline mode.madmaxoft3-5/+40
1.7.9 client works with these changes in offline mode.
2014-04-14Initial 1.7.6 protocol support.madmaxoft4-2/+69
Doesn't work yet because of missing UUIDs.
2014-04-14Removed Debug Messagedaniel09161-2/+0
2014-04-14Added/Modified last things for Enchanting Systemdaniel09161-15/+53
2014-04-14Blocked enchanting a item twicedaniel09162-8/+10
2014-04-14Fixed Bookshelf Checkingdaniel09161-8/+10
Code by LO1ZB
2014-04-14Bug fixesdaniel09164-26/+21
2014-04-13Fixed invisibility enchantmentsdaniel09164-1/+8
2014-04-13Fixed mistakedaniel09162-2/+2
2014-04-13Fixed Error?daniel09161-2/+2
2014-04-13Code Updatedaniel09161-4/+5
2014-04-13Fixed mistakedaniel09161-1/+1
2014-04-13Fixed Server Crashdaniel09161-0/+6
2014-04-13Some Fixesdaniel09162-2/+9
2014-04-13Added Yggdrasil Authentication Systemdaniel09169-295/+360
Code by Howaner. Fixes/Changes by me.
2014-04-12ChunkStay must be disabled while being deleted.ProtoProxy_1.7.2_001madmaxoft3-4/+6
Fixes #758.
2014-04-12Fixed chunkstays not being removed on auto-delete.madmaxoft2-10/+19
Fixes #837.
2014-04-12Fixed link errorsTycho1-0/+9
2014-04-12Updated the NetherFort prefabs to current Gallery contents.madmaxoft3-1958/+3329
Code exported from the Gallery server by the GalExport plugin.
2014-04-12Fixed Bookshelves Checking (not completly)daniel09161-7/+10
2014-04-12Added complete Enchanting Systemdaniel09168-147/+803
http://minecraft.gamepedia.com/Enchantment_mechanics
2014-04-12Entities handle chunks properly againTiger Wang10-123/+123
* Entities properly handle chunks * Changed EntityStatus enums to be less shouty
2014-04-12Simplified pickup speed randomisationTiger Wang1-4/+3
2014-04-12Some tweaksSTRWarrior1-5/+17
GetPyramidLevel returns 0 when no layers were found, 1 for one layer etc. Auto adjust the minY and/or maxY to 0 if the beacon is low.
2014-04-12Fixed member construction order.madmaxoft1-2/+2
2014-04-12Removed debug message.STRWarrior1-1/+0
2014-04-12Simplefied GetPyramidLevelSTRWarrior1-10/+3
2014-04-12Lighting reads blocktypes only for blocks under heightmap.madmaxoft2-16/+87
This should theoretically speed it up, since less data is copied back and forth. Also implemented a possibly more cache-friendly blocklight starter algorithm (PrepareBlockLight2()), is disabled by default, needs perf testing.
2014-04-12Implemented the skeleton code for the beacon.STRWarrior4-0/+155
There is no handling for the GUI. It can now check how big the pyramid is under the beacon.
2014-04-11Fixed issues with 64-bit MSVC compilation.madmaxoft3-21/+35
2014-04-10Replaced all the .data() calls so the code compiles in VS2008Tycho1-5/+5
2014-04-10Fixed enchantment parsing.madmaxoft1-12/+17
Fixes #880. Enchantment parsing now reports in detail which value failed to parse
2014-04-10Fixed GitHuB WebEdit fail.Alexander Harkness1-0/+1
2014-04-10Update Monster.cppAlexander Harkness1-2/+4
2014-04-08cRedstoneSimulator.cpp style improvementsTiger Wang1-40/+41
2014-04-08Fixed missing - that caused all neighbour lookups to go to the chunkmapTycho1-1/+1
2014-04-08Removed check for enqueuing a chunk that is already enqueued to be loadedTycho1-1/+1
This remaval is safe as cWorldStorage checks for duplicate chunks when dequeuing and removes an expensive iteration whilst holding the queue lock
2014-04-08Uppercased Zwiseoldman951-3/+3
Minor, no code changed.
2014-04-08Comments: Inverted Z axis.wiseoldman951-9/+10
-Comments fix, No code has been changed. -Inverted the Z axis in the comments and changed all dependent comments accordingly. -Added NORTH/SOUTH/EAST/WEST in addition to LEFT/RIGHT/UP/DOWN.
2014-04-08Added comments regarding latching and orientationwiseoldman951-9/+31
No real code was changed.
2014-04-08Fixed the thing properly.Alexander Harkness1-8/+8
2014-04-07Maybe speed improvements?Tiger Wang2-48/+29
* Use a single index to determine from when to begin copying data * Use heightmap to determine first nonair block
2014-04-07Modified commentdaniel09161-1/+1
2014-04-07Fixed Errorsdaniel09162-3/+3
2014-04-07Added deleted things for mergingdaniel09161-0/+3
2014-04-07Fixed merge conflictdaniel09161-3/+0
2014-04-07Fixed IsOnwiseoldman951-3/+2
2014-04-07Added Enchantment-Slot-Level generatingdaniel09163-9/+32
2014-04-07Removed stray IsLockedwiseoldman951-2/+2
2014-04-07Removed unneeded spacingswiseoldman951-6/+3
2014-04-07Slight cleanupwiseoldman951-13/+17
It is more efficient and readable if we do nothing unless we're not locked.
2014-04-07Fixed some more minor issues with the redstone simulator.Alexander Harkness1-34/+39
2014-04-07Improved the speed a little more.Alexander Harkness1-1/+1
2014-04-07Fixed the redstone simulator.Alexander Harkness1-49/+40
2014-04-07Statistic/Achievement defsandrew2-0/+255
2014-04-07Attempt to fix errorsTiger Wang2-12/+12
2014-04-07Fixed #859Tiger Wang1-23/+3
2014-04-07Fix some of the comments in the PR tycho just did.Alexander Harkness1-8/+6
2014-04-07Fixed HTTP chunked encoding.madmaxoft1-1/+1
Fixes #858.
2014-04-07Blocklight and skylight now compressedTiger Wang3-32/+90
2014-04-06Fixed 1.6.4 client crash on composite chat messages.madmaxoft2-0/+14
2014-04-06Fixed crash in protocols sending 64-bit ints.madmaxoft1-1/+1
Fixes #855.
2014-04-06Updated the tolua executable for Windows.madmaxoft1-0/+0
2014-04-06Remove old importHowaner2-3/+2
2014-04-06Add CanChangeDirtToGrass function to Block Handlers.Howaner9-4/+45
2014-04-06Added support for redstone latchingTycho2-2/+65
fixes #856
2014-04-05Fixed Endiannes conversion routines for floats and doubles.madmaxoft2-3/+3
This bug has been introduced in 8825d30aabbee8cb2e452dc5a17deb6f9b6892a7. This change fixes #854.
2014-04-05Fixed double projectile spawning.madmaxoft1-1/+0
Two spawn packets were sent per projectile.
2014-04-05Removed debugging log from entity physics handling.madmaxoft1-1/+2
2014-04-05Added cPlayer:SendRotation() API function.madmaxoft2-0/+17
2014-04-05Nibbletypes are compressedTiger Wang3-18/+110
+ Added nibble compression * Fixed an off by one
2014-04-04Speed and memory improvementsTiger Wang2-62/+15
* Changed array to be continuous, so no more layer splitting
2014-04-04Explicit change record size.madmaxoft1-1/+1
2014-04-04Changed cNoise seed to signed.madmaxoft2-4/+4
2014-04-04Fixed format string mismatch.madmaxoft1-1/+1
2014-04-04More Clang warning fixes in the protocols.madmaxoft6-81/+82
2014-04-04Fixed CreateHexDump's format string.madmaxoft1-2/+2
2014-04-04Fixed CreateHexDump's signedness.madmaxoft3-11/+11
2014-04-04More Clang warning fixes in the protocols.madmaxoft3-30/+39
2014-04-04Fixed silly Clang's warnings in FastNBT.madmaxoft1-28/+28
2014-04-04Fixed some Clang warnings in protocols.madmaxoft13-43/+51
2014-04-04Fixed Clang warnings in itemhandlers.madmaxoft6-20/+21
2014-04-03Change CanBeAt() from big flowerHowaner1-5/+1
2014-04-03Remove old functionHowaner1-6/+0
2014-04-03Documented the units and range for entity rotations.madmaxoft1-7/+7
2014-04-03Grass now grows under up-side-down slabsHowaner1-3/+12
2014-04-03Fixed some bugsTiger Wang1-3/+5
* Fixed undefined behaviour * Fixed compression failure
2014-04-03Removed unneeded asserts.madmaxoft1-2/+0
2014-04-03Fixed a few MSVC type warnings.Mattes D3-2/+5
2014-04-03Removed the bindings to set old g_BlockXXX arrays.Mattes D1-297/+65
Those were supposed to be read-only; there's no point in writing to them anyway. Also fixed MSVC type warnings in the code.
2014-04-02Performance improvements and chunk flipping fixedTiger Wang1-30/+32
2014-04-02With eXtra line!Tiger Wang1-0/+1
2014-04-02Removed extra bracketsTiger Wang1-5/+2
2014-04-02Fixed boat placement code.madmaxoft1-9/+17
2014-04-02Fixed more virtual destructors for interfaces.madmaxoft4-0/+12
2014-04-02Fixed All signedness warnings in HTTPServer.cppTycho10-14/+17
2014-04-02Fixed format string in HTTPConnectionTycho1-1/+1
2014-04-02Fixed Comparison to -1 in HTTPMessage.hTycho1-1/+1
2014-04-02Added schematic string serializer self-test.madmaxoft1-0/+33
2014-04-02Fixed StringCompression's GZIP handling for larger strings.madmaxoft2-5/+7
2014-04-01Exported the Base64 encoding and decoding functions to Lua API.madmaxoft2-2/+48
2014-04-01cBlockArea: Added the msMask merge strategy.madmaxoft2-0/+39
2014-04-01Rewritten HTTPServer to use size_t for data lengths.madmaxoft16-90/+97
2014-04-01More cFile warning fixes.madmaxoft1-1/+1
2014-04-01Fixed clang warnings in cGZipFile.madmaxoft1-2/+2
2014-04-01Fixed clang warnings in BlockHandlers.madmaxoft4-5/+6
2014-04-01Fixed clang warnings in cFile.madmaxoft1-10/+10
We only support 32-bit filesizes (files < 2 GiB).
2014-04-01Simplified the anvil placement code.madmaxoft1-11/+9
2014-04-01Removed an unneeded code branch.madmaxoft1-5/+0
2014-04-01LOG() API reads the LogLevel from the cCompositeChat's MessageType.madmaxoft5-22/+79
2014-03-31Final realisation of suggestionsTiger Wang1-5/+7
2014-03-31Console logging supports cCompositeChat as its parameters.madmaxoft4-34/+69
2014-03-31Realised suggestionsTiger Wang2-6/+12
2014-03-31Simplified and fixed slabs, fixes #835Tiger Wang3-36/+13
2014-03-31Fixed a few Y too high/low assertsTiger Wang3-12/+15
2014-03-31Added new merge strategy "msDifference"STRWarrior2-0/+35
2014-03-31cCompositeChat has a MessageType param in the constructor.madmaxoft2-3/+3
This should make it easier to use.
2014-03-30Fixed a few Clang warnings in BlockHandlers.madmaxoft11-48/+54
2014-03-30Fixed a few clang warnings.madmaxoft4-7/+13
2014-03-30Using recommendations (I think)STRWarrior6-6/+7
2014-03-30Another curlyTiger Wang1-1/+2
2014-03-30Added a BlockHitPos parameter to OnProjectileHitBlockSTRWarrior6-9/+9
2014-03-30Added a blockface parameter to the OnProjectileHitBlock hook.STRWarrior6-8/+8
2014-03-30Added all current NetherFort prefabs.madmaxoft1-3/+1547
2014-03-30Added asserts for critical data in cPrefab.madmaxoft1-0/+4
2014-03-30Re-fixed nether fort piece count check.madmaxoft1-2/+2
2014-03-30Fixed chest rotator.madmaxoft1-2/+2
2014-03-30NetherForts have a minimum number of pieces.madmaxoft1-2/+5
The fort will generate a different image if it has less than the minimum; the max depth affects the minimum number of pieces.
2014-03-29cPrefab now uses a struct for block type definition in CharMap.madmaxoft2-10/+102
As suggested by worktycho in 7b585290fccd3dc074b1f9feef0af754ab3dd632, instead of packing the two values into a single int, they're packed into a struct. Also added a test code for the prefab parsing in SELF_TEST.
2014-03-29Renamed lua dll for tolua++.exe.madmaxoft1-0/+0
Fixes #843.
2014-03-29Fixed the OnProjectileHitBlock hook not stopping projectiles.STRWarrior1-1/+1
2014-03-29Added HOOK_PROJECTILE_HIT_BLOCK.STRWarrior6-0/+50
2014-03-29Fixed error when the hook gets called.STRWarrior3-1/+14
2014-03-29Added HOOK_PROJECTILE_HIT_ENTITYSTRWarrior6-0/+54
2014-03-29Added in MetaMirrorXY and MetaMirrorYZ to cBlockSignHandler.narroo1-0/+19
2014-03-29Compare for inequality in FACE_NONE checksTiger Wang1-3/+3
2014-03-29Add "a_RelY < cChunkDef::Height" to BlockBigFlowerHowaner1-0/+1
2014-03-29Removed leftover clienthandle codeTiger Wang1-10/+6
2014-03-29Fixed players not updating after world changeTiger Wang1-4/+2
Addendum to 6dea7993f2a563a8b3a0746feeb2174922631526
2014-03-29Curly bracketsTiger Wang1-1/+4
2014-03-29Fixed #721 and FS439Tiger Wang1-0/+1
2014-03-29Fixed a minor ini key duplication bugTiger Wang1-0/+1
2014-03-28Fixed infinite minecart itemsTiger Wang1-0/+3
2014-03-28Fixed block interaction rate checkTiger Wang1-2/+4
2014-03-28Fixed a potential crashTiger Wang1-1/+1
2014-03-28Some fixes to lilypadsTiger Wang5-62/+116
* Fixed placement on lava * Fixed placement on side of blocks * Fixed placement through blocks + Added washing-away of pads + Added ice as a block that fully occupies its voxel
2014-03-28NetherFortGen: Added several more prefabs.madmaxoft2-2/+783
Also extended the defauls MaxDepth value to 12.
2014-03-28Add tallgrass drop to big flowers.Howaner2-8/+59
Add tallgrass drop, when a players break a tallgrass with the shear.
2014-03-28door -> flowerHowaner1-1/+1
2014-03-28Add tall flower handler.Howaner2-0/+99
2014-03-28Added Prefabs to *nix builds.madmaxoft1-1/+1
2014-03-28Fixed non-virtual destructors warnings.madmaxoft11-37/+61
2014-03-28Implemented the msSpongePrint merge strategy.madmaxoft3-9/+48
Similar to msImprint, but allows prefabs to carve out air pockets, too. The sponge block is used as the NOP block.
2014-03-28NetherFort: Added BalconyTee2 prefab.madmaxoft1-29/+158
2014-03-28Fixed a memory leak in NetherFortGen.madmaxoft1-0/+7
2014-03-28Sponged the netherfort balcony prefab.madmaxoft1-30/+31
This is a preparation for the msSpongePrint merge strategy, used for imprinting most prefabs. It will carve out even air, but will ignore sponge blocks.
2014-03-28Fixed compilation after last PR merge.madmaxoft1-1/+1
2014-03-28Initial NetherFortGen import.madmaxoft8-15/+713
Simple fortresses of 2 different rooms will generate.
2014-03-28Fixed Prefab's rotations.madmaxoft2-7/+39
2014-03-28Add missing ChunkDesc import.Howaner1-1/+1
2014-03-27Fix merge conflictsHowaner1-7/+0
2014-03-27Change SpreadSource prefix to ssHowaner4-8/+8
2014-03-27Wrong if in BlockLeavesHowaner1-1/+1
2014-03-27Add SpreadSourceHowaner11-10/+34
2014-03-27Add HOOK_BLOCK_SPREADHowaner6-3/+57
2014-03-27Add new leaves to all classes.Howaner2-1/+8
2014-03-27cPrefab can draw itself into a cChunkDesc.madmaxoft2-6/+9
2014-03-27Fixed chunk neighbor-getting for long distances.madmaxoft1-0/+11
This fixes a server hang when teleporting to coords too far away.
2014-03-26Prefabs support connectors, rotations and merge strategy.madmaxoft2-3/+72
2014-03-26Altered the rotates for cBlockSignHandler. The functions as a whole is still unfinished though; no wall sign or mirroring support yet.narroo1-2/+2
2014-03-26Fixed Minor typos.narroo3-9/+12
2014-03-25Removed unused constants.madmaxoft2-7/+1
DeadlockDetect reads the value from the ini file, and world lighting has a separate queue now.
2014-03-25Added a comment about the behavior of doors under mirros. Simply put, the current implementation of MetaMirror causes glitchy behavior. The door class itself needs to be edited. (I've got an idea on that....)narroo1-2/+8
2014-03-25Fixed spelling; Rotater to Rotator.narroo15-46/+46
2014-03-25Changed Rotater to Rotator. Added partial sign post rotation support.narroo2-0/+12
2014-03-25Added a basic cPrefab class.madmaxoft2-0/+222
Can be defined in the source by GalExport's cpp output.
2014-03-25BlockArea: Create() can take the size as Vector3i, too.madmaxoft2-2/+17
2014-03-25BlockArea: Switched internal coords to Vector3i.madmaxoft4-200/+176
2014-03-25Added Vector3::Move(const Vector3 &).madmaxoft1-0/+7
2014-03-25Ender crystalsandrew7-11/+137
2014-03-25More fixes to get it to compile for me on Mac 10.9. Mostly just newline additions, but some of the unused variables were causing errors, so I wrapped them in #ifndef __APPLE__ calls, since I didn't know if they were going to be used in the future.Samuel Barney15-14/+19
Also had to undefine TOLUA_TEMPLATE_BIND a couple of times.
2014-03-25Added one more missing newline.Samuel Barney1-1/+1
2014-03-25Added newlines. Without them, the files would not compile.Samuel Barney4-4/+4
2014-03-25Fixed clang compilationandrew2-14/+17
2014-03-25Fixed wither summoningandrew3-3/+37
2014-03-25Protocol: Wither metadataandrew5-3/+116
2014-03-25Minor fixesandrew3-14/+13
2014-03-24Add log pickups.Howaner1-1/+7
2014-03-24Wither invulnerabilityandrew8-5/+100
2014-03-24Added MetaRotate/Mirror Support for a number of classes.narroo12-84/+295
2014-03-23Implemented lilypad placementTiger Wang4-8/+98
2014-03-23Updated the ToLua windows executable.madmaxoft1-0/+0
2014-03-23Sort of implementation of chunk sparsingTiger Wang2-18/+93
Issues: * Chunks are flipped * Slow/inefficient/badly coded * Only blocktypes are 'compressed'
2014-03-22Added override specifier to functions declared in cWorldTycho1-8/+8
2014-03-21Implemented faster upscaling using templates.madmaxoft6-36/+38
Fixes #819.
2014-03-20Updated the tolua++ executable for Win builds.madmaxoft1-0/+0
2014-03-20Plugins can set flying speed.madmaxoft3-77/+119
2014-03-20Rewritten player speeds to be relative unit-less.madmaxoft4-12/+17
Value of 1 means "default speed", 2 means "double the speed", 0.5 means "half the speed". This allows for easier plugins and is more future-proof.
2014-03-20Fixed code style after recent merge.madmaxoft2-31/+33
2014-03-20Made pushing plain pointer to Lua a valid operation, with a warning.madmaxoft2-3/+4
This is used for exotic explosions, and the NORETURNDEBUG macro caused MSVC warnings across the entire cLuaState class (MSVC marked ALL Push() function overloads as non-returning)
2014-03-20Added bracesTiger Wang1-0/+2
2014-03-20Minor Entity.cpp cleanupTiger Wang1-12/+9
2014-03-20ENUMified shrapnel levelTiger Wang4-15/+17
2014-03-19Errors in Lua don't include the error handler in the stack trace.madmaxoft2-7/+7
Fixes #817.
2014-03-19Added unreachable lines backit prtected by preprocessor guardsTycho2-0/+10
2014-03-19LuaChunkStay: Removed a debugging output.madmaxoft1-3/+0
2014-03-18Added levels of shrapnelTiger Wang3-8/+18
2014-03-18Fixed chunkmap tree block replacing.madmaxoft1-8/+2
2014-03-18Fixed cGZipFile::ReadRestOfFile returning incorrect value.madmaxoft1-1/+4
2014-03-17Fixed a crash in firework rockets.madmaxoft1-2/+8
Fixes #816.
2014-03-16Fixed double to float conversions.madmaxoft4-52/+53
2014-03-16Added override specifier where appropriate in cWorld.madmaxoft1-37/+38
2014-03-16Wrong if in BlockLeavesHowaner1-1/+1
2014-03-16Add new leaves to all classes.Howaner9-5/+18
2014-03-16Added common eMessageType aliases.madmaxoft1-10/+16
2014-03-16Change if-clause in BlockCake.hHowaner1-1/+1
2014-03-16Add cakeHowaner4-0/+101
2014-03-16Fix anvil pickups.Howaner1-1/+1
2014-03-16Add anvil direction.Howaner3-1/+74
2014-03-15Fixed unessicary returnTycho1-1/+0
2014-03-15Patched tolua to emit range checks for enumsTycho1-0/+1
2014-03-15Remove old debug messages.Howaner1-3/+0
2014-03-15Added cCuboid:Assign(OtherCuboid) API function.madmaxoft2-0/+15
2014-03-15Add item frame saving.Howaner9-46/+251
2014-03-15Add health and age load to pickup's.Howaner5-22/+43
2014-03-15Add ExpOrb saving.Howaner7-38/+124
2014-03-14Add fireball interactHowaner4-2/+33
2014-03-14Added Noreturn attribtes to a couple of functions and made a missing noreturn an errorTycho3-4/+11
2014-03-14Added NORETURN macroTycho1-0/+4
2014-03-14Fixed a few unneeded breaksTycho3-3/+3
2014-03-14Removed missiterperatable malfunctioning error handling codeTycho1-2/+0
2014-03-14Removed invalid block face handling codeTycho1-1/+0
The code for handling invalid block faces is removed by gcc and clang as it is undefined behavior for a enum to contain a value that is not part of the enum. Since the only way that the line can be executed is through undefined behavior clang and gcc remove it so the function fits in the caches better.
2014-03-14Fixed a couple of missing defsTycho3-10/+2
2014-03-14cPlugin:BindConsoleCommand can be called statically.madmaxoft1-1/+4
This has been documented before it was written.
2014-03-14Fixed a warning.madmaxoft1-3/+3
2014-03-14Fixed xofts issuesTycho10-23/+24
2014-03-14cPluginManager:Bind[Console]Command returns true on success.madmaxoft1-2/+4
Fixes #801.
2014-03-12Fixed commaTycho1-2/+2
2014-03-12Added additional macros to support the MSVC size_t format and changed all formats to use the macrosTycho13-29/+33
2014-03-12Fixed printf format compatabiltyTycho2-5/+9
2014-03-12Fixed comments an assertTycho1-1/+1
2014-03-12Fixed missing comment terminator.madmaxoft1-1/+1
2014-03-12Vector3: More castsandrew1-9/+9
2014-03-12M_PI MSVC Fixandrew2-2/+2
2014-03-12Vector3: Length() should always return a floatandrew1-9/+9
2014-03-12Fixed Lua string return values.madmaxoft1-4/+0
Fixes #773.
2014-03-12The entire unknown command is echoed back to the user on error.madmaxoft1-1/+1
2014-03-12Moved Lua API registering into a separate function.madmaxoft4-2/+17
This will allow us to use Lua as lite-config files as well, should we want to.
2014-03-11Fixed more Format issuesTycho6-17/+17
2014-03-11Fixed a load of format string errorsTycho13-27/+29
2014-03-11Move Format issuesTycho3-4/+4
2014-03-11Fixed format errors in protocolTycho1-3/+3
2014-03-11Added macros to follow format string checking through wrappersTycho3-4/+8
2014-03-11Matrix4: Removed enumandrew2-22/+24
2014-03-11Fixed Chunkdef warningsTycho1-2/+2
2014-03-11Fixed Warnings in PieceGeneratorTycho2-9/+9
2014-03-11Unified Matrix4 codeandrew7-233/+230
2014-03-11LineCoeff Docandrew1-4/+20
2014-03-11TakeDamage now has the cThrownSnowballEntity instead of the creator's object.STRWarrior1-1/+1
2014-03-11Snowballs now actualy hurt other entities.STRWarrior2-2/+25
3 damage for blazes and 1 for the ender dragon. Otherwise 0
2014-03-11Unified Vector classesandrew32-401/+300
2014-03-11Using ```const Vector3i &```STRWarrior2-3/+3
2014-03-12Renamed cBlockArea Offset to WEOffset.madmaxoft3-8/+9
Even in getters / setters.
2014-03-11Renamed m_Offset to m_WEOffsetSTRWarrior3-8/+9
2014-03-10Fixed xofts issuesTycho4-20/+14
2014-03-10Removed debugging output.madmaxoft1-1/+3
Kept it commented-out for later revisions, if needed.
2014-03-10Fixed test assertsTycho4-37/+37
2014-03-10Revert "Fixed some warnings"madmaxoft1-10/+7
This reverts commit 4cb0b82d1df560ad32c92eede91f466c75a87c87.
2014-03-10Fixed assertTycho1-14/+17
2014-03-10Fixed Alignment issue in ByteBufferTycho3-7/+4
2014-03-10Shrapnel now configurableTiger Wang3-3/+8
2014-03-10Removed Some unnessicary macrosTycho3-21/+2
2014-03-10Use string.reserve to avoid the need to do inplace byteswapTycho1-10/+6
2014-03-10Fixed compileTiger Wang1-1/+2
2014-03-10Removed unused macro from WSSCompactTycho1-1/+0
2014-03-10Fixed alignment issues in Fireworks SerializerTycho1-7/+7
2014-03-10Removed unused macroTycho1-13/+0
2014-03-10Fixed cast to type with different alignment in BlockingTCPLinkTycho1-1/+1
2014-03-10Fixed cast between types of different alignment in cSocketTycho1-1/+2
2014-03-10Fixed MTRand warningsTycho1-4/+4
2014-03-10This allows a blockarea to have an Offset.STRWarrior3-0/+47
2014-03-10POCPieces: Added height.madmaxoft1-17/+20
Now the pieces connect in different heights, too, creating a true 3D maze.
2014-03-10Fixed MSVC2008 compilation.madmaxoft1-4/+4
2014-03-09Removed uneeded meta obtainTiger Wang1-3/+1
2014-03-09A working POCPiece generator.madmaxoft5-6/+359
2014-03-09Hardened cCuboid with asserts for its assumptions.madmaxoft2-3/+11
2014-03-09ChunkDef: Replaced enums with static const ints.madmaxoft1-10/+6
This makes them easier to use in std::min et al.
2014-03-09Added cCuboid::Engulf().madmaxoft2-0/+37
2014-03-09Be more parinoid about int sizesTycho3-5/+18
2014-03-09cPieceGenerator: New connectors are added to the free pool.madmaxoft2-9/+30
2014-03-09Fixed Mesannine twister to use UInt32Tycho4-4/+6
2014-03-09Fix IsThread destructorTycho1-1/+1
2014-03-09Fixed #778 - stack overflow.comTiger Wang1-1/+1
2014-03-09Globals.h is now warnings free again.Tycho2-10/+24
Also turned off Wpadded as it is indicates potental performance issues rather than potential bugs
2014-03-09Its a const not a macroTycho1-1/+1
2014-03-09Take 5Tycho1-1/+1
2014-03-09Silenced useless MSVC warnings in cMetaRotater.madmaxoft1-0/+21
2014-03-09Take 4Tycho1-1/+1
2014-03-09Hotfix for MSVC compilation.madmaxoft1-0/+1
2014-03-09Unsigned types take 3Tycho1-1/+1
2014-03-09Fix gcc error attempt 2Tycho1-1/+1
2014-03-09Fixed gcc errorTycho1-1/+1
2014-03-09Fixed VERIFYTiger Wang1-1/+1
2014-03-09Beds now work properly fixes #707Tiger Wang5-17/+94
Also fixes FS392 Conflicts: src/Blocks/WorldInterface.h src/ClientHandle.cpp
2014-03-09!= FACE_NONETiger Wang1-1/+1
2014-03-09PieceGenerator can connect two connectors of the same type.madmaxoft2-60/+338
Also added extensive debugging output and a test.
2014-03-09Added BlockFaceToString() translation function.madmaxoft1-0/+20
2014-03-09Added Vector3i::Move().madmaxoft2-17/+82
2014-03-09Added the first skeleton code for PieceGenerator.madmaxoft2-0/+545
This is a WIP and won't work / isn't used at all.
2014-03-09Hexified coloursTiger Wang1-16/+16
2014-03-09Fixed data length issuesTiger Wang2-3/+4
2014-03-09Demonstrated issues with GetDataLength()Tiger Wang2-5/+11
2014-03-09Improved formatting of username tabcompleteTiger Wang1-7/+7
2014-03-09Moved firework handler to separate functionTiger Wang2-48/+48
* Also simplified and improved readability of code
2014-03-09CheckBlockInteractionsRate() fixed & enabledTiger Wang4-65/+23
2014-03-09Fix Linux compileTiger Wang1-2/+3
2014-03-09Fixed some warningsTycho1-7/+10
2014-03-09FIxed int in testTycho1-1/+1
2014-03-09Adjusted style of switch/caseJan-Fabian Humann3-45/+15
2014-03-09TNT explodes when consumed by fireTiger Wang1-6/+19
Fixed FS#406
2014-03-09Slight plugin messaging changesTiger Wang1-0/+13
- Clients are not allowed to register duplicate channels - Clients are not allowed to use channels that were not registered
2014-03-08Added staticTycho1-1/+1
2014-03-08Added tons more asserts to bytebufferTycho1-7/+17
2014-03-08Enabled self test of bytebufferTycho1-1/+1
2014-03-08Changed if-else to switch-caseJan-Fabian Humann3-39/+33
2014-03-08Split cClientHandle::HandleEntityAction() into three seperate functions HandleEntityCrouch, HandleEntityLeaveBed and HandleEntitySprinting.Jan-Fabian Humann5-32/+98
2014-03-08Fixed issues with int vs size_t and a few other warningsTycho10-28/+26
2014-03-08Actually Fixed ByteBufferTycho1-3/+3
2014-03-08Moved returnsworktycho1-3/+3
2014-03-08Change TNT Fuse to ticksHowaner9-21/+20
2014-03-08cBlockInfo-related changes from #723andrew3-11/+21
2014-03-08Add TNT Save/Load and add Netbeans projects to .gitignoreHowaner6-18/+78
2014-03-07Fixed cBlockArea schematic string saving signature.madmaxoft3-9/+12
2014-03-07Move env code part 1worktycho1-10/+0
2014-03-07Added support to overide CMake build type with env varsTycho1-0/+8
2014-03-07WarningsTycho2-1/+3
2014-03-07WarningsTycho11-29/+42
2014-03-07Added some commentsandrew2-1/+6
2014-03-07Fixed warningsTycho2-3/+21
2014-03-07Fixed warningsTycho3-1/+5
2014-03-07Fixed a typo.madmaxoft1-4/+4
2014-03-07Fixed water/lava interactionandrew3-4/+69
2014-03-07Add Lua Bindings for FlowerPotEntity.h and add documentation.Howaner10-14/+18
2014-03-07Added cBlockArea serialization to string.madmaxoft3-38/+202
Fixes #665.
2014-03-07Add Flower PotsHowaner17-87/+401
2014-03-06Fix commentHowaner1-1/+1
2014-03-06Broadcast the Equipped Item, if the Slot is changed.Howaner1-0/+6
2014-03-05Added extra awesomeness to TNTTiger Wang7-209/+232
+ TNT now has a chance of flinging FallingBlock entities around * Improved TNT damage * Improved TNT spawning visuals * Possible fix for 'SetSwimState failure' messages in debug
2014-03-05Add SendBlockTo to cWorldInterfaceHowaner9-10/+18
2014-03-05Set tnt step sound to step.grassHowaner1-1/+1
2014-03-05Add data backsending, when the Client interacts a Block and the Interact is cancelled.Howaner10-6/+102
2014-03-05Implemented vanilla-like fluid simulatorandrew6-17/+238
2014-03-04Fixed some gcc warnings in Defines.h.madmaxoft1-3/+3
2014-03-04Manually exported cCompositeChat modifiers.madmaxoft2-7/+268
This adds chaining support to them. Fixes #755.
2014-03-04cLuaState: Made public the GetStackValue() functions.madmaxoft2-54/+61
2014-03-04Fixed an assert in map-loading.madmaxoft1-3/+1
The maps were loaded too soon, the world wasn't initialized yet.
2014-03-03Fixed previous weather changes.madmaxoft2-4/+5
cWorld::GetDefaultWeatherInterval() returns -1 for unknown weather.
2014-03-02Removed if conditionandrew1-4/+1
2014-03-02ReformattedTycho10-20/+20
2014-03-02Reformated MetaRotaterTycho1-19/+30
2014-03-02Add cancelling to WeatherChanging event.Howaner2-13/+43
2014-03-02cBlockInfo now manages the respective cBlockHandlerandrew11-73/+70
2014-03-02Fixed MSVC warnings in DeprecatedBindings.madmaxoft1-8/+76
2014-03-02More documentation (thanks to madmaxoft) and use GetBlockTypeMetaHowaner2-6/+10
2014-03-02Added blockface mirroring and rotating.madmaxoft1-0/+50
2014-03-02Add Trapdoor Functions to cWorld and fix Trapdoor Redstone BugsHowaner4-6/+49
2014-03-02GetById => Getandrew3-22/+22
2014-03-02Creeper fixestonibm192-10/+34
- Fixed explosion time (1.5s, according to minecraftwiki) - Creeper explodes if right clicked with flint and steel
2014-03-02Reverted BlockVineworktycho1-3/+27
2014-03-02Removed g_BlockXXX arraysandrew4-440/+4
2014-03-02Manually exported g_Block tablesandrew4-0/+445
2014-03-02Exported cBlockInfoandrew2-3/+9
2014-03-02Added more documentation for FastNBT parser.madmaxoft1-3/+45
2014-03-01ChunkDesc warns about StructureGen's deprecation.madmaxoft1-0/+2
2014-03-01Unified StructureGens and FinisherGens.madmaxoft10-163/+128
Now they are all Finishers. Fixes #398.
2014-03-01g_BlockXXX => cBlockInfo::XXXandrew33-73/+91
2014-03-01Fixed errorsTycho2-2/+2
2014-03-01Revesed typedefTycho1-1/+1
2014-03-01Implemented RotationsTycho11-170/+28
2014-03-01Final implementation of MetaRotaterTycho1-45/+51
2014-03-01Refactored global block property arraysandrew2-0/+477
2014-03-01Exported cScoreboard::ForEachTeamandrew3-1/+34
2014-03-01Shortened enumsandrew4-58/+58
2014-03-01Exported cScoreboard::ForEachObjectiveandrew3-4/+43
2014-03-01Exported and documented cScoreboardandrew4-49/+70
2014-03-01Forgotten changes to cChunkInterface.madmaxoft1-2/+2
2014-03-01Removed cBlockHandler forward declaration from cChunkInterface.madmaxoft1-9/+22
Wasn't needed. Also reformatted the code.
2014-03-01Improved comments in float size check.madmaxoft1-2/+2
2014-02-28Use switch in GetStepSoundHowaner2-8/+6
2014-02-28Fixed multiple gcc warnings about unused params.madmaxoft7-5/+78
2014-02-28Documented the changes in cJukeboxEntity.madmaxoft1-2/+3
2014-02-28Moved common cGroupManager code to a separate function.madmaxoft3-12/+30
This fixes my concerns in PR #709.
2014-02-28Fix Double Slabs, fix Slab Meta and add more things to burnableHowaner3-13/+37
2014-02-28Better fix for the 32-bit float reading.madmaxoft1-4/+5
2014-02-27Removed unneeded includes in Player.cppTiger Wang1-7/+0
2014-02-27Fixed compileTiger Wang2-3/+2
2014-02-27added mooshroom to cow conversiontonibm191-0/+2
2014-02-27Added some Metadate rotaters using templated MixinTycho10-16/+168
2014-02-27Added a "nooutbuf" cmdline param.madmaxoft2-13/+18
This forces that the stdout stream uses no buffer, even when not a TTY. Used for running MCServer under ZeroBraneStudio.
2014-02-27Fixed crash and some warnings in map handling.madmaxoft2-3/+5
Fixes #728.
2014-02-27Fixed sheep ASSERTing sometimesTiger Wang1-8/+18
2014-02-27Implemented ballistic missiles (fireworks)Tiger Wang14-84/+591
+ Added fireworks
2014-02-26Fixed a gcc warning in FastNBT.h.madmaxoft1-2/+11
2014-02-26Attempted fix for several GCC warnings.madmaxoft3-3/+15
2014-02-26Added more utility functions to cCuboid.madmaxoft2-4/+105
GetVolume(), Expand(), ClampX(), ClampY(), ClampZ()
2014-02-24Added useful parameter overloads to cBlockArea Lua API.madmaxoft2-0/+133
2014-02-24Fixed tolua export for Byte.madmaxoft1-0/+7
No longer treated as an unknown class.
2014-02-24Fixed compilation in MSVC (forward class definitions).madmaxoft2-0/+2
2014-02-24BlockEntities is warnings freeTycho6-3/+11
2014-02-24Fixed Formatting, added compiler warning suppressing methods, fixed commentsTheJumper5-3/+6
2014-02-24Fixed MCServer not compiling with C++03 compilersSTRWarrior3-12/+12
2014-02-24Small improvements to boats.STRWarrior1-3/+7
2014-02-24Removed an unused member variable from cChunk.madmaxoft2-8/+0
2014-02-24Fixed crash in cBlockArea rotation.madmaxoft1-6/+6
Fixes #720.
2014-02-24Fixed a possible crash in cWorld::WakeUpSimulatorsInArea().madmaxoft1-0/+4
The Y coords weren't checked.
2014-02-23fixed globals.h warningsTycho3-2/+11
2014-02-23Use the ItemCategorie::IsSword() Method.Howaner2-20/+1
2014-02-23No Sword Block Destroying in Creative ModeHowaner2-0/+29
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper29-40/+515
2014-02-23BlockBed.cpp: Fixed Multiple people in one bed.TheJumper1-7/+18
OnUse in BlockBed.cpp now checks whether bit flag 0x4 in the Data values of the bed is set before somebody can try to sleep in the bed.
2014-02-23Fixed bindings for cBlockArea:Get(Rel)BlockTypeMeta().madmaxoft2-29/+110
They no longer require the ghost output params.
2014-02-23Rename SkullEntity to MobHeadEntityHowaner23-256/+254
2014-02-23Add break to Protocol17x.cpp and use new comment delimiterHowaner2-7/+8
2014-02-23Add Heads completelyHowaner14-7/+154
2014-02-23Add Skulls/HeadsHowaner13-5/+354
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper25-81/+417
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper4-10/+17
2014-02-23Fixed Compiling IssuesTheJumper3-10/+31
2014-02-23Fixed Formatting, Added DropChance attributes to MonstersTheJumper10-35/+248
2014-02-23Added cBlockArea::GetVolume, exported to Lua API.madmaxoft1-27/+30
2014-02-23Maps: Improvementsandrew7-13/+26
2014-02-23Added cBlockArea:GetSize() and :GetOrigin() to Lua API.madmaxoft1-0/+64
These don't have a direct C++ equivalent, but are rather useful for the plugins.
2014-02-23Finally corrected the Enchantment constants.TheJumper18-50/+17
2014-02-23Manually exported DoWithMapandrew4-2/+11
2014-02-23Documented and exported cMapManagerandrew2-3/+6
2014-02-22Changed formatting againTheJumper1-1/+1
2014-02-22Changed formatting, encapsuled armor drop, introduced better static Enchantment IDsTheJumper10-56/+80
2014-02-22Documented and exported cMapandrew3-9/+53
2014-02-22Fixed Looting segment fault - a_Killer can be NULLTheJumper17-19/+83
2014-02-22Semi-working implementation of cMap::UpdatePixelandrew2-11/+95
2014-02-22Mooshroom.cpp: Added right click interactionTheJumper2-1/+38
2014-02-22Monster.h: Added doxy-comments for drop methodsTheJumper1-0/+3
2014-02-22Monster.cpp: Fixed Formatting in AddRandomUncommonDropItemTheJumper1-1/+1
2014-02-22Changed killer detection by using cEntity methodsTheJumper3-3/+3
2014-02-22Added static Enchantment Constants, Replaced cryptic Looting IDTheJumper18-17/+49
2014-02-21Better Jukebox APIHowaner3-16/+52
2014-02-21Fixed Mob Drops, Add Rare and Uncommon Drops, Looting inflicts DropsTheJumper23-37/+144
2014-02-21Remove users.ini generation in Player.cpp and use the CheckUsers() FunctionHowaner1-6/+1
2014-02-21Remove old Output FinishHowaner1-2/+0
2014-02-21Unicode :-(Howaner1-1/+1
2014-02-21Add 'Group not found', when the Server load the users.ini and add auto generate from users.iniHowaner5-2/+61
2014-02-21Split cMap::UpdateClientandrew2-73/+114
2014-02-20cClientHandle manages the client-registered plugin channels.madmaxoft2-36/+123
Fixes #706.
2014-02-20Removed problematic utf8.madmaxoft1-2/+2
2014-02-20Bad UTF-8 o.OHowaner1-2/+2
2014-02-20Remove typeinfo import in IncrementalRedstoneSimulatorHowaner1-2/+0
2014-02-20Fix CauldronHowaner1-8/+11
2014-02-20Add Wolf Heal with FoodHowaner1-10/+34
2014-02-20Disabled the leak finder.madmaxoft2-2/+6
2014-02-20Add Pressure Plate SoundHowaner1-0/+9
2014-02-20Add Light weighted pressure platesHowaner3-10/+24
2014-02-20Add Hay Bale to BurnableHowaner1-0/+1
2014-02-20Add 'Meta < 3' to CauldronHowaner1-5/+8
2014-02-20BlockBed.cpp: Fixed space at if statementTheJumper1-1/+1
Added a space after an if statement and before the first bracket to keep up code conventions.
2014-02-20BlockBed.cpp: Fixed Multiple people in one bed.TheJumper1-7/+18
OnUse in BlockBed.cpp now checks whether bit flag 0x4 in the Data values of the bed is set before somebody can try to sleep in the bed.
2014-02-20Thread safe cMap managerandrew7-17/+275
2014-02-20Fixed bindings for cBlockArea:Get(Rel)BlockTypeMeta().madmaxoft2-29/+110
They no longer require the ghost output params.
2014-02-19cMapDecorator: Implemented random rotationsandrew2-13/+18
2014-02-19Add BlockNewLeaves.h and rename Darkoac to DarkoakHowaner5-15/+57
2014-02-19Add new Trees (without Generator)Howaner6-0/+34
2014-02-19Rename SkullEntity to MobHeadEntityHowaner23-256/+254
2014-02-19Documented cMapandrew3-7/+31
2014-02-19Add break to Protocol17x.cpp and use new comment delimiterHowaner2-7/+8
2014-02-18De-breaked stuffTiger Wang1-2/+0
2014-02-18Fixed possible ASSERT failureTiger Wang1-1/+1
2014-02-18Changed BlockFace type to eBlockFaceTiger Wang3-26/+27
2014-02-18Add Heads completelyHowaner14-7/+154
2014-02-18Map decorators; Map clientsandrew12-45/+351
2014-02-18The cuboid for cWorld::SetAreaBiome() doesn't need sorting.madmaxoft2-2/+7
2014-02-18Added cWorld:SetAreaBiome() API function.madmaxoft6-3/+164
Fixes #675.
2014-02-18Added a bit more documentation to cForEachChunkProvider.madmaxoft2-5/+33
2014-02-18Added a braceTiger Wang1-0/+2
==== { } { __ } { | | } ==== REMOVE ALL THE BRACES!!
2014-02-18Properly exported and documented paintingsTiger Wang3-2/+4
2014-02-18Added an explanatory commentTiger Wang1-0/+2
2014-02-18Comments & new BLOCK_FACE constantsTiger Wang1-7/+10
2014-02-18Implemented paintings, fixes #689Tiger Wang15-3/+226
+ Implemented paintings
2014-02-18Used new BLOCK_FACE constantsTiger Wang1-7/+8
Also added more comments
2014-02-18Implemented item frames, a part of #689Tiger Wang7-2/+233
+ Implemented Item Frames * Fixed Pitch and Yaw being wrongly flipped in the protocol (XOFT!)
2014-02-17Added cPluginManager:GetPluginsPath() to the Lua API.madmaxoft2-1/+5
2014-02-17Add Lua plugin path to package.path and .cpath.madmaxoft3-0/+37
Fixes #693.
2014-02-17Add Skulls/HeadsHowaner13-5/+354
2014-02-17Improved formattingtonibm191-2/+2
2014-02-17Map item handler; Fixed several bugsandrew13-29/+195
2014-02-17Fixed a memory leak in CompositeChat.madmaxoft1-0/+3
2014-02-16Links sent via chat messages are clickable.madmaxoft4-9/+34
Fixes #658.
2014-02-16Implemented cCompositeChat::ParseText(), incl. self-test.madmaxoft2-1/+211
2014-02-16Fixed cBoundingBox self-test code-style.madmaxoft1-10/+10
Also made the class name unique and the global variable static, to avoid linkage problems with other self-tests
2014-02-16Now mobs can't escape from fences.tonibm191-2/+2
2014-02-16Fixes to previous commitTiger Wang1-9/+10
2014-02-16Slight cleanup of wolf codeTiger Wang1-23/+7
2014-02-16Fixed minor formatting issues from #682Tiger Wang3-16/+3
- Removed unused PlaySoundEffect * Simplified and parenthesised code
2014-02-16Add Locale to ClientHandleHowaner5-3/+11
2014-02-16Fixed a glaring bug with chunk cross-simulatingTiger Wang1-9/+17
* A chunk's redstone blocks list is no longer touched if AddBlock was being called with another chunk's coordinates * Fixed chunk boundary checks
2014-02-16Replace random Float Generation and broadcast the Exp Pickup SoundHowaner2-9/+4
2014-02-16Add Exp Bottle EffectsHowaner4-1/+23
2014-02-16Set max. Players in the Tablist to 60Howaner1-1/+1
2014-02-16Disable Hunger DeathHowaner1-1/+7
2014-02-15Removed the unnecessary LoopPlayersAndBroadcastChat() functions.madmaxoft4-23/+19
2014-02-15Implemented cCompositeChat.madmaxoft18-21/+671
This allows plugins to send composite chat messages, containing URLs, commands to run and cmdline suggestions. Fixes #678.
2014-02-15Added a 'default:' for SimChunk()'s switchTiger Wang1-0/+1
2014-02-15A fix and an improvementTiger Wang2-23/+43
* Fixed a special case with the wrong ChunkX/Z values being used to calculate a relative position * Simplified data structure adding and removing operations (no more pointers!) - Removed one character of whitespace :D
2014-02-15If a player is called "Notch" he drops an apple. http://minecraft.gamepedia.com/NotchSTRWarrior1-0/+6
2014-02-15cMap::UpdateRadiusandrew4-16/+121
2014-02-15Fixed TNT fizzing everywhereTiger Wang2-2/+2
2014-02-15Sizeable speed improvements to redstoneTiger Wang3-83/+127
+ Moved all simulator data into individual chunks * Cleaned up parameters for functions and some code * Fixed repeaters powering off faster than they power on The main issue before was that, although the redstone simulator stored blocks to be simulated in individual cChunks, other data, such as powered lists, and etcetera, were global regardless of which chunk was being simulated. Therefore, with worlds with lots of redstone, each tick saw the ticking of chunks, which themselves iterated through the entire dataset needlessly, creating LOTS of lag. Should be better now :)
2014-02-15Add more Sounds to Redstone SimulatorHowaner1-1/+23
2014-02-15Add Fence Gate to Redstone SimulatorHowaner2-0/+31
2014-02-15Fixed typographical errorTiger Wang1-2/+1
2014-02-15Removed debug messages againTiger Wang1-6/+0
2014-02-15Exported cWorld::BroadcastParticleEffect.STRWarrior1-1/+1
2014-02-14EmptyMap item handlerandrew3-4/+52
2014-02-14Send map when selectedandrew7-27/+114
2014-02-13Added proper debug messagesTiger Wang1-3/+8
2014-02-13Fancy stuff with constant referencesTiger Wang1-2/+2
2014-02-13IDCount Serializationandrew7-3/+191
2014-02-13Implementation of in-game mapsandrew13-0/+596
2014-02-12Added more missing GetClassStatic()sTiger Wang2-0/+4
2014-02-12Removed some unneeded BroadcastWholeWindow()sTiger Wang4-23/+2
2014-02-12Changed inheritance a bitTiger Wang8-33/+54
* cBlockEntityWithItems now inherits from cBlockEntityWindowOwner
2014-02-12Made player jump reset less ambiguousTiger Wang1-1/+2
2014-02-12Simplified Attack() tracingTiger Wang1-1/+6
2014-02-12Fixed #573STRWarrior1-4/+4
2014-02-12Improved pressure platesTiger Wang2-1/+5
+ Two (or more) pressure plates can be triggered at the same time * Fixed issues caused by pressure plates not being in the sources list
2014-02-11Fixed #190Tiger Wang1-2/+67
+ Hoppers now collect pickups above them
2014-02-11Fixed #627Tiger Wang5-21/+12
- Attack() is now called from cAggressive instead of cMonster * Monsters can no longer attack through walls * Should fix last remnants of player damage after teleporting (that both STR and bearbin contributed fixes to :P)
2014-02-11Fixed #612Tiger Wang2-0/+16
* Chests send contents updates to client
2014-02-11Fixed formatting. Moved UnloadUnusedChunks from public to private.narroo2-4/+10
2014-02-11cWorld:ChunkStay() accepts nils as callbacks.madmaxoft1-5/+3
Also removed leftover debug logging.
2014-02-11Added cLuaState::CheckParamFunctionOrNil().madmaxoft2-2/+37
Also fixed error reporting for the two function-checking functions.
2014-02-11Fixed formatting of previous commit.narroo2-2/+7
2014-02-11More gcc warnings fixed.madmaxoft2-4/+5
2014-02-11Made cChunkStay's destructor virtual.madmaxoft1-1/+1
2014-02-11Fixed gcc warnings in Item.h.madmaxoft1-21/+21
2014-02-11Fixed nested plugin function calls.madmaxoft1-6/+9
2014-02-11Fixed bug #385. UnloadUnusedChunks now has the same interface asnarroo2-1/+25
SaveAllChunks. Meaning, QueueUnloadUnusedChunks and the supporting cTaskUnloadUnusedChunks has been added. Use QueueUnloadUnusedChunks from now on to prevent deadlocking.
2014-02-10Added LuaChunkStay to Bindings sources.madmaxoft1-36/+47
This should fix *nix compilation. Also alpha-sorted the lists.
2014-02-10Rewritten Lua ChunkStay API into a single function, cWorld:ChunkStay().madmaxoft9-87/+213
This fixes problems with indeterminate class object lifespan (Lua-GC) and forgetting to disable it or keep it until ready.
2014-02-10cLuaState: Stack traces don't include ghost 0-th element.madmaxoft1-1/+1
2014-02-10Added cPluginLua::cOperation.madmaxoft1-1/+27
This class should be used to lock-and-access the plugin's LuaState. cPluginLua::GetLuaState() is unsafe and by this commit obsolete.
2014-02-10Added additional parenthasiesworktycho1-2/+1
2014-02-10Fixed stupid mistax in conditionalworktycho1-2/+1
boats can't be placed if the face is not block_face_none and not block_face_YM, not if it is only not one.
2014-02-10Maybe fixed boat placingtonibm191-1/+1
2014-02-09First working version of cLuaChunkStay.madmaxoft4-17/+92
It works, but has random failures, probably due to threading issues.
2014-02-09Initial Lua cChunkStay export.madmaxoft4-1/+123
2014-02-09cLuaState::cRef can be unbound and re-bound.madmaxoft2-9/+60
This will allow us to store Lua references as member variables in classes and initialize those later than in the constructor.
2014-02-09Added AllToLua.pkg to MSVC project files.madmaxoft1-0/+2
MSVC ignores the file when compiling and it makes it easier to open it up for editing.
2014-02-09Fixed compile and some warnings in MSVSTiger Wang7-17/+6
2014-02-09"reload" is back.STRWarrior1-0/+7
2014-02-09Split "reload" in "reloadplugins" and "reloadgroups".STRWarrior1-2/+5
2014-02-09Fixed a boat ASSERTTiger Wang1-2/+8
2014-02-09The console reload command also reloads the groups.STRWarrior1-0/+1
2014-02-08Moved a forgotten comment back to its place.madmaxoft1-2/+2
2014-02-08Fixed lighting thread queueing.madmaxoft1-2/+4
2014-02-08Fixed ChunkStay initialization.madmaxoft1-1/+1
2014-02-08Fixed gcc compilation.madmaxoft1-1/+1
2014-02-08Initial ChunkStay code.madmaxoft11-406/+560
2014-02-08Fixed cWorld:TryGetHeight() API.madmaxoft1-1/+5
2014-02-08Fixed comment.STRWarrior1-1/+1
2014-02-07Renamed cRedstoneManager to cRedstoneSimulator and renamed cRedstoneSimulator to cIncrementalRedstoneSimulator (Might change later).STRWarrior10-1826/+1822
2014-02-07Fixed some end of linesSTRWarrior2-2/+2
2014-02-07Implemented an easy way of adding new redstone simulators.STRWarrior6-9/+122
Also added a "noop" redstone simulator that does the same as the fluid version.
2014-02-07Moved Gamemode setting into General root tagTiger Wang1-1/+1
2014-02-07Added sender name to PM if prefixes disabledTiger Wang2-2/+2
* Also moved the PVP setting into Mechanics
2014-02-07Improved chat messaging functionsTiger Wang9-111/+155
* Moved string manipulation into cClientHandle and therefore... + Added configuration option for prefixes. * Cleaned up code. * Updated documentation for API.
2014-02-07WebAdmin is stopped properly on server shutdown / restart.madmaxoft3-36/+55
Fixes #272.
2014-02-07Fixed wiki link in auto-generated settings.ini.madmaxoft1-1/+2
2014-02-06Server internally uses new functionsTiger Wang4-17/+13
2014-02-06Added more chat functionsTiger Wang4-27/+46
2014-02-05Change Output to stderrworktycho1-4/+3
2014-02-05Removed deprecated HasCommand functionSTRWarrior4-36/+1
2014-02-05Modified automatic test for boundingBoxTycho1-7/+26
2014-02-05Simplified shutdownTycho1-4/+0
2014-02-05Added support to start up MCServer and then immediatly sut it down in travisTycho1-0/+4
2014-02-05Fixed most of the reordering warningsTycho12-33/+33
2014-02-05Forgot extra lines.STRWarrior1-0/+4
2014-02-05Improvements:STRWarrior6-22/+69
Adds a function in cRoot that allows you to reload all the groups permissions. Note: Players don't automatically load their new permissions. You can use cPlayer::LoadPermissionsFromDisk for that.
2014-02-05Improved the signedness conversion.madmaxoft1-2/+2
2014-02-05Reduced max explosions per tickTiger Wang1-1/+1
2014-02-05Fixed explosions bugTiger Wang3-32/+13
* Fixed bug where explosions would sometimes never be sent
2014-02-05Fixed annoying creative on fire bugTiger Wang2-0/+20
2014-02-05Added cPluginManager:LogStackTrace() to the Lua API.madmaxoft1-0/+11
Fixes #637.
2014-02-05Fixed a bunch of MSVS warningsTiger Wang6-7/+8
* Possibly also fixed some bugs with pathfinding and TNT, though unlikely
2014-02-04Added more SendMessageXXX() functionsTiger Wang3-47/+62
2014-02-04Crypto: Removed unused member, fixed gcc warning.madmaxoft2-6/+4
2014-02-04Added dtExplosion to damage<->string functions.madmaxoft1-1/+2
2014-02-04Protocol 1.7: Fixed a signed / unsigned comparison warning.madmaxoft1-2/+2
2014-02-04Fixed a gcc warning in ManualBindings.madmaxoft1-2/+2
Constructor member order...
2014-02-04Removed a useless check in cLuaState.madmaxoft1-3/+1
2014-02-04Fixed a warning in cItem in gcc.madmaxoft1-1/+1
Constructor member order...
2014-02-04Protocol 1.7 uses char for blockface.madmaxoft1-2/+2
That should fix #644 on RasPi.
2014-02-04Fix gcc not having operator ++ on enumsTycho1-6/+7
2014-02-04Improved Type safety of eBlockFaceTycho76-174/+194
May Fix #640
2014-02-04Fixed chest placement.madmaxoft1-2/+4
Fixes #624.
2014-02-04Blank lines and indentation.tonibm191-0/+4
Also removed GetClosestPlayer documentation
2014-02-04Fixed calling plugins with userdata params.madmaxoft1-0/+1
2014-02-04Removed a leftover debug message.madmaxoft1-1/+0
2014-02-04Fixed error handling in cPluginManager:CallPlugin() API.madmaxoft1-2/+5
Fixed: When the called function malfunctioned, the entire plugin's call was aborted.
2014-02-04Improved error resistance in cPluginManager:CallPlugin().madmaxoft1-0/+8
Fixed: If the call failed, all the next plugin calls would fail as well.
2014-02-03Greatly improved TNT propulsion chancesTiger Wang1-1/+1
2014-02-03Pickup constructor no longer exportedTiger Wang3-4/+8
It didn't do anything without Initialize() exported, anyway, pickups are spawned with cWorld.
2014-02-03Added SendMessageXXX() to cPlayerTiger Wang2-1/+72
As requested by @bearbin, one no longer needs to download a file that links to Core. The server does it! Hopefully this encourages standards compliance.
2014-02-03Partial fix for #130Tiger Wang1-0/+1
2014-02-03Fixed #491Tiger Wang1-2/+14
2014-02-03Fixed a crash bugTiger Wang2-11/+5
2014-02-03Named the different quartz block.STRWarrior2-1/+6
2014-02-03Fixed #626Tiger Wang3-13/+38
* Fixed consumption of carrots and potatoes
2014-02-03Fixed issues with farmlandTiger Wang2-1/+3
* Fixed farmland reversion checks not taking into account carrots and potatoes * Fixed #623
2014-02-03Server now handles join messages alsoTiger Wang2-10/+18
* Revised as well hook documentation
2014-02-03Fogot to save BiogenTycho1-4/+4
2014-02-03Fixed Compile errorsTycho3-6/+6
c++11 introduces scoped enums, so the code didn't fail in clang
2014-02-03Removed unused lookupsTycho1-2/+0
2014-02-03Increased Type safety of BiomesTycho8-16/+31
Changed a number of funcictions from using integers to store biomes to using EMCSBiome Note that switching from an int to an Enum is a non-breaking chang to the lua bindings
2014-02-03Not exporting FindClosestPlayertonibm191-1/+1
2014-02-03Fixed compilationtonibm191-1/+0
2014-02-03Exporded World:FindClosestPlayer, Item:IsEnchantable and Monster:MoveToPosition to Lua APItonibm196-3/+13
2014-02-03Fixed some issues.STRWarrior1-1/+2
Meta wasn't set if the block wasn't a pillar. Fixed typo.
2014-02-03Renamed cBlockQuartsHandler to cBlockQuartzHandler. Fixed not being able to place normal quartz blocks.STRWarrior2-4/+4
2014-02-03This renames the cBlockWoodHandler to cBlockSidewaysHandler, and implements a new cBlockQuartzHandler to handle the quartz pillars.STRWarrior3-5/+74
2014-02-03Fixed socket leaking.madmaxoft1-0/+5
2014-02-03Inversed conditionTiger Wang1-25/+28
2014-02-03SocketThreads: Fixed sending to closed socket.madmaxoft1-1/+6
2014-02-03Groups.ini can contain spaces around commas in values.madmaxoft1-21/+25
This includes Permissions, Inherits and Commands. Also fixed an unlikely but possible crash with group colors.
2014-02-02Fixed multiple invalid permission nodesTiger Wang1-2/+2
New players can build as default now
2014-02-02Fixed #624Tiger Wang2-0/+7
2014-02-02Added IsBlockWaterOrIce()Tiger Wang2-10/+12
2014-02-02Uncommented pickup spawner codeTiger Wang1-3/+7
2014-02-02Revert "Added LOGREPLACELINE for line replacement"Tiger Wang5-94/+16
This reverts commit 7d03876a3e11aedff0201a8330bfdb2b5523fc5e.
2014-02-02Revert "Improved code"Tiger Wang4-19/+13
This reverts commit d8aa0b0ec7a2ebea2fc157c623ae8cd7d0b6ba1c.
2014-02-02Revert "Added a comment"Tiger Wang1-1/+1
This reverts commit 7ae5631d89426df6f05b6c8ba656ba02b9d15f93.
2014-02-02Revert "Properly initialised variables"Tiger Wang4-13/+10
This reverts commit 02e752789399ad1b65a0443534ea6a8721efd78c.
2014-02-02Revert "Fixed issues with insufficient console space"Tiger Wang3-114/+29
This reverts commit 6b18add09b5e9d6d6c2a61e90bdd7011f56f4c82.
2014-02-02Revert "A newline issue is resolved"Tiger Wang2-1/+3
This reverts commit 397208145ebe5c95ebf32f2985f6800634932230.
2014-02-02Revert "Fixed Linux compile"Tiger Wang1-2/+1
This reverts commit 5becfe850a2b4827a21e8ede989545334efbbead.
2014-02-02Revert "Another Linux fix"Tiger Wang1-6/+0
This reverts commit 6f660b379ecbc091b9bd92093e0dad01a4f6bf38.
2014-02-02Revert "Again improved LogReplaceLine"Tiger Wang2-80/+77
This reverts commit dd325d742db9db54a25460fcacd093e7cc6f44f0.
2014-02-02TNT improvementsTiger Wang2-37/+116
+ Added entity damage + Added entity propulsion * Fixed #67 and fixed #230
2014-02-02Possibly fixed #618Tiger Wang1-2/+2
2014-02-02Fixed dark oak and acacia placement.madmaxoft1-0/+1
Fixes #621.
2014-02-02Added missing filesTycho3-0/+39
2014-02-02Changed Signiture of OnUpdateTycho20-37/+65
2014-02-02Creative players take Plugin damageTiger Wang2-3/+4
2014-02-02Fixed #620Tiger Wang1-1/+2
2014-02-02Added saving of angry flag.Kirill Kirilenko2-0/+7
2014-02-02Fixed sitting tag.Kirill Kirilenko2-5/+5
2014-02-01Again improved LogReplaceLineTiger Wang2-77/+80
* Fixed issues on Linux with cursor positioning * Made preprocessor blocks more readable * Improved reliability of line clearing on Windows - Removed an *unneeded* variable
2014-02-01Added checks for ice into IsBlockWater()Tiger Wang2-3/+10
* This fixes players spawning in vast oceans of ice, as opposed to the previous water
2014-02-01Split cCoord template into one and two data typesTiger Wang2-12/+34
2014-02-01Monster's nominal speed was increased.Kirill Kirilenko1-1/+1
2014-02-01Changed Signiture of OnDiggingTycho4-7/+7
2014-02-01Fixed teleport to air, if owner is flying.Kirill Kirilenko1-0/+1
2014-02-01Added saving of collar's color.Kirill Kirilenko2-4/+11
2014-02-01Changed Signiture of OnDestroyedByPlayerTycho12-16/+27
2014-02-01Removed register keyword from Messinne TwisterTycho1-26/+26
Removed register as it is meaningless in c++ and causes a depreciated warning in clang 3.4 in c++ mode for va_copy
2014-02-01Changed pointers to referencesTycho60-249/+247
2014-02-01Removed "player destroying" hookdaniel09166-48/+1
2014-02-01added EnchantItemPacket to older Protocolsdaniel09161-1/+4
2014-02-01Another Linux fixTiger Wang1-0/+6
2014-02-01Fixed Linux compileTiger Wang1-1/+2
2014-02-01A newline issue is resolvedTiger Wang2-3/+1
2014-02-01Changed signitures of Several BLockHandler MethodsTycho55-196/+209
Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
2014-02-01Fixed issues with insufficient console spaceTiger Wang3-29/+114
2014-01-31Properly initialised variablesTiger Wang4-10/+13
2014-01-31Some updates for enchanting (2)daniel09169-15/+173
2014-01-31Added reading saved state of the wolf (sitting or standing).Kirill Kirilenko1-0/+6
2014-01-31Inversed condition.STRWarrior1-1/+1
2014-01-31Wolf: If Owner tag is missing a normal ownerless wolf will spawn.STRWarrior1-9/+6
2014-01-31Fixed cLineBlockTracer:Trace() signature.madmaxoft1-13/+27
2014-01-31Added cPluginManager:BindCommand() form to the API.madmaxoft1-1/+4
That's the canonical way to call static functions.
2014-01-31Added cChunkDest::UpdateHeightmap()madmaxoft2-17/+48
This function is necessary for plugins manipulating the generated chunks, they need to update the heightmap before it is passed back to the generator.
2014-01-31Added a commentTiger Wang1-1/+1
2014-01-31Improved codeTiger Wang4-13/+19
* Fixed some issues * Fixed standard violation
2014-01-30Fixed bad variable.STRWarrior1-1/+1
2014-01-30Check if the tag is found.STRWarrior1-0/+5
2014-01-30Fixes #606STRWarrior2-2/+9
2014-01-30Attempt at implementing #563tonibm191-2/+1
Not tested (I don't have RasPi)
2014-01-29Lua: Fixed an error in table-functions callbacks.madmaxoft1-1/+5
2014-01-29Added LOGREPLACELINE for line replacementTiger Wang5-16/+94
2014-01-29Fixed redstone simulator crash found in #570Tiger Wang3-18/+25
2014-01-29Did what xoft saidtonibm194-5/+3
2014-01-29Rewritten code.tonibm1912-152/+25
Implemented xoft suggestion. Using MoveToPosition as tigerw suggested.
2014-01-29Fixed sheeptonibm191-18/+17
2014-01-29Fixed a copypasta error...tonibm194-1/+5
2014-01-29Now mobs follow you when holding their breed itemtonibm1910-5/+153
2014-01-29Limited sign lines to 15 chars.madmaxoft1-4/+5
Fixes #598.
2014-01-29Plugin files are loaded in alphabetical order.madmaxoft1-17/+35
Except for the Info.lua file which gets loaded always last. Implements #597.
2014-01-29Removed debug message when a firework entity hit a solid block.STRWarrior1-2/+0
2014-01-29Bottle o' Enchanting spawns an experience orb.STRWarrior1-1/+2
2014-01-29Added 1.7.4 to the list of supported protocols.madmaxoft1-1/+1
2014-01-29Protocol 1.7: Encryption is enabled only with auth.madmaxoft1-1/+1
2014-01-28Protocol 1.7: Forced encryption on all connections.madmaxoft4-15/+120
This is for testing purposes only, to find bugs in the encryption. Once the encryption is deemed stable, it will be enabled only for servers with enabled Authentication.
2014-01-28Crypto: Added public key encryption / decryption.madmaxoft2-0/+106
2014-01-28Fixed an error in Crypto.madmaxoft1-2/+2
2014-01-28Fixed timing on *nix.madmaxoft2-2/+2
2014-01-28Renamed Farmer functions and added doxycommentsSTRWarrior2-17/+20
2014-01-28Villager: NoCountDown and Action function don't check VillagersShouldHarvestCrops anymore because it shoudn't even be activated anywhere.STRWarrior1-10/+0
2014-01-28Fixed a slight bug in RSA encryption code.madmaxoft1-2/+1
2014-01-27Villager doesn't check the environment for crops if it doesn't need to.STRWarrior1-0/+5
2014-01-27The world can now be configured wether farmers should be able to harvest crops.STRWarrior3-0/+14
2014-01-27Villager: Few more comments.STRWarrior2-4/+9
2014-01-27Squashed common code.madmaxoft1-14/+7
2014-01-27CleanupSTRWarrior2-31/+65
Most code in Tick is now split up in different functions.
2014-01-27Fixed Linux compilation.madmaxoft1-1/+2
2014-01-27Rewritten networking to use non-blocking sockets.madmaxoft4-62/+176
This fixes #592.
2014-01-27Villagers: Harvesting is more rare.STRWarrior1-1/+1
2014-01-27Villager: Farmers can't place crops on blocks other then farmland.STRWarrior1-1/+7
2014-01-27SIGABRT exits with failure.Tiger Wang1-0/+1
2014-01-27Fixed compiler error.STRWarrior1-1/+1
2014-01-27Villager: Farmer: Crops finding is more random.STRWarrior1-18/+19
2014-01-27Added GetCropsPos and DidFindCrops functions.STRWarrior1-0/+6
2014-01-27Villagers: Farmers now replant the crops.STRWarrior2-1/+17
2014-01-27Villagers: Fixed only gettings the crops block when farming.STRWarrior1-2/+2
2014-01-27Villagers don't look for new crops when they already found one.STRWarrior1-11/+9
Slight cleanup.
2014-01-27E_BLOCK_POTATOES isn't an solid block. Villagers were floating above them.STRWarrior1-0/+1
2014-01-27Villagers: Farmers can also harvest carrots and potatoes.STRWarrior2-9/+38
2014-01-27Makes farmers farm crops.STRWarrior2-1/+76
2014-01-26Fixed client packet parsing.madmaxoft2-15/+56
When the packet wouldn't fit the current buffer, the server would mis-parse the next packet. This was the cause for #541. Also modified comm logging, now each direction can be turned on separately.
2014-01-26cByteBuffer has more self-tests.madmaxoft1-6/+29
2014-01-26Item-loading now checks for weird bytes.madmaxoft1-3/+9
2014-01-26Fixed Byte-order reading.madmaxoft1-2/+4
The functions would fail on bytes that were above 127.
2014-01-26Added SIGABRT to catchers listTiger Wang1-1/+6
2014-01-26Removed cWorld IncludeTycho3-3/+0
2014-01-26Refactored GetPlacementBlockTypeMetaTycho7-11/+12
2014-01-26Refactored cBlockHandler::OnUse and dependentsTycho21-263/+310
2014-01-26Fixed bug where wolfs would teleport while they were sitting.STRWarrior1-1/+4
2014-01-26Small fix since the new AI and a new small feature.STRWarrior1-6/+27
You get particles when trying to tame wolfs. They don't walk anymore when they are sitting.
2014-01-26Fixed segmentation fault on villager damageTiger Wang1-1/+1
It occurred when attack was environmental.
2014-01-26Reduced unnecessary echoes (thanks xoft)Tiger Wang1-5/+3
2014-01-26Added support for overide in c++11 supporting varients of gcc/clangTycho1-2/+4
2014-01-25Did what xoft recommendedTiger Wang2-2/+6
2014-01-25Rail speed tweakTiger Wang1-2/+2
2014-01-25Implemented sheeps eating grass.STRWarrior2-1/+41
2014-01-25Improved AllToLua UI experienceTiger Wang1-2/+8
2014-01-25First attempt at Implementing InterfacesTycho19-38/+80
2014-01-25Two minor changesTiger Wang2-6/+4
2014-01-25Implemented fall damage for mobsTiger Wang5-11/+41
+ Implemented mobile fall damage * Formatting fixes + Defined new Position->Integer macros
2014-01-25Attack() is no longer always calledTiger Wang1-1/+1
2014-01-25dded dependecy on Blocks to GeneratorTycho1-1/+1
2014-01-25Added RSA encryption to crypto wrappers.madmaxoft2-0/+39
2014-01-25Stupid Mistake fixedTycho1-2/+2
2014-01-25Implemented pickup combiningTiger Wang1-0/+55
* Fixes FS393 * Part of #131
2014-01-25Mob bugfixesTiger Wang6-26/+54
* Mobs no longer require constant line-of-sight to a player to remain aggravated * Fixed an ASSERT * Fixed mobs jumping * Fixed Idle state not properly using AI + Added FILE_IO_PREFIX to favicon loading + Implemented #563
2014-01-25Comm logging is available in both Debug and Release modes.madmaxoft3-16/+16
2014-01-25Added cFile::Flush().madmaxoft2-20/+34
This is useful when using cFile as a log file and we know the server may crash after a specific write, so we flush the file before continuing.
2014-01-25Fixed exportsTycho3-7/+1
2014-01-25Protocol17: Comm logging shows the data left over from previous parse.madmaxoft1-2/+15
2014-01-25Switched cEvent to GetOSErrorStringTycho3-18/+14
2014-01-25Extracted cSocket::GetErrorString into GetOSErrorStringTycho6-59/+62
2014-01-25Added dependecy output to Bindings/BindingsDependencies.txtTycho1-0/+7
2014-01-25Reformatted Bindings DependeciesTycho1-28/+58
2014-01-25Added "player destroying" and "player destroyed" hooksdaniel09166-0/+94
Hooks: HOOK_PLAYER_DESTROYING HOOK_PLAYER_DESTROYED Idea from: https://github.com/mc-server/MCServer/issues/473
2014-01-25All mobs now drown (fixes #54)Tiger Wang6-127/+137
* Implemented mob drowning * Iron Golems and squids are excluded
2014-01-25Fixed a generator bugTiger Wang2-1/+9
2014-01-25Zombies and skeletons use AITiger Wang2-9/+15
2014-01-24Fixed *nix compilation for previous commit.madmaxoft1-2/+2
2014-01-24Added per-connection comm logging in debug mode.madmaxoft3-1/+93
It is meant for debugging only, so it is compiled only into debug mode. It is activated by starting the server with "/logcomm" parameter.
2014-01-24Miscellaneous improvementsTiger Wang3-28/+17
2014-01-24Changed a condition to IsGameModeTiger Wang1-2/+1
2014-01-24Fixed a possible deadlock on client disconnect.madmaxoft1-9/+0
2014-01-24Fixed a failure in cSquid.madmaxoft1-1/+2
Probably due to rounding errors the squid was querying out-of-chunk coords.
2014-01-24removed hook from enchanting commitdaniel09162-5/+1
2014-01-24Made wolves compatible with new AI codeTiger Wang2-11/+26
2014-01-24Monsters no longer check for direct line of sightTiger Wang1-10/+2
2014-01-24Large reworking of mob code [SEE DESC]Tiger Wang7-242/+334
+ Implemented better pathfinding - Removed lots of unused variables, functions, etc. * Changed some variable types * Other miscellaneous fixes, and also completes the previous PRs
2014-01-24Fixed mobs too close to player not tickingTiger Wang1-2/+2
A condition would never be fulfilled. A number squared was compared to -1, but there is nothing that, multiplied by itself, gives -1.
2014-01-24Implemented creeper abilitiesTiger Wang2-2/+50
* Creepers now explode with a sound effect * Creepers drop a music disc on the unlikely event of being killed by a skeleton's arrow Inspired by @maniak89's PR #132.
2014-01-24Removed unused ReferenceManagerTiger Wang4-122/+1
2014-01-24Added more minecart powered rail directionsTiger Wang3-80/+63
2014-01-24Some updates for enchantingdaniel09165-17/+29
2014-01-24Fixed Win nightbuilds not producing PDBs.madmaxoft1-0/+7
2014-01-24Fixed a few compile-time and runtime warnings in ScoreboardSerializer.madmaxoft1-8/+4
2014-01-24Fixed crash with failed entity-loading.madmaxoft2-3/+9
This should fix issues reported in: http://forum.mc-server.org/showthread.php?tid=1328 http://forum.mc-server.org/showthread.php?tid=1308
2014-01-24Fixed flint&steel failure on the Y world edges.madmaxoft1-0/+4
2014-01-24Fixed indentation once and for all.Mike Hunsinger2-46/+46
2014-01-24Fixed indentation and doxygen comments... For real this time.Mike Hunsinger2-15/+15
2014-01-24Fixed spacing and doxycomments.Mike Hunsinger3-18/+16
2014-01-23Fixed a warning in ScoreboardSerializer.madmaxoft1-2/+2
2014-01-23PolarSSL is fully used for 1.3.2 protocol encryption.madmaxoft13-157/+630
2014-01-23Make clean now effects BindingsTycho1-0/+2
2014-01-23Fixed 1.5.x scoreboard packet IDsandrew1-3/+3
2014-01-23Removed Bindings folder subcmake on *nixTycho1-1/+2
2014-01-23BugfixesTycho2-12/+9
2014-01-23added dependecies for bindings regenTycho2-14/+46
2014-01-23Switched cEvent to use strerror_r for error messagesTycho1-6/+18
2014-01-23Fixed a bug in LeakFinder.madmaxoft1-3/+8
2014-01-23Fixed crash while calling disabled plugins.madmaxoft1-1/+1
2014-01-23Fixed scoreboard.dat structureandrew1-5/+6
2014-01-23Fixed scoreboard serializationandrew1-35/+26
2014-01-23Improved code safety for the Compact world storage.Mattes D1-104/+72
That was a huge chunk of smelly code.
2014-01-23Minor style improvements for the merged PR.Mattes D1-4/+4
2014-01-23Command block fixes 2andrew6-40/+104
2014-01-23Removed extra lineMike Hunsinger1-2/+0
2014-01-23Split TossItem into three Toss functions (Held, Equipped and Pickup)Mike Hunsinger4-57/+101
2014-01-22Replacing CryptoPP with PolarSSL.madmaxoft1-1/+1
This is only the CMake modification to build with PolarSSL, the actual MCS code doesn't compile at all yet.
2014-01-22Authenticator: Reduced logging levels.madmaxoft1-4/+4
2014-01-22Fixed spelling errorTycho4-3/+3
2014-01-22Added manual bindings for moved functionsTycho3-2/+71
2014-01-22formatting changesTycho2-6/+26
2014-01-22Fixed compilation on VC2008tonibm191-0/+1
2014-01-22cWorld now saves/loads the scoreboardandrew4-15/+44
2014-01-21Implemented cPluginManager:CallPlugin() API.madmaxoft7-214/+471
This function supersedes cPlugin:Call(), is safer to use in regards to multithreading and once again removes the need for the cPlugin class being exported at all.
2014-01-21Scoreboard SendTo()andrew4-6/+74
2014-01-21Scoreboard protocol supportandrew17-23/+321
2014-01-20Fix a crash but somewhere...Alexander Harkness1-2/+1
2014-01-20Actually implemented interfacesTycho4-21/+33
2014-01-20Moved Schematic file methods to seperate classTycho4-175/+177
2014-01-20first changes for enchanting (not finished)daniel09168-0/+198
- added enchanting table block handler and added it to the blockhandler - added enchanting window - drop item in the slot 0 when the player close the window - added enchanting packet (1.7 only) - some more...
2014-01-20Seperated BlockArea From WorldTycho4-14/+20
If anyone can come up with a better name for the interface I'll change it, It contians to methods which do compleatly unrelated things
2014-01-20Scoreboard serializationandrew3-14/+92
2014-01-20Scoreboard deserializationandrew7-48/+599
2014-01-19Changed the cWorld::ScheduleTask() signature.madmaxoft3-151/+181
Now it takes the delay in ticks as an argument, and a cTask descendant as the task to run. Lua API has been updated similarly.
2014-01-19cLuaState can now check function params.madmaxoft2-0/+37
2014-01-19Added Inifile and OSSupport LinkingTycho1-0/+2
2014-01-19Removed unneeded paramtersTiger Wang9-15/+23
2014-01-19Begin implementing ascending railsTiger Wang2-2/+45
2014-01-19Added one more direction into collision checksTiger Wang1-26/+51
* Added direction XM_XP * Improved performance, thanks STR and xoft
2014-01-19Rewritten SocketThreads for proper shutdown scenario.madmaxoft8-178/+189
This fixes #560 and #390.
2014-01-19Minecart improvements and fixesTiger Wang1-33/+43
* Fixed curved rails * Fixed detector rails in certain situations * Fixed powered rails and others passing bad meta to SnapToRail()
2014-01-19Fixed weird meta with curved railsTiger Wang1-5/+15
2014-01-19Switched EnchantmentSerilizer to namespaceTycho7-17/+23
2014-01-19Spilt Writing of Enchantments to seperate classTycho8-90/+116
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
2014-01-19SocketThreads: Removed unused code.madmaxoft2-53/+3
2014-01-19Added more rail functionalityTiger Wang3-18/+22
2014-01-19Scoreboard improvementsandrew3-116/+79
2014-01-19Changed SendBlockEntity format slightlyTiger Wang9-42/+55
* Writing NBT is now in Protocol, not BlockEntity files * Fixed a last output bug
2014-01-19Basic scoreboard implementationandrew5-1/+576
2014-01-19Implemented MC|Brand responseTiger Wang1-3/+9
2014-01-19Improved command blocksTiger Wang11-5/+124
* Their command and previous output are displayed on the client * They have a BlockHandler implementation, so you can't place blocks on them anymore + As a side effect, implemented UpdateBlockEntity
2014-01-19Exported cFloater to the Lua API.STRWarrior2-3/+8
2014-01-18Fixed compiler error.STRWarrior1-3/+3
2014-01-18Minecart collision and general improvementsTiger Wang2-70/+242
+ Implemented collision on one type of rail * Improved curved rails somewhat * Fixed a crash bug
2014-01-18Command block fixesandrew3-43/+17
2014-01-18HTTP connections aren't kept alive unless explicitly enabled.madmaxoft4-37/+58
Only the client can decide that the connection can be kept alive, we must close the socket if the client doesn't indicate keepalive support. This will provide a fix for #390 when #560 is fixed; until then the issue remains, just it's no longer HTTPServer's fault.
2014-01-18Fixed iterators bugTycho1-2/+1
2014-01-18Removed the particles when a mob spawns.STRWarrior1-3/+0
2014-01-18Parse the MC|AdvCdm plugin messageandrew4-1/+70
2014-01-18Alpha-sorted the finishers.madmaxoft1-4/+4
2014-01-18Command blocks: Execute()andrew5-18/+42
2014-01-18switched to using m_WorldAge rather than m_TickIDTycho2-9/+3
2014-01-18Command block (de)serializationandrew6-21/+122
2014-01-18Fixed errors.STRWarrior2-2/+2
2014-01-18Basic command block implementationandrew11-33/+395
2014-01-18Renamed cFinishGenNetherSprinkleFoliage to cFinishGenNetherClumpFoliage. Fixed typo'sSTRWarrior3-10/+10
2014-01-18Some tweaks.STRWarrior1-5/+18
Everything generates more often. Fire can only spawn on ForeverBurning blocks.
2014-01-18Fixed bug where only brown mushrooms would spawn.STRWarrior1-3/+3
2014-01-18It now actualy works.STRWarrior1-20/+42
2014-01-17First attempt at creating a clumb version NetherFinisher.STRWarrior2-22/+63
2014-01-17Added user setting compression factorTycho10-22/+33
2014-01-17Increased tick count to longTycho2-3/+3
2014-01-17Changed std to c++11 in clang to fix va_copy issuesTycho1-4/+0
2014-01-17Implemented xsofts suggestion for a saturating counter in the schedulerTycho2-5/+8
2014-01-17Fixed SIGABRT_COMPAT on other architectures.madmaxoft1-0/+2
2014-01-17Removed internal cEntity::GetRot() usage.madmaxoft23-43/+43
2014-01-17Protocol 1.7: More output on unknown packets / protocol states.madmaxoft1-4/+21
2014-01-16Fixed block break packet numberTiger Wang1-1/+1
2014-01-16Changed newline character because of issuesTiger Wang2-4/+13
2014-01-16Removed CustomCopy()Tiger Wang2-24/+1
2014-01-16Really did what xoft wantedTiger Wang1-5/+8
2014-01-16Fixed #535Tiger Wang1-1/+1
2014-01-16Fixed SIGPIPE on cSocket::Send().madmaxoft3-12/+13
2014-01-16Fixed #535Tiger Wang1-1/+1
2014-01-16Protocol 1.7: Unknown packets are dumped to log in Debug mode.madmaxoft1-1/+14
2014-01-16Disabled excessive entity-related logging in Debug mode.madmaxoft2-3/+26
2014-01-16Fixed whitespace in previous commit.madmaxoft1-1/+1
2014-01-16Removed obsoleted functionsTiger Wang34-74/+67
2014-01-16Finished exporting cWorld:ScheduleTask() to Lua API.madmaxoft1-1/+15
2014-01-16Possibly did what xoft wantedTiger Wang3-10/+25
2014-01-16CMake: Fixed output paths for all MSVC versions.madmaxoft1-7/+9
2014-01-16Changed GetContent function.STRWarrior1-1/+1
2014-01-16Added packet diagnostics to 1.7 protocol.madmaxoft2-30/+40
When the packet is mis-interpreted, a log message is output about the packet type and lengths.
2014-01-16Yet another attempt at VarArgs.madmaxoft1-10/+15
2014-01-16Another VarArgs fix.madmaxoft6-39/+37
This time using va_copy() on platforms that have it and simple assignment on platforms that don't.
2014-01-15OBSOLETE'd obsolete functionsTiger Wang1-2/+2
2014-01-15Implemented custom names and loreTiger Wang4-35/+107
+ Added custom names and lore + Added saving and loading + Added writing and parsing of NBT
2014-01-15Implemented Ctrl-Q drop stackTiger Wang3-3/+20
Also fixed an issue with TossItems not respecting count.
2014-01-15Using a 2nd argument instead of va_copy().madmaxoft6-30/+42
This seems to be the only reasonable C++03-only solution.
2014-01-15Fixed varargs modification.madmaxoft1-1/+5
Ref.: #541.
2014-01-15Furnace minecarts now stop being active after a while.STRWarrior2-2/+19
2014-01-15First implementation for furnace minecarts.STRWarrior2-1/+23
2014-01-14added cWorld::ScheduleTask FunctionTycho3-4/+121
ScheduleTask schedules a SceduledTask object to be run x ticks in the future. In is exported to lua, fixes #150
2014-01-14Yes newline at end of file :DTiger Wang1-1/+5
2014-01-14CMake: Added postfix for profiled exemadmaxoft1-0/+4
2014-01-13Final improvements to MinecartsTiger Wang3-93/+292
* Fixed curved rails being a little broken + Implemented detector rails + Implemented block collisions on rails * Fixed snapping to rail - Removed minecart physics conditions in Entity.cpp as minecarts use their own simulator when on rails Fixes #148 and #217; partially implemented #215. This is Cave Johnson, and we're done here.
2014-01-13Removed shutdown() from socket closing.madmaxoft1-4/+0
It's not there for Windows and everything seems fine, the client doesn't shutdown either, so why should we be polite. Fixes #537.
2014-01-13Added handshake processing to protocol 1.7.madmaxoft2-2/+29
This fixes #495
2014-01-13Generating the bindings outputs a message at the end.madmaxoft1-0/+8
2014-01-13cCreeper is no longer available in API.madmaxoft3-14/+1
Has been replaced by cMonster.
2014-01-13CMake: Removed leftover debugging output.madmaxoft1-1/+0
2014-01-13CMake: Added resources to windows projects.madmaxoft1-1/+14
2014-01-13Added a generic .user file for MSVC.madmaxoft1-0/+167
This brings in the default debugging settings for the MSVC project, when generated by CMake.
2014-01-13Detaching improvementsTiger Wang4-4/+34
* Players now search for an area around themselves to teleport to when detaching from something
2014-01-13Fixed wire, rail, and pressure plate unpoweringTiger Wang1-3/+4
2014-01-12Fixed server crash.STRWarrior1-1/+1
2014-01-12Renamed cEmptyMinecart to cRideableMinecartSTRWarrior7-17/+18
2014-01-12Moved the win resources into a separate subfolder.madmaxoft5-0/+22
This will allow us to use them in CMake builds.
2014-01-12CMake generates Bindings when not existant (win)madmaxoft1-0/+10
2014-01-12EmptyMinecarts should be able to get a block inside of them.STRWarrior7-10/+33
2014-01-12Fixed settings plugin generation after IniFileTiger Wang1-3/+3
2014-01-12Added cWorld::SpawnMinecart.STRWarrior2-0/+27
2014-01-12Multiple enhancements and fixes to minecartsTiger Wang4-132/+191
+ They are destroyed instantly by creative mode * Physics is much improved + Basic implementation of powered rails
2014-01-12Disabled a useless MSVC warning in Bindings.cpp.madmaxoft1-0/+6
2014-01-11Lua errors display stack trace.madmaxoft2-3/+27
Fixes #418.
2014-01-11Removed internal methods from public cLuaState interface.madmaxoft3-119/+103
PushFunction(), CallFunction() and GetReturn() are not to be called independently, but rather only by using the Call() templated overrides. Push() needs to be left in the public part, it is used for pushing results in the ManualBindings. Preparation for #418.
2014-01-11Fixed rails poweringTiger Wang1-0/+2
2014-01-11Removed an unused file.madmaxoft2-130/+0
2014-01-11Removed unused variables.madmaxoft1-2/+0
The Lua API calls had no side-effects, either.
2014-01-11Did some stuff with the vectorsTiger Wang1-32/+17
2014-01-11Fixed glowstone drop countandrew1-2/+2
2014-01-11Fixed a door bug and reduced codeTiger Wang1-19/+1
Doors wouldn't get powered by repeaters, and some blocks, like glass, were viable middle blocks when they shouldn't have been.
2014-01-11Renamed g_TorchPlaceable...Tiger Wang6-71/+71
...to g_FullyOccupiesVoxel, as recommended by @bearbin
2014-01-10Globals.h needs to be first includeBill Derouin1-1/+1
2014-01-10Fixed doors, fixes #453Tiger Wang1-38/+8
2014-01-10Decoupled cChunkGenerator from cWorld and cRoot.madmaxoft10-50/+188
Now the chunk generator can be used by other projects without depending on the two hugest structures in MCS.
2014-01-10Major refactoring of redstoneTiger Wang4-186/+181
This commit is a refactoring of the redstone code, mainly the functions handling the removal of invalid blocks from power supplier data structures. Its aim is to improve performance and potentially reduce the memory footprint of the data structures. It works to reduce the amount of GetBlock()s triggered every tick. Before, a GetBlock() was requested for every single item in the data lists, as well as for every single redstone block in a chunk. Following these changes, the AddBlock() event is utilised more effectively to only update the lists when needed (a block is changed), as well as to insert the block type (and update it when needed) alongside the coordinates into the main redstone simulator chunkdata list. In short, a single GetBlock() is now cached, with this cache being updated when the simulator is awoken due to a block change. At least, I *hope* that this is what it does :P
2014-01-10Include Biome enum in ChunkDefBill Derouin1-2/+1
Can't forward declare an enum
2014-01-10Added newlines at ends of filesBill Derouin2-2/+2
2014-01-10Fixed generator adding values to ini file.madmaxoft2-1/+3
2014-01-10Added cFinishGenNetherSprinkleFoliage.STRWarrior3-2/+73
2014-01-10Fixed missing externalsBill Derouin1-1/+2
Turns out you actually have to include the .cpp in the project file
2014-01-10Fixed recurring pattern.STRWarrior1-1/+1
2014-01-09Move biome definition to separate filesBill Derouin8-222/+241
2014-01-09Exported cClientHandle::SendPluginMessage() to Lua.madmaxoft1-0/+30
2014-01-09Fixed wrong packet number for PluginMessage packet.madmaxoft1-1/+1
2014-01-09Fixed chunk borders.STRWarrior1-3/+3
2014-01-09Added cClientHandle::SendPluginMessage().madmaxoft9-0/+50
It is not yet exported in the API, though.
2014-01-09Composition generator creating moved to a separate function.madmaxoft2-61/+83
Also it forces the defaults into the INI file.
2014-01-09Height generator creating moved info HeiGen.cpp.madmaxoft3-54/+82
The generator also explicitly sets the default back into the INI file.
2014-01-08Speed-up. I got about 40 extra ch/sSTRWarrior1-9/+14
2014-01-08A couple touchupsBill Derouin1-2/+3
2014-01-08WormNestCaves now remove soul sand.STRWarrior1-0/+1
2014-01-08NetherGen: Now generates SoulSand.STRWarrior1-1/+11
2014-01-08Fixed AppendVPrintf() handling for large strings.madmaxoft1-6/+4
This caused a failure in server favicons.
2014-01-07Graceful shutdown on SIGTERMTiger Wang1-0/+5
2014-01-07Add missing plugin errorBill Derouin1-0/+12
Previously, if a plugin was included but the folder had no lua files, the error given was ambiguous. Now, it explicitly describes lack of lua files. See issue #512 P.S. This probably isn't the best way, but this is where the fix can be made.
2014-01-07Fixed faviconsTiger Wang4-18/+8
2014-01-07Plugin messages are received and handed to plugins.madmaxoft8-2/+68
Note that MCS doesn't currently handle any channel registrations, this will come later on.
2014-01-07Avoid making copies of favicon stringBill Derouin2-2/+2
2014-01-07Disabled an unneeded MSVC warning.madmaxoft1-4/+7
Also sorted the enabled warnings by their numerical code for easier searching..
2014-01-07Removed a debugging log output in cPluginManager:AddHook().madmaxoft1-1/+0
2014-01-07More MSVC warning fixes.madmaxoft9-11/+11
2014-01-07LuaState can push strings with embedded NULs.madmaxoft1-1/+1
This also marginally improves performance, since a strlen() isn't called (inside lua_pushstring()), the string length is stored in the AString object directly.
2014-01-07A few more touch upsBill Derouin2-12/+2
2014-01-07A few touch upsBill Derouin2-2/+5
2014-01-07Removed unused lineBill Derouin1-1/+0
2014-01-07Implement favicon for 1.7.2Bill Derouin4-0/+28
Favicon data is a png encoded in base64 which is stored in the server and sent in the server response packet
2014-01-07Fixed a few MSVC warnings.madmaxoft8-18/+21
2014-01-07Added Base64Encode().madmaxoft2-0/+51
2014-01-06Disabled the type conversion MSVC warning.madmaxoft1-1/+3
It was hitting way too many false positives.
2014-01-06Fixed a few MSVC warnings.madmaxoft11-16/+12
2014-01-06Exported cWorld::BroadcastBlockAction().madmaxoft1-1/+1
As requested in #508; no guarantees about it.
2014-01-06Output dir set to $/MCServer.madmaxoft1-1/+1
Ref.: #510.
2014-01-06Fixed wrong enqueueing.madmaxoft1-2/+9
Fixes #505.
2014-01-05Added fake functions into cCriticalSection because of the change to ASSERTDiusrex1-0/+5
2014-01-05Changed the release version of ASSERT.Diusrex1-1/+1
This was so a variable only used in ASSERT statements will not give a warning about not being used.
2014-01-05Added warning(push) and warning(pop) around all of the inclusions of cryptopp/*.hDiusrex5-3/+68
I also added a warning(push)/(pop) around crpytlib.cpp because it would go crazy with warnings. So now, the only warning from cryptopp that is not blocked is 'unreferenced local function has been removed', which also occurs at a single function.
2014-01-05Making all of the useful level 4 warnings be active.Diusrex1-1/+13
2014-01-05Fixed cPluginManager:AddHook() binding.madmaxoft1-6/+13
Fixes #401. Old formats are still accepted, for compatibility reasons.
2014-01-05Fixed a race condition in the cQueue class.madmaxoft1-59/+86
Fixes #505.
2014-01-03Fixed DocumentationTycho1-4/+2
2014-01-03derpTycho1-1/+1
2014-01-03actual fixTycho1-2/+9
2014-01-03fixed failure to return a value from RemoveTycho1-1/+1
2014-01-03implement xsofts recommendationsTycho Bickerstaff1-9/+15
2014-01-02added documentationTycho Bickerstaff1-7/+45
2014-01-02fixed a few remaining issues with worldstorageTycho Bickerstaff2-24/+6
2014-01-02More memory alignment fixes.madmaxoft2-6/+6
Ref.: #420.
2014-01-02Fixed unaligned memory access in FastNBT.madmaxoft3-5/+44
This should fix #420.
2014-01-02rewrote queue not to use promises for waitsTycho Bickerstaff6-121/+24
2014-01-01OnPlayerFishing doesn't have a const cItems anymoreSTRWarrior5-5/+5
2014-01-01Fixed GetPhysicalRAMUsage on Linuxandrew1-2/+2
2013-12-31fogot to add promise classesTycho Bickerstaff2-0/+92
2013-12-31clean up code for patchingTycho Bickerstaff3-3/+5
2013-12-31refactored chunk Queue to seperate classTycho Bickerstaff7-124/+162
2013-12-31implemented the recommendations Xoft gave.STRWarrior7-12/+25
2013-12-31removed unneccisary castTycho Bickerstaff1-1/+2
2013-12-31fixed warnings in LineBlockTracer.cppTycho Bickerstaff1-1/+0
2013-12-31fixed warnings in LightingThread.cppTycho Bickerstaff1-0/+1
2013-12-31take Z axis into account when calculating neighboors in LightingThread::ChunkReadyTycho Bickerstaff1-1/+1
2013-12-31fixed warnings in World.cppTycho Bickerstaff4-6/+34
2013-12-31fixxed warnings in Server.cppTycho Bickerstaff1-0/+5
2013-12-31fixed warnings in Inventory.cppTycho Bickerstaff1-2/+2
2013-12-31fixed warnings in bytebuffer.cppTycho Bickerstaff2-4/+4
2013-12-31fixed ClientHandle warningsTycho Bickerstaff1-0/+1
2013-12-31fixed warnings in webadmin.cppTycho Bickerstaff1-0/+3
2013-12-31fixed warnings in BlockArea.cppTycho Bickerstaff1-0/+2
2013-12-31Fixed a cPlayer::IsGameModeAdventure. It was determined based off of gmCreate rather than gmAdventure.Morgan Redshaw1-2/+2
2013-12-30Implented OnPlayerFishing and OnPlayerFished.STRWarrior6-1/+97
2013-12-30Fixed compilation in VC2008.madmaxoft6-75/+13
Also removed an unused inline header file (yuck).
2013-12-28Added support for out-of-source builds.madmaxoft2-18/+30
2013-12-27Made cmake compilation possible on Windows.madmaxoft4-21/+27
2013-12-26Server now handles death messagesTiger Wang1-0/+16
2013-12-26Added proper precompiled headers for MSVC.madmaxoft1-48/+47
2013-12-26Simplefied Extreme Hills M pattern select.STRWarrior1-11/+3
2013-12-26cBlockArea: Fixed writing full-height areas.madmaxoft1-2/+2
2013-12-26Moved increment operator to back of variablesTiger Wang1-9/+9
2013-12-25Extreme Hills M biomes now generate gravel, stone and grass patterns.STRWarrior1-2/+10
2013-12-25Changed tbGravel. Vanilla has 3 layers of gravel and then stone.STRWarrior1-3/+3
2013-12-25Normal extreme hills (plus) now generate a stone/grass pattern.STRWarrior1-2/+20
2013-12-25Re-added empty line.STRWarrior1-0/+1
2013-12-25This generates gravel in Extreme Hills M biomes.STRWarrior2-3/+20
2013-12-25Fixed block area height check.madmaxoft1-2/+2
The block area couldn't be read up to chunk height.
2013-12-25(Hopefully) fixed if conditionstonibm191-4/+1
2013-12-25Fixed Parentheses.STRWarrior1-2/+2
2013-12-25You are now able to sweep mobs to your position using fishing rods.STRWarrior3-38/+206
2013-12-25Preliminary mobile entity savingTiger Wang4-13/+790
* Fixes #252 * Alleviates #380 + Adds mob saving * Fixed some debug !ASSERTs
2013-12-25Implemented xoft suggestion (partly)tonibm191-25/+29
I only get it working in first condition. It seems it's not compatible with else if...
2013-12-25Fixed rails not updating with diagonalsTiger Wang1-0/+34
2013-12-25Braced up some codeTiger Wang1-0/+2
2013-12-25Used IsGamemodeCreative() functionTiger Wang1-1/+1
2013-12-24BLOCKTYPE...tonibm191-2/+2
2013-12-24Fixed compilationtonibm191-29/+9
2013-12-24Implemented xoft suggestiontonibm191-7/+11
2013-12-24Using BLOCKTYPE instead of inttonibm191-2/+2
2013-12-24Fixed commentstonibm191-8/+8
2013-12-24Changed a little how detection works and added comments.tonibm191-28/+31
2013-12-24Storing Y -1 and -2 blocks in a variabletonibm191-5/+7
2013-12-24Fixed comments in main.cpp and Player.cppTiger Wang2-2/+2
2013-12-24Implemented stone and wooden pressure platesTiger Wang2-3/+105
2013-12-24Improved knockback animationTiger Wang1-3/+3
* Critical hits now actually increase damage * Looking down at an entity and hitting them still produces upwards motion (as per Vanilla experience) * Reduced force to be more realistic
2013-12-24Fixed getting configure button going to port 0.STRWarrior2-3/+9
2013-12-24removed the function def alsoAlexander Harkness1-1/+0
2013-12-24Finally removed the function.Alexander Harkness1-6/+0
2013-12-24Using parenthesistonibm191-8/+8
2013-12-24Fixed a possible crashtonibm191-39/+42
2013-12-24fixed compile?Alexander Harkness1-1/+1
2013-12-24finally removed them all?Alexander Harkness1-1/+1
2013-12-24updated another file...Alexander Harkness1-4/+4
2013-12-24Updated MakeColour's defenition in the header.Alexander Harkness1-9/+9
2013-12-24Update as per xoft's instructions.Alexander Harkness1-1/+1
2013-12-24Update chat coloursAlexander Harkness1-3/+2
@madmaxoft, is this right? fixes #467
2013-12-23Replaced esCreeper with esMonster.madmaxoft3-4/+7
Any monster will be able to explode, and also this fixes #425.
2013-12-23Improved player fall particle positionsTiger Wang1-5/+2
2013-12-23Provides an enhancement to daylight sensorsTiger Wang1-2/+27
2013-12-23Improved iron golem detection algorithmtonibm191-3/+16
- You need to make it like in vanilla - Only used blocks are removed
2013-12-23Clarified some code in Player.cppTiger Wang1-2/+5
2013-12-23Fixed a comment in Entity.cppTiger Wang1-1/+1
2013-12-23Added some comments in main.cppTiger Wang1-1/+1
2013-12-23Some fixes (SEE DESC)tonibm191-0/+6
-Added missing mobs (wither, enderdragon and iron golem) to type to string list. -Wither and iron golem can now spawn
2013-12-23You can now spawn iron golems.tonibm191-3/+20
You can spawn them like in vanilla.
2013-12-23Daylight sensor sensing enhancementTiger Wang1-9/+11
2013-12-22added link dependency between WorldStorage and OSSupportTycho Bickerstaff1-0/+2
2013-12-22Fixed bug where snowgolems could replace non-solid blocks to snow blocks.STRWarrior1-1/+3
2013-12-22A fix for daylight sensorsTiger Wang1-2/+3
2013-12-22Implemented knockback and critical hitTiger Wang1-4/+21
2013-12-22Added many event catchersTiger Wang2-20/+78
* Window close * CTRL-C * etc.
2013-12-22Implemented fall particlesTiger Wang1-3/+18
2013-12-22Snow golems die in hot biomes and leave a snow trail.STRWarrior2-0/+18
2013-12-22You can spawn snow golems with snow blocks and pumpkins.STRWarrior1-0/+15
2013-12-22EnderDragons and SnowGolems are able to spawn.STRWarrior1-0/+2
2013-12-22Fixed cacus breaking when next to any non-air block.STRWarrior1-1/+1
2013-12-22fixed bad mergeTycho Bickerstaff1-4/+0
2013-12-22merged in warnings changesTycho Bickerstaff26-93/+94
2013-12-22fixed accedental commitTycho Bickerstaff1-2/+1
2013-12-22fixed rdynamic as its not acctually needed a cmake handles it, looks like the problem was caused by the linux linker accepting the option twice and the os x linker notTycho Bickerstaff2-1/+33
2013-12-29Added HOOK_PLUGINS_LOADED.madmaxoft6-3/+64
This fixes #482.
2013-12-29Added function to create Tall Birch tree in BirchTreeForest biomesMike Hunsinger2-3/+49
2013-12-28Fixed a (valid) warning in RCONServer.madmaxoft1-0/+3
2013-12-22Made the lure enchantment work.STRWarrior1-1/+1
2013-12-22Fixed signedness warning in cItemGrid.madmaxoft2-4/+4
2013-12-22Fixed compiler warning.STRWarrior1-1/+1
2013-12-22Fishing underground is slower and fishing while raining is faster.STRWarrior1-0/+15
2013-12-22Fixed compiler warnings.STRWarrior1-2/+2
2013-12-22Countdown time is between 100 and 900 ticks.STRWarrior1-1/+1
2013-12-22Fishing now uses a countdown instead of a random number each tick.STRWarrior2-12/+29
2013-12-22converted commneted paramater names to the unused macroTycho Bickerstaff16-39/+100
2013-12-22Implented BroadcastParticleEffectSTRWarrior17-2/+122
2013-12-22Daylight sensorsTiger Wang1-2/+1
2013-12-22Fixed them again, confound itTiger Wang1-9/+21
2013-12-21Using regular assignments.STRWarrior1-6/+6
2013-12-21Once again better Y direction for the items given when fishing.STRWarrior1-2/+2
2013-12-21You are now able to get different items from fishing.STRWarrior1-2/+108
2013-12-21Bindings regen script updated.madmaxoft1-11/+6
The Bindings.cpp / .h files are no longer stored in the git repo.
2013-12-21Floater now dissapears when the player doesn't have an fishing rod equipped.STRWarrior2-0/+32
2013-12-21Chunk is now warnings cleanTycho Bickerstaff4-6/+5
2013-12-21fixed hidden bug with furnaces ignoring time burntTycho Bickerstaff1-1/+1
this patch fixes an issue with furnaces where they would ignore the time burnt in setBurnTimes this did not cause a problem as this function was only called with the same value as the one it was using for time burnt
2013-12-21Root is now warnings cleanTycho Bickerstaff8-30/+32
2013-12-21Piston is now warnings cleanTycho Bickerstaff5-6/+6
2013-12-21ChunkSender is now warnings cleanTycho Bickerstaff6-9/+10
2013-12-21basic threadsafe queue interfaceTycho Bickerstaff2-0/+34
2013-12-21You could now only get fish from non-source blocks. Fixed it.STRWarrior1-1/+1
2013-12-21Fixed bug where you could pickup the floater only to get one spawned instantly or the other way around.STRWarrior1-0/+5
2013-12-21Fixed bug where you could get fish from non-source blocks.STRWarrior1-1/+1
2013-12-20Fixed repeaters delay, maybeTiger Wang3-12/+41
Also added basic daylight sensors, though because GetBlockSkylight always is 15, it doesn't work.
2013-12-20Increased the range an Floater can shoot to.STRWarrior1-1/+1
2013-12-20Fixed the rest of constructor reorders.madmaxoft9-97/+92
2013-12-20Fish now actualy jumps to the player instead of a few block bellow them.STRWarrior1-1/+1
2013-12-20Fixed bug where the floater could pop in the water while you could already get a fish.STRWarrior1-2/+2
2013-12-20More reordering fixes.madmaxoft3-7/+16
2013-12-20added precompiled headerstycho1-13/+24
2013-12-20Fixed a typo in cBlockArea merging code.madmaxoft1-2/+1
2013-12-20Sorted a few constructors to remove warnings.madmaxoft10-49/+57
2013-12-20fixed include of math on windowstycho2-1/+10
2013-12-20Fixed minor warnings.madmaxoft2-5/+7
2013-12-20Fixed warnings in HTTP parser.madmaxoft4-5/+15
2013-12-20Attempt at fixing cChunkDef::Height signedness.madmaxoft4-21/+24
2013-12-20Properly fixed warnings in cFastRandom.madmaxoft1-4/+4
2013-12-20Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft28-62/+66
2013-12-20Fixed melon and pumpkin growing.madmaxoft1-1/+1
2013-12-20Fixed missing parenthesis.madmaxoft1-4/+4
2013-12-20Fixed clang warnings in Noise.cpp.madmaxoft1-20/+20
Fix-a-random-warning-per-day :)
2013-12-20Fixed assertion during dirt block OnUpdate()Tiger Wang1-1/+1
2013-12-19Fixed #include in Floater.cpp.STRWarrior1-1/+1