summaryrefslogtreecommitdiffstats
path: root/src/Defines.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove double includes part 2 (#3890)peterbell102017-08-031-3/+0
|
* Handle middle mouse drag (#3847)peterbell102017-07-131-0/+6
|
* Added some blocks and items (#3503)mathiascode2017-02-141-1/+25
|
* Track skin part and main hand preferences (#3498)Pokechu222017-01-031-0/+36
|
* Anticheat fastbreak (#3411)mohe20152016-11-061-0/+301
| | | Added block hardness checks when breaking blocks.
* Use cChunkDef::Height for Y coord comparison where applicable.Moritz Borcherding2016-09-271-1/+1
|
* Fixed cCompositeChat's constructor LuaAPI bindings.Mattes D2016-09-251-0/+1
| | | | The tolua-generated constructor would return an extra string value.
* Fixed RasPi builds of unit tests.Mattes D2016-08-041-1/+1
| | | | | 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.
* Update Dispensers and let them act more like in VanillaQUSpilPrgm2016-06-031-0/+13
| | | | | | | | - Added code to make bonemeal, potions, minecarts, XP bottles and boats work inside dispensers - Dispensers are now able to place TNT if the block is transparent but not air - Added return value that indicates the success of pumpkin, melon, sugarcane and cactus growing functions - Changed return value of "GrowRipePlant" so that it actually indicates if the block was able to grow - Fixed "GrowSugarcane" and "GrowCactus" in "GrowRipePlant" so that it only grows them a single block
* 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135)Pokechu222016-05-141-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Updated old forum linksMathias2016-01-311-1/+1
|
* Deleted cPath::BlockTypeIsFenceLogicParrot2015-12-271-4/+11
|
* Added IsBlockFence method to definesJulian Laubstein2015-12-241-0/+24
|
* Unified the doxy-comment format.Mattes D2015-07-311-4/+4
|
* LuaState: Added support for config-style usage.Mattes D2015-06-171-7/+11
| | | | | Globals and table values can be queried from the Lua state easily. Use perfect forwarding.
* Added system and above action bar chat messagesjan642015-06-021-0/+11
|
* Fixed warnings in MSVC.Mattes D2015-06-021-1/+24
| | | | It complained about undefined return values or using uninitialized variables.
* Fix bearbins commentstycho2015-05-241-14/+10
|
* Fix commentstycho2015-05-241-4/+14
|
* Fixed a lot of warningstycho2015-05-191-6/+15
|
* More style checking.Mattes D2015-05-091-1/+1
| | | | Spaces around some operators are checked.
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-6/+6
|
* convert old style casts to fix warningsSteven Riehl2014-10-121-21/+17
|
* Pre 1.8 releasenesco2014-09-161-0/+2
| | | Added Gamemode Spectator
* More template keyword fixes.Mattes D2014-08-281-1/+1
|
* Merge remote-tracking branch 'origin/master' into saplingsandleavesTiger Wang2014-07-221-10/+10
|\ | | | | | | | | Conflicts: src/Defines.h
| * Defines.h: Fixed a warning.madmaxoft2014-07-211-1/+1
| |
| * Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-9/+9
| |
| * Style: Normalized spaces after if, for and while.madmaxoft2014-07-211-1/+1
| |
* | Merge branch 'master' into saplingsandleavesTiger Wang2014-07-201-15/+3
|\| | | | | | | | | | | Conflicts: src/Bindings/DeprecatedBindings.cpp src/Blocks/BlockSapling.h
| * Fixed clamping issuesarchshift2014-07-191-12/+1
| |
| * Moved ChatColor.h out of defines where it was not neededarchshift2014-07-181-1/+0
| |
| * Fixed spaces around single-line comments.madmaxoft2014-07-171-1/+1
| | | | | | | | There should be at least two spaces in front and one space after //-style comments.
| * Fixed basic whitespace problems.madmaxoft2014-07-171-1/+1
| | | | | | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
* | Fixed issues relating to saplings and leavesTiger Wang2014-07-171-9/+0
|/ | | | | | - Removed cBlockInfo::RequiresSpecialTool * Fixes #1195 * Fixes #1201
* Refactored reversing logic into seperate functionTycho2014-06-161-2/+13
|
* Fixed datatype truncation in Diff() template.madmaxoft2014-05-181-1/+1
|
* Add block place/break distance check.Howaner2014-05-091-0/+10
|
* Mobs rotationr.ramazanov2014-04-171-4/+6
|
* Added unreachable lines backit prtected by preprocessor guardsTycho2014-03-191-0/+4
|
* Merge branch 'master' into unreachableTycho2014-03-171-10/+16
|\
| * Added common eMessageType aliases.madmaxoft2014-03-161-10/+16
| |
* | Removed invalid block face handling codeTycho2014-03-141-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.
* Merge branch 'master' into WerrorTycho2014-03-111-0/+20
|\ | | | | | | | | Conflicts: src/ChunkDef.h
| * Added BlockFaceToString() translation function.madmaxoft2014-03-091-0/+20
| |
* | Be more parinoid about int sizesTycho2014-03-091-1/+2
| |
* | Fixed Mesannine twister to use UInt32Tycho2014-03-091-1/+1
|/
* Fixed some gcc warnings in Defines.h.madmaxoft2014-03-041-3/+3
|
* Added blockface mirroring and rotating.madmaxoft2014-03-021-0/+50
|
* Removed g_BlockXXX arraysandrew2014-03-021-27/+0
|
* g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-1/+1
|
* Rename SkullEntity to MobHeadEntityHowaner2014-02-191-2/+2
|
* Add Skulls/HeadsHowaner2014-02-171-0/+37
|
* Implemented cCompositeChat.madmaxoft2014-02-151-2/+7
| | | | | This allows plugins to send composite chat messages, containing URLs, commands to run and cmdline suggestions. Fixes #678.
* Merge branch 'master' into playerimprovementsTiger Wang2014-02-091-4/+2
|\ | | | | | | | | Conflicts: MCServer/Plugins/APIDump/APIDesc.lua
| * Improved Type safety of eBlockFaceTycho2014-02-041-4/+2
| | | | | | | | May Fix #640
* | Improved chat messaging functionsTiger Wang2014-02-071-62/+2
| | | | | | | | | | | | | | * Moved string manipulation into cClientHandle and therefore... + Added configuration option for prefixes. * Cleaned up code. * Updated documentation for API.
* | Added more chat functionsTiger Wang2014-02-061-24/+32
| |
* | Added more SendMessageXXX() functionsTiger Wang2014-02-041-44/+47
| |
* | Added SendMessageXXX() to cPlayerTiger Wang2014-02-031-1/+69
|/ | | | | | 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.
* Added IsBlockWaterOrIce()Tiger Wang2014-02-021-9/+11
|
* Added checks for ice into IsBlockWater()Tiger Wang2014-02-011-2/+9
| | | | | * This fixes players spawning in vast oceans of ice, as opposed to the previous water
* Merge pull request #589 from mc-server/minecartimprovementsMattes D2014-01-261-0/+18
|\ | | | | Minecart improvements
| * Added more rail functionalityTiger Wang2014-01-191-0/+18
| |
* | PolarSSL is fully used for 1.3.2 protocol encryption.madmaxoft2014-01-231-2/+0
|/
* Implemented Ctrl-Q drop stackTiger Wang2014-01-151-0/+1
| | | | Also fixed an issue with TossItems not respecting count.
* Merge pull request #529 from mc-server/derpstonerefactorAlexander Harkness2014-01-121-2/+2
|\ | | | | Major refactoring of redstone
| * Renamed g_TorchPlaceable...Tiger Wang2014-01-111-2/+2
| | | | | | | | ...to g_FullyOccupiesVoxel, as recommended by @bearbin
* | Move biome definition to separate filesBill Derouin2014-01-091-28/+0
|/
* Fixed normalizing large angles.madmaxoft2013-12-081-0/+16
|
* Fixed compiler warnings in IsBiomeNoDownfall().madmaxoft2013-11-301-1/+4
|
* Added IsBiomeNoDownfall() function.madmaxoft2013-11-301-0/+26
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-20/+20
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+562