1
0
Commit Graph

11286 Commits

Author SHA1 Message Date
Tiger Wang
de329dc5ad It is time to remove the statistics upgrade map 2021-07-31 12:11:29 +01:00
Rorkh
4221e08f3a
Paintings: add sound effects, remove critical hitting (#5276) 2021-07-28 21:51:59 +01:00
Tiger Wang
6a4460383e
Update to mybed 3.0.0 (#5275) 2021-07-27 20:34:14 +00:00
Alexander Harkness
940e03d0ec
Update Core (#5274) 2021-07-25 19:50:19 +03:00
Kiryu144
36a97d441b
Added y bounds checking for cPlayer::PlaceBlock (#5194) 2021-07-23 10:14:01 +01:00
Mattes D
179d6da490
Setting command-block's command requires a permission. (#5270) 2021-07-20 18:48:05 +00:00
x12xx12x
094cd6174f
Update README.md (#5262) 2021-07-10 21:06:31 +00:00
Alexander Harkness
4bb359f067 Update build script names to be more intuitive.
See: e77a4ab46d
2021-07-10 21:59:18 +01:00
KingCol13
1d1fa91401
Chorus fruit teleport (#5259)
* Outline function for teleporting.

* Created new handler for chorus fruit.

* Fixed AttemptTeleport failing.

* Better names, working sound effect.

* Corrected naming.

* Remove stray LOGD.

* Offset teleport to middle of block.

* Style Fixes

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

* Style Fixes 2

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

* Move FindTeleportDestination to static cPawn method.

* cBoundingBox interface.

* Cleanup includes.

* Maybe exported to API?

* Change a_World to reference, add to APIDesc.

Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com>
2021-07-10 20:05:00 +00:00
Tiger Wang
e9265b1d01
Symmetry in MultiVersionProtocol to fix a crash (#5261)
+ Add HandleOutgoingData, which tests for m_Protocol before calling DataPrepared.
* Change std::function to bool + if/else to handle incoming data; it's almost certainly faster.
* Fixes #5260
2021-07-10 20:04:49 +00:00
KingCol13
68776c4d59
Item frame maps (#5258)
+ Send map data when item frame spawns.
+ Add some casts to placate compiler warnings.

* size_t for array access.
* Mark chunk dirty when rotation or item in item frame is changed.
2021-07-09 18:45:53 +01:00
Tiger Wang
4ec44751e2 ProtoProxy: encrypt in-place 2021-07-06 21:33:03 +01:00
Tiger Wang
fe82551f32 Replace chunk coordinates magic with numeric_limits 2021-07-06 21:33:03 +01:00
Tiger Wang
06a2b1211b Invalidate m_LastStreamedChunk when player position doesn't match
So teleporting to and back doesn't cause chunk sending to stop.

* Fixes #4531
2021-07-06 21:33:03 +01:00
Tiger Wang
bab5794f76 Remove some unused typedefs 2021-07-06 21:33:03 +01:00
Tiger Wang
e735faf755 Protocol: call the encryptor once before sending data 2021-07-06 21:33:03 +01:00
Tiger Wang
8a08b3d3b7 Remove outdated comment and redundant check
Refactoring made the comment no longer true.
The check isn't needed since no packets are sent, and Destroy does nothing, if m_HasSentDC.
2021-07-06 21:33:03 +01:00
Tiger Wang
3e8c945a09 Lighters: don't activate TNT when crouched
* Fixes #5247
2021-06-28 21:54:21 +01:00
Tiger Wang
17048fc1e3 Documentation: add statistics descriptions 2021-06-28 21:54:21 +01:00
Tiger Wang
208616041f Documentation: update chat colour link 2021-06-28 21:54:21 +01:00
Tiger Wang
3252b3d4dc Remove spammy LOGD output 2021-06-28 21:54:21 +01:00
Tiger Wang
b98e2c17e0 Don't flush ClientHandle data multiple times
* Change cWorld::m_Players to a vector
2021-06-28 21:54:21 +01:00
Tiger Wang
8b62245dfb Remove LUA_PLUGIN_NAME_VAR_NAME 2021-06-28 21:54:21 +01:00
Tiger Wang
ddf352e1e3 Remove orphaned API symbols
https://github.com/cuberite/cuberite/issues/5195#issue-860458139
2021-06-28 21:54:21 +01:00
Tiger Wang
81f63b6a09 Re-export SetBlockMeta
* Fixes #5195
2021-06-28 21:54:21 +01:00
Tiger Wang
04f02a675d Protocol: use dedicated packet for 1 block change
It's six bytes smaller.
2021-06-28 21:54:21 +01:00
Tiger Wang
93611b8437 SetBedPos: make World parameter non-null
* Fixes #5190
2021-06-28 21:54:21 +01:00
Tiger Wang
2109057119 Windows: do not include sdkddkver before defining WIN32_WINNT
Including that header before defining the macro defaults the SDK to the latest version, not what we want.
2021-06-28 21:54:21 +01:00
Tiger Wang
91c1d1c58a Windows backtrace: fprintf to fputs 2021-06-28 21:54:21 +01:00
Alexander Harkness
17820b94f6 Double slabs are not transparent blocks
Fixes #4630
2021-06-27 17:21:44 +01:00
liuxsdev
ba07db937c
add missing ";;" in case statement (#5251) 2021-06-26 07:32:56 +00:00
Tiger Wang
ecc8ffbd80 Compile the entire Lua stack as C++
* Fixes #5216
2021-06-25 10:17:53 +01:00
Alexander Harkness
e77a4ab46d Compile with 4 threads on Jenkins builds, the build slaves were upgraded 2021-06-23 23:52:31 +01:00
x12xx12x
5b8b6eeaa8 fixed crash on lua DoExplosion call 2021-06-23 17:13:35 +01:00
x12xx12x
cc9f7c06b3
Add optional prefix parameter to LOG functions (#5229)
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2021-06-22 23:09:06 +01:00
TheHyper45
3b35a00397
Death messages for tamed pets and ocelots are now tamable. (#5243)
* Fixing bugs regarding wolfs and ocelots

* Death messages appear after killing tamed ocelots and wolfs

* Style fix

* Added myself to the CONTRIBUTORS file

* Removed redundant string initialization

* Removed an unsafe cast.

* Changed the order of initialization of fields in constuctor of class cOcelot
2021-06-19 21:25:24 +00:00
Alexander Harkness
4e48464bb3
Move More CI into Jenkins - Travis Migration Progress (#5241)
* Add build stage to Jenkinsfile

* Run travisbuild in bash rather than sh

* Add GCC/Clang differentiation

* Use different working directory for each build type.

* Correct directory name

* Remove travis config file

* Always clean workspace afterwards
2021-06-17 08:31:29 +00:00
Alexander Harkness
62e95745ac
Migrate off CircleCI to Jenkins (#5230)
* Add Jenkinsfile

* cd src

* Escape wildcards

* Refactor stages

* Remove CircleCI junk

* Make clang-tidy do something

* updated regex to include only the files in the base src directory

* fixed errors displayed by new clang tidy version

* adjust clang core count to actual count

* Update README with new Jenkins build

Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
2021-06-15 09:00:02 +00:00
Isaac McFadyen
db68179776
Added AArch64 to easyinstall.sh (#5237)
* Added case statement in easyinstall.sh.

Added case statement in easyinstall.sh to allow install on Raspberry Pi 4 Ubuntu x64 (AArch64).

* Added mcfadyeni to CONTRIBUTORS
2021-06-09 23:32:05 +00:00
Mat
5b440c3ca7
Replace invalid references in deprecation messages (#5235) 2021-06-07 07:49:45 +00:00
12xx12
1322b0c4d1
fixed open inventory crash (#5233) 2021-06-06 20:49:18 +00:00
12xx12
e5fc65264b
Added standardised way to Log with plugin name (#5227)
* added logging functions to each plugin

* added documentation

* modified the global LOG macro

* updated the way of string composition

* removed cloumn

* removed capital v
2021-05-29 16:28:57 +00:00
12xx12
c7febf86e9
added check for harvestation in oreblock handler (#5226) 2021-05-26 18:07:50 +02:00
Feyo Korenhof
9ddc3635d6
Implemented cServer::ScheduleTask() and cServer::TickQueuedTasks() (#5224) 2021-05-26 18:07:32 +02:00
Tiger Wang
d92509a6e7
Re-implement up/down placement metadata (#5219)
+ Use player position when placing blocks which can face up or down, seems to better correspond to Vanilla behaviour.
* Fixes #4651
2021-05-14 10:42:08 +01:00
Tiger Wang
ce8d8388d6
Windows: remove extra newlines in backtrace (#5218)
- Remove DLL lines, not generally needed.
2021-05-06 14:25:12 +00:00
Tiger Wang
a62b2b1be2
Move item placement into item handlers (#5184)
* Move item placement into item handlers

+ Add appropriate CanBeAt checks in cPlayer::PlaceBlocks, into which all placement handlers call.
* Partly addresses #5157
* Fixes #4878
* Fixes #2919
* Fixes #4629
* Fixes #4239
* Fixes #4849

Co-authored-by: changyong guo <guo1487@163.com>
Co-authored-by: Xotheus <shady3300@outlook.com>
Co-authored-by: Krist Pregracke <krist@tiger-scm.com>

* Review fixes

* Update APIDesc.lua

* Rename

Co-authored-by: changyong guo <guo1487@163.com>
Co-authored-by: Xotheus <shady3300@outlook.com>
Co-authored-by: Krist Pregracke <krist@tiger-scm.com>
2021-05-05 13:25:10 +00:00
Tiger Wang
34bf5c0d9d Rename files to match code 2021-05-04 16:11:56 +01:00
nshah25
8be1dd54bb
Add player statistics to API (#5193)
* Fixed issue #5166

Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2021-05-03 21:07:09 +01:00
Tiger Wang
626f8b2350
Style: specify include relativity (#5217)
* Style: specify include relativity, remove class prefix

* Fixes 4901

* Undo class name
2021-05-03 19:51:24 +00:00