11433 Commits

Author SHA1 Message Date
Mattes D
f673e59b21 UrlClientTest: Added tests for root CA verification. 2023-05-19 16:25:12 +02:00
Mattes D
77f3cfbba8 UrlClient: Fixed blocking request's error return value. 2023-05-19 16:25:12 +02:00
Mattes D
ea35d7d23e MojangAPI: Removed an unused TLS root CA. 2023-05-19 16:25:12 +02:00
Mattes D
d9b2833e27 UrlClientTest: Added timeout to all tests. 2023-05-19 16:25:12 +02:00
Mattes D
97c49c6f29 cTCPLink and cUrlClient accept list of trusted root CAs for TLS. 2023-05-19 16:25:12 +02:00
Mattes D
c2e0344110 cTCPLink: Use the original connection hostname for SNI. 2023-05-19 16:25:12 +02:00
x12xx12x
800f1c0bc5 Auth SSL Fixes
- Fixed Login Breaking bug
- Auth and MojangAPI now use UrlClient
- fixed bug in UrlClient where one letter was missing in the HTTP Header
- added function to verify Urls from config files and error handling on bad Urls in config for Auth
2023-05-19 16:25:12 +02:00
Mattes D
c9522fb740 Removed all Printf-family functions from StringUtils.
Replaced them with fmt::format calls, including changes to the format strings. Also changed the format strings to use FMT_STRING, so that the format is checked compile-time against the arguments.
Also fixed code-style violations already present in the code.
2023-05-16 23:50:37 +02:00
Alexander Harkness
15513578c4
Try a timeout for jobs. 2023-04-17 20:35:53 +00:00
Michal Havlíček
669392d44a
Implement slime chunks. (#5484)
* Implement slime chunks.

* add cWorld::IsSlimeChunk

* add documentation for cWorld::IsSlimeChunk
2023-04-08 00:11:10 +02:00
stevenzr
dcad86e776
refactor: removed m_MojangAPI from RankManager (#5483)
* refactor: removed m_MojangAPI from RankManager

* docs: updated CONTRIBUTORS
2023-04-04 22:32:09 +02:00
x12xx12x
ceaebd00d8
Small Team Creation Fixes (#5479)
- Add additional explanation for team creation
- error message if team creation fails because team already exists

fixes #5466
2023-03-26 22:25:54 +00:00
Jomar Milan
fddbf65e28
Handle newlines in cIniFile (#5447)
* Handle newlines during read and write in cIniFile

When reading the ini file, replace \n with newline. When writing,
replace the newline with \n.

* Use ReplaceString instead of regex in IniFile

* Update cIniFile description

* Removed duplicate variable

* Revert "Removed duplicate variable"

This reverts commit de11bac047d871dfbffec28b72f72a2935bd339e.

* Removed duplicate variable

Now without plugin changes

---------

Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>
2023-03-22 11:20:59 +01:00
Tiger Wang
c747b4911e
Removed C style arrays from the BlockEntity folder (#5005)
* Removed C style arrays from the BlockEntity folder

* Update for loops with size_t where there are no item grids involved

* Fixed some casts in BrewingstandEntity.cpp

---------

Co-authored-by: bibo38 <bibo38@github.com>
Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>
2023-03-22 11:20:16 +01:00
Mattes D
cb2201daba
Added small embedded devices to README
A nonsense change pretty much only to trigger a rebuild due to missing binaries on the build server.
2023-03-08 09:23:42 +01:00
Michal Havlíček
847884b6a8
TNT minecarts exploding when riding over activator rails (#5469)
* TNT Minecarts exploding via activator rails

* Fuse animation

* Add TNT minecart explosion source to APIDesc
2023-01-25 20:50:08 +00:00
Michal Havlíček
7fdfb86441
Allow certain blocks to be placed on top of upside-down stairs/slabs (#5468)
* Placing certain blocks on top of upside down slabs and stairs

* remove TODO

* fix style errors

* IsAnyStairType helper function

* Block placement on stairs and slabs
2023-01-25 20:46:34 +00:00
Mattes D
b037636756
Changed Windows instructions to build out-of-source. 2022-12-26 16:54:25 +01:00
Tiger Wang
8a763d3bed
MojangAPI: Update certificates (#5456)
* MojangAPI: Update certificates

* Fixes 2115 (again).
* Fixes #4832.

* 🌺
2022-11-18 13:28:21 +00:00
Alexander Harkness
a7f287e572
Remove Travis from GETTING-STARTED.md 2022-11-15 22:48:44 +00:00
Mattes D
70daa63478
Added support for favicons of any filesize. (#5457) 2022-11-09 15:18:05 +00:00
Mattes D
fd36c0493a Fixed nonsensical comment. 2022-11-09 10:32:56 +01:00
Tiger Wang
7a73fd467c
Protocol: Use correct calculation for delta movements (#5455)
* Protocol: Use correct calculation for delta movements
2022-11-08 22:14:45 +00:00
Tiger Wang
5907df6808 Chunk: Optimise idle ticking
* Instead of chunks ticking player objects, and the player object in turn ticking its client handle, let the world tick the client handles. This means we no longer need to maintain a special-case for chunks that shouldn't be ticking, but still need to process players. Partially reverts to the state before 054a89dd.
2022-11-03 00:52:37 +00:00
x12xx12x
3b2a501524
Update Core Plugin (#5453) 2022-10-28 19:29:52 +03:00
plan1231
21ec3ebe26
Kick clients when resource pack rejected (#5440) 2022-10-28 15:54:02 +02:00
Debucquoy Anthony tonitch
16f3355bbb
rework of the color code with & and standard codes (#5416)
* adding build* to gitignore and tags for ctags

* Notation Changes

* Adding & Parser

* Avoid crash when & as first character

* Looking for @ in the rest of the project

* Formating style

* Modifying test to reflect new behaviours

* Adding a check for the first part

* fixup! Adding & Parser

style changes

* Update APIDesk.lua

* Update src/CompositeChat.cpp

Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>

* explaination on the antishlash with ampersand

* adding old deprecated formating

* Update src/CompositeChat.cpp

Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>

* Update src/CompositeChat.cpp

* Update src/CompositeChat.cpp

Co-authored-by: Debucquoy <debucqquoy.anthony@gmail.com>
Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>
2022-10-25 13:42:04 +02:00
Mat
c61dab94bd Update Core 2022-09-28 22:50:24 +03:00
Mat
b73cd1179f Update Core 2022-08-29 17:44:39 +03:00
Tiger Wang
64a24a4c79
ClientHandle: Fix block interaction regressions (#5431)
* ClientHandle: Fix block interaction regressions

* Fix reach distance being halved.
* Fix fire extinguish not working, fixes #5422.

* AddFaceDirection: deprecate non-vector version
2022-07-16 11:04:14 +00:00
Tiger Wang
f061840e83
ItemHandler: Fix torch handler not being called (#5433) 2022-07-15 22:51:06 +00:00
Bond-009
a2b19de078
Fix detector rail breaking/replacing blocks (#5429) 2022-06-28 23:02:04 +00:00
DarkoGNU
25208aefa4
Fix trampling for older clients and mobs (#5414)
* Fix trampling for older clients and mobs

* Style

* Improve a comment

* Improvements in HandleFarmlandTrampling
2022-06-28 21:49:41 +00:00
Bond-009
8e7a24924a
Fix building with clang 14 (#5428) 2022-06-24 22:31:37 +00:00
Debucquoy Anthony tonitch
f089103c2b
Additional Y height checks (#5405)
For redstone wire, block area bindings, and fire simulator.

Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2022-06-18 01:09:58 +01:00
Tiger Wang
2e23b7cfba Remove redundant initialisations
The static buffers here are immediately passed in to be overwritten.
2022-06-02 00:29:45 +01:00
Debucquoy Anthony tonitch
a8ef9d1437
Avoid spawn of silverfish when exploded by tnt (#5420) 2022-05-06 23:33:23 +00:00
x12xx12x
63b63c5d84
Added check for unexported but documented API (#5418)
Also fixed the errors
2022-05-06 23:26:13 +00:00
DarkoGNU
5d00247cce
Implement ranged attack for snow golems. Fix failed assertion (#5417)
* Implement ranged attack for snow golemas. Fix failed assertion when stopping the server

* Decrease snowball speed

* Adjust accuracy for snow golems

* Use a getter instead of m_World
2022-05-06 23:24:50 +00:00
DarkoGNU
3c75377ce6
Implement relative SendPlayerMoveLook. Use it in TurnToDirt (#5413)
* 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
2022-04-25 22:16:40 +00:00
Persson-dev
563570518a Moved comment to top 2022-04-21 18:57:55 +00:00
Persson-dev
9c42d09ff8 Add support for 1.14.x protocols 2022-04-21 18:57:55 +00:00
DarkoGNU
4f554e91ab
Implement farmland trampling (#5401)
* 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?
2022-04-21 18:56:21 +00:00
Simon Pribylski
844a339330
Protocol sources fixes (#5411)
* Move HANDLE_READ to header

* Fix compiler warnings

* Removed unnecessary default statement
2022-04-21 16:05:09 +00:00
Simon Pribylski
21bcb2a757
Improving 1.14 support (#5388)
* Fixing login

* Add basic 1.14 support

* Adding pktHorseWindowOpen to PacketTypeToStr

* Fixing build with clang

* Fixing inventories

* Add entities metadata

* Add particles

* Fixing style

* Fixing build with clang-tidy

* fixing build
2022-04-20 12:21:30 +02:00
x12xx12x
5261e316c5 handled the infinite loop and style 2022-04-20 07:41:02 +00:00
x12xx12x
fe983a1a45 Valid Height is now checked by vector. 2022-04-20 07:41:02 +00:00
x12xx12x
5ea7675eca Updated protocol functions to Vector3x
also added support in included functions
2022-04-20 07:41:02 +00:00
KingCol13
900f95c42b
Check height is within world for pistons and digging (#5396)
* Fixes piston and digging crashes.
2022-04-19 00:05:51 +01:00
Debucquoy Anthony tonitch
84632da652 Changing Copyright Years (happy 11) 2022-04-14 22:53:03 +00:00