| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
* Fix trampling for older clients and mobs
* Style
* Improve a comment
* Improvements in HandleFarmlandTrampling
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Implement relative SendPlayerMoveLook
* Use relative teleport in cBlockFarmlandHandler::TurnToDirt
* Static cast to UInt8. Explicit float values
* Maybe explicit doubles, too
* Fix TurnToDirt for some edge cases
* Improve the height check in TurnToDirt
* Const is good, right?
* Const - the continuation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add DarkoGNU to CONTRIBUTORS
* HandleFarmlandTrampling function & its docs
* Fix decimal separators (, -> .)
* Fix style. Adjust thresholds. Make function non-virtual
* Adjust thresholds again. Prepare for fixing #5402
* Trying to fix falling through farmlands
* Another style fix
* Add FarmlandTramplingEnabled to world.ini
* Docs for IsFarmlandTramplingEnabled
* Style
* Farmland trampling - handling the random chance
* Trampling kinda works, very buggy
* Trying to fix clang-tidy
* Fix trampling
* Trying to fix the 'undocumented API symbol'
* Implement bearbin's suggestions
* Calculate volume properly
* Don't use std::pow for squaring
* Improved comments
* Really, should comments' style be checked?
|
| |
|
|
|
|
|
| |
* When the cause of destruction was world-induced (CanBeAt check failed) there is no tool. Pass the nullptr directly to ConvertToPickups and let it handle it.
* Fixes #4795
- Remove unused a_Digger parameter to ConvertToPickups.
|
|
|
|
| |
* Hopefully fixes #5094
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
| |
- Removed normal BlockHandler knowledge of block entities during conversion
+ Added cBlockEntity::ConvertToPickups that handles it
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
|
|
|
|
| |
* cBlockHandler.OnUpdate uses Vector3 params.
Also slightly changed how block ticking works.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix certain item drops
* Revert unwanted changes
* Revert unwanted changes
* Revert change
* Style fixes
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
The original bindings accepted nil as the World param, causing a crash.
|
| |
|
|
|
|
| |
* Blocks now have an effect upon plant growth, just like in vanilla.
|
| |
|
|
|
|
|
| |
Fixes the OnNeighborChanged endless recursion with large melon / pumpkin fields.
Fixes #2213.
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* Fixes #1174
* Fixes #1171
|
| |
|
|
|
|
|
|
| |
* Fixed farmland reversion checks not taking into account carrots and
potatoes
* Fixed #623
|
| |
|
| |
|
|
|