0dd8e7d20d
Grass path: Drop dirt when broken
2021-12-14 01:17:42 -08:00
f860084092
Hoe: Allow grass paths to be tilled
2021-12-14 01:17:42 -08:00
a713b568e1
Shovel: Flatten grass blocks to paths
2021-12-14 01:17:15 -08:00
5dbc36142c
Chest: Use correct item handler
...
This prevents placed chests from becoming unusable, which is... quite
important for playability.
2021-12-14 01:16:41 -08:00
Alexander Harkness
7790ebc63b
Expand log4j mitigiation to cover more cases.
2021-12-10 23:00:37 +00:00
Alexander Harkness
0f8a8de77c
Mitigate against CVE-2021-44228
2021-12-10 23:00:37 +00:00
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
2021-12-01 23:31:10 +00:00
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>
2021-11-29 12:53:58 +00:00
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
2021-11-23 17:16:25 +00:00
Alexander Harkness
8b4fca4ec5
Dump the api as well as checking it.
2021-11-22 22:34:23 +00:00
Alexander Harkness
f9fc73f6cf
Fixup #5319
2021-11-22 21:54:58 +00:00
Alexander Harkness
1f9de1de9e
#5319
...
Archive luacheckrc
2021-11-22 19:35:00 +00:00
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>
2021-11-22 00:26:33 +00:00
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
2021-11-14 18:18:59 +00:00
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
2021-11-11 21:02:29 +00:00
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>
2021-10-03 21:29:45 +01:00
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!
2021-10-03 17:09:25 +00:00
Tiger Wang
1e4850a6c5
World: change spawnpoint type to int ( #5313 )
...
* World: change spawnpoint type to int
As Vanilla does.
2021-10-03 17:43:22 +01:00
Tiger Wang
8b0d0e96c3
Protocol 1.8: fix duplicated vector component in spawn packet ( #5314 )
...
* Fixes #5306
2021-10-03 12:29:44 +00:00
JK2K
be3111d133
Perform bed checks upon respawn ( #5300 )
...
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2021-10-02 21:28:24 +01:00
Tiger Wang
1a0d9450ea
Authentication flow: move construction, slim down classes ( #5312 )
...
- Remove extra members in ForgeHandshake
2021-10-02 21:27:32 +01:00
Rorkh
0197f25c07
Blaze shoot sound fix
2021-10-02 21:18:18 +01:00
Rorkh
4c5d9d38f4
Only nether-native mobs can see through lava
2021-10-02 21:18:18 +01:00
Rorkh
798fdb0709
Snipe skeleton achievment
2021-10-02 21:18:18 +01:00
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
2021-09-29 22:17:03 +00:00
Rorkh
6bbbc52d02
Permission-based player chat message formatting ( #5304 )
...
+ Permissions for chat message format access
2021-09-23 21:49:34 +01:00
Ethan Jones
7b0872aecc
BungeeGuard style proxy security and OnlyAllowBungee config ( #5291 )
2021-09-23 21:09:52 +01:00
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>
2021-09-16 07:31:16 +00:00
Ethan Jones
9712c5507c
Don't allow players in adventure mode to break blocks ( #5293 )
2021-09-15 17:33:45 +00:00
Ethan Jones
af93c297f4
Ignore dead entities and spectator players on pressure plates ( #5294 )
2021-09-15 17:33:18 +00:00
Ethan Jones
f09258d24e
CMake MinGW bug - https://gitlab.kitware.com/cmake/cmake/-/issues/5939 ( #5295 )
2021-09-15 17:32:01 +00:00
Ethan Jones
799bc419ff
Add LittleBigBug to CONTRIBUTORS ( #5297 )
...
I agree to the license terms :)
2021-09-15 17:31:22 +00:00
Tiger Wang
11ca2cf4c0
Disconnect: call HandleOutgoingData one last time
...
* Fixes #5285
2021-08-26 21:55:09 +01:00
Alexander Harkness
4b8952e438
Use more URL-Encoding when sending API requests.
2021-08-23 09:35:03 +01:00
Bart Ribbers
a78de88ac3
Fix typo in message send when getting achievements ( #5282 )
2021-08-21 11:07:16 +01:00
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
2021-08-20 11:58:08 +00:00
Rorkh
383867b6b0
Haybale damage reduction implementation ( #5277 )
...
* Haybale damage reduction impl
* Update Pawn.cpp
2021-08-04 10:58:54 +02:00
Tiger Wang
c6de5e9bc5
Remove one level of indent in statistics serialiser
2021-07-31 12:11:29 +01:00
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