Ryan Fox
0dd8e7d20d
Grass path: Drop dirt when broken
1 year ago
Ryan Fox
f860084092
Hoe: Allow grass paths to be tilled
1 year ago
Ryan Fox
a713b568e1
Shovel: Flatten grass blocks to paths
1 year ago
Ryan Fox
5dbc36142c
Chest: Use correct item handler
...
This prevents placed chests from becoming unusable, which is... quite
important for playability.
1 year ago
Alexander Harkness
7790ebc63b
Expand log4j mitigiation to cover more cases.
1 year ago
Alexander Harkness
0f8a8de77c
Mitigate against CVE-2021-44228
1 year ago
x12xx12x
3ff57559e3
ItemHandler initialisation is a constant expression ( #5344 )
...
* Transition to non-pointer item handler
* That is my destructor - I decide when I leave this world
* I declare your destruction private and you final
1 year ago
Feyo Korenhof
1be14ebf7f
Added ExperienceAmount variable to HOOK_PLAYER_FISHING and HOOK_PLAYER_FISHED ( #5345 )
...
* Implemented cServer::ScheduleTask() and cServer::TickQueuedTasks()
* Fixed formatting and added ScheduleTask to APIDesc
* Added feyokorenhof to contributors
* Added ExperienceAmount variable to all the hook calls.
* Made ExperienceAmount int reference instead of int in HOOK_PLAYER_FISHING. Fixed bug: a_Reward is now a reference
* Add documentation, change ItemFishingRod to pass in experience
Co-authored-by: Alexander Harkness <me@bearbin.net>
1 year ago
Tiger Wang
7c7890c658
Protocol: modernise plugin message handling ( #5325 )
...
- Remove handling for garbage data in command block sets
+ Add correct boolean value read (#1692 )
* Make better use of namespaced-id and string_view
1 year ago
Alexander Harkness
8b4fca4ec5
Dump the api as well as checking it.
1 year ago
Alexander Harkness
f9fc73f6cf
Fixup #5319
1 year ago
Alexander Harkness
1f9de1de9e
#5319
...
Archive luacheckrc
1 year ago
AirOne
39392bbeae
Bind more ClientHandle functions to Lua ( #5334 )
...
+ Bound the following functions to Lua
+ SendBlockBreakAnim
+ SendCollectEntity
+ SendDestroyEntity
+ SendDetachEntity
+ SendEditSign
+ SendLeashEntity
+ SendThunderbolt
+ SendUnleashEntity
Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
1 year ago
Tiger Wang
95bc2eac22
Protocol 1.8: fix plugin message payload read size ( #5324 )
...
* Read the entire payload of an unhandled vanilla plugin message, remove -1 offset. This was forgotten by #5085
* Fixes #5322
1 year ago
Tiger Wang
d49ce751ba
Miscellaneous fixes ( #5320 )
...
* 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
1 year ago
Ethan Jones
afe07fe090
Prevent placing of hangables on illegal blocks and break when support block broken ( #5301 )
...
+ Prevent placing of hangables on illegal items and break when support block is broken
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2 years ago
Tiger Wang
1d72306bae
Authenticator: avoid move assignments to self ( #5315 )
...
If authentication was off cClientHandle::m_Username ended up moved into itself. Add a copy to avoid this. Thanks @Seadragon91!
2 years ago
Tiger Wang
1e4850a6c5
World: change spawnpoint type to int ( #5313 )
...
* World: change spawnpoint type to int
As Vanilla does.
2 years ago
Tiger Wang
8b0d0e96c3
Protocol 1.8: fix duplicated vector component in spawn packet ( #5314 )
...
* Fixes #5306
2 years ago
JK2K
be3111d133
Perform bed checks upon respawn ( #5300 )
...
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2 years ago
Tiger Wang
1a0d9450ea
Authentication flow: move construction, slim down classes ( #5312 )
...
- Remove extra members in ForgeHandshake
2 years ago
Rorkh
0197f25c07
Blaze shoot sound fix
2 years ago
Rorkh
4c5d9d38f4
Only nether-native mobs can see through lava
2 years ago
Rorkh
798fdb0709
Snipe skeleton achievment
2 years ago
Tiger Wang
028a5735c5
Spectation: add dedicated pathway for spectator mode ( #5303 )
...
* Spectation: add dedicated pathway for spectator mode
+ Sync player rotation with spectated entity.
+ Add dedicated infrastructure to cPlayer for handling spectation, instead of misusing entity riding.
* Avoid infinite recursion when exiting spectation, fixes #5296
* AttachTo: Change parameter to reference
2 years ago
Rorkh
6bbbc52d02
Permission-based player chat message formatting ( #5304 )
...
+ Permissions for chat message format access
2 years ago
Ethan Jones
7b0872aecc
BungeeGuard style proxy security and OnlyAllowBungee config ( #5291 )
2 years ago
Ethan Jones
3b47eaadb8
Ignore dead movement ( #5292 )
...
* Ignore player updates from dead players #5289
* move the condition down a bit, add parentheses
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2 years ago
Ethan Jones
9712c5507c
Don't allow players in adventure mode to break blocks ( #5293 )
2 years ago
Ethan Jones
af93c297f4
Ignore dead entities and spectator players on pressure plates ( #5294 )
2 years ago
Ethan Jones
f09258d24e
CMake MinGW bug - https://gitlab.kitware.com/cmake/cmake/-/issues/5939 ( #5295 )
2 years ago
Ethan Jones
799bc419ff
Add LittleBigBug to CONTRIBUTORS ( #5297 )
...
I agree to the license terms :)
2 years ago
Tiger Wang
11ca2cf4c0
Disconnect: call HandleOutgoingData one last time
...
* Fixes #5285
2 years ago
Alexander Harkness
4b8952e438
Use more URL-Encoding when sending API requests.
2 years ago
Bart Ribbers
a78de88ac3
Fix typo in message send when getting achievements ( #5282 )
2 years ago
JK2K
503b3c220f
Slime spawinig in swamps ( #5281 )
...
* test commit
* hook test/ .gitignore
* Slime add light limitation
* Slime spawning moon light
* Casting fix for clang
* Removal of redundant changes
Extracted moon phases amount to const
2 years ago
Rorkh
383867b6b0
Haybale damage reduction implementation ( #5277 )
...
* Haybale damage reduction impl
* Update Pawn.cpp
2 years ago
Tiger Wang
c6de5e9bc5
Remove one level of indent in statistics serialiser
2 years ago
Tiger Wang
de329dc5ad
It is time to remove the statistics upgrade map
2 years ago
Rorkh
4221e08f3a
Paintings: add sound effects, remove critical hitting ( #5276 )
2 years ago
Tiger Wang
6a4460383e
Update to mybed 3.0.0 ( #5275 )
2 years ago
Alexander Harkness
940e03d0ec
Update Core ( #5274 )
2 years ago
Kiryu144
36a97d441b
Added y bounds checking for cPlayer::PlaceBlock ( #5194 )
2 years ago
Mattes D
179d6da490
Setting command-block's command requires a permission. ( #5270 )
2 years ago
x12xx12x
094cd6174f
Update README.md ( #5262 )
2 years ago
Alexander Harkness
4bb359f067
Update build script names to be more intuitive.
...
See: e77a4ab46d
2 years ago
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>
2 years ago
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
2 years ago
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.
2 years ago
Tiger Wang
4ec44751e2
ProtoProxy: encrypt in-place
2 years ago