summaryrefslogtreecommitdiffstats
path: root/src/Physics (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update Minecraft Wiki links to new domain (#5532)Spongecade2023-09-271-2/+2
| | | | | | | * Update Minecraft Wiki links to new domain * Added Spongecade to contributors * Sorted Spongecade
* Valid Height is now checked by vector.x12xx12x2022-04-201-1/+1
|
* Fixed Compiler Warningsx12xx12x2022-01-141-7/+7
|
* Miscellaneous fixes (#5320)Tiger Wang2021-11-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | * Protocol: update Abilities flags + Add Spectator handling * BioGen: move <iostream> include * ClientHandle: rename Respawn packet dimension check flag * Make it clearer what it's doing. * ClientHandle: move ProcessProtocolIn calls to World * Player: remove some redundant initialisation * Player: UpdateCapabilities enables flight for spectators * Produce growth: improve comments * ClientHandle: run unload checks using delta time * Fix forgotten initialisation of time member
* fixed crash on lua DoExplosion callx12xx12x2021-06-231-1/+1
|
* Explodinator performance optimisationsTiger Wang2021-02-071-4/+133
| | | | Thanks @lixfel (#4246)
* Explodinator: fix divide by zeroTiger Wang2021-02-072-13/+13
|
* Fix #5118Tiger Wang2021-02-071-2/+2
|
* Comment and code style fixTiger Wang2020-12-211-5/+5
| | | | | + Add static keyword - Don't capture everything in lambda
* Trace to surface of cube.KingCol132020-12-191-6/+6
|
* TNT Changes (#4970)KingCol132020-10-241-47/+68
| | | | | + 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.
* Merged OnBreak with OnPlayerBreak (#4967)12xx122020-10-082-19/+20
| | | | Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-6/+8
| | | | | | | | | | | | | | | * 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>
* Unify block entity pickup conversionTiger Wang2020-09-251-4/+1
| | | | | - Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-2/+2
| | | | | | | | | | | | | * 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>
* Use tracing for explosions (#4845)Tiger Wang2020-09-123-0/+324
* 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>