69cb575789
Merge branch 'stable'
2021-10-19 19:05:25 +01:00
fee6478cbe
Updated BedrockData and BedrockProtocol for 1.17.40 support
2021-10-19 19:00:29 +01:00
9c5cec77b1
3.25.1 is next
2021-10-19 18:27:30 +01:00
f48b703533
Release 3.25.0
3.25.0
2021-10-19 18:27:26 +01:00
70636f6eb4
Protocol changes for 1.17.40
2021-10-19 18:00:34 +01:00
c70b80c273
ItemEntity: implement partial itemstack pickups in the dumbest way possible
...
Given the various limitations and flexibilities posed by EntityItemPickupEvent, I settled on this as the simplest way to deal with the problem.
- EntityItemPickupEvent may have its destination inventory changed, so we can't cache the result of getAddableItemQuantity() to use after the event.
- The item itself may have changed, so even if we thought we could add some items before the change, we might not be able to afterwards.
Considering the above facts, it's better to just give the whole itemstack to EntityItemPickupEvent, and let plugins use getAddableItemQuantity() on their own to decide if their chosen inventory can accommodate the item or not.
If it can't, then we'll just drop it on the ground.
This also fixes a potential issue where plugins changing the item to a custom one might end up with their items and the actual items both just vanishing if the target inventory was full.
closes #4499
2021-10-17 22:37:49 +01:00
a794d24c81
Added a tool to generate a Markdown document of all core permissions
2021-10-17 17:02:18 +01:00
8db5732b44
Drop respect/validation
...
it's not worth this turning into compatibility baggage just so that we can parse plugin_list.yml, especially when we have new ways to handle data parsing coming in the pipeline.
For something as small as plugin_list.yml, it's easier (and in this case better too) to just validate it manually (respect/validation was anyway too strict considering it's YAML we're dealing with).
2021-10-15 17:15:46 +01:00
48f809d3fa
Removed another dead PHPStan error pattern
...
this was actually a PHPStan bug fixed in 0.12.99.
2021-10-15 17:01:09 +01:00
0348236860
fucking CS again
2021-10-14 15:56:50 +01:00
8c07748100
RakLibInterface: print packet exception info as a block using Utils::printableExceptionInfo()
2021-10-14 15:55:08 +01:00
06e7338ff9
Move exception printing utilities from MainLogger to Utils
...
where they can be useful to other stuff apart from just the logger
2021-10-14 15:54:20 +01:00
bdbfa70558
Server: break some isolated stuff out of Server::__construct()
2021-10-14 15:44:18 +01:00
7a4af7a0bc
SignalHandler: fix CS
...
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2021-10-14 15:14:27 +01:00
34b1392598
Cross-platform signal handler
2021-10-14 15:03:11 +01:00
321345fcc8
Sapling: simplify condition
2021-10-13 23:00:38 +01:00
0ac9f4fe61
BlockFactory: move SweetBerryBush to its proper place
2021-10-13 22:26:51 +01:00
2db53775e0
Sort item_from_string_bc_map using SORT_NATURAL
2021-10-13 21:01:59 +01:00
8523f0fb0b
CS fix
2021-10-13 20:31:24 +01:00
b570324288
LegacyStringToItemParser: rely exclusively on item_from_string_bc_map.json, do not interpret integers given as strings
...
fixes #4507
2021-10-13 20:29:18 +01:00
6284cd14c7
LegacyStringToItemParser: added getMappings()
2021-10-13 20:19:44 +01:00
ce8af4e3bc
4.0.0-BETA6 is next
2021-10-13 00:02:01 +01:00
b65e89b605
Release 4.0.0-BETA5
4.0.0-BETA5
2021-10-13 00:01:56 +01:00
d3f74d6ce1
Merge branch 'stable'
2021-10-12 23:32:43 +01:00
bbd925abc4
Merge commit '974d08efd62c52c1c8ac92cb1b67ac157908fd71'
2021-10-12 23:31:50 +01:00
4bf6205a6c
Merge commit '289553fa46fc26b03db73db23481a98d6ddb12a5'
2021-10-12 23:28:35 +01:00
b5699679ef
Merge commit 'e38866c4ba90f8efd5630dbe674fd7ca15f586ff'
2021-10-12 23:23:27 +01:00
824a89edfe
Merge commit 'e032b8fe208a053441c9fbd377209740008cddb8'
2021-10-12 23:12:17 +01:00
ead9aae23c
Updated build/php submodule to pmmp/php-build-scripts@fab0cbeaae
2021-10-12 23:10:06 +01:00
aefa0afd7c
DefaultPermissions: Order registrations alphabetically
2021-10-12 22:17:46 +01:00
ec2699ffee
DefaultPermissions: fix description of timings command permission
2021-10-12 22:16:20 +01:00
49c1e4c06e
Implement fletching table ( #4501 )
2021-10-12 21:21:05 +01:00
9b94a4661b
ItemTranslator: Use LegacyItemIdToStringMap instead of reading files directly
2021-10-11 22:17:40 +01:00
62f11360ee
Added unit tests for getAddableItemQuantity()
2021-10-11 21:52:27 +01:00
a5833327f0
Inventory: added getAddableItemQuantity()
...
this mostly reuses the code from canAddItem().
2021-10-11 21:46:27 +01:00
d73ea8efe4
FlatGeneratorOptions: Do not hardcode biome ID
2021-10-11 21:32:20 +01:00
835e18ce6e
Changelog: Changed utils\Color to color\Color ( #4502 )
...
[ci skip]
2021-10-11 20:15:44 +01:00
01c0602043
Server: do not attempt to generate a new world if it already exists
2021-10-11 17:48:08 +01:00
8fd475f87b
WorldManager: Check generator options of worlds before loading them, too
2021-10-11 17:44:38 +01:00
34f54750c8
Added support for creation-time validation of generator options, closes #2717
2021-10-11 17:37:47 +01:00
092aabeb97
fix CS
2021-10-11 17:21:19 +01:00
89d7b7198f
Server: drop support for tagging generator options onto the 'generator' key in pocketmine.yml
...
the 'preset' key should be used for this purpose instead.
This couldn't be dropped until now due to the shitty handling of unknown generators.
2021-10-11 17:20:49 +01:00
70deea0ef9
Flat: Move preset handling to a FlatGeneratorOptions unit
2021-10-11 16:53:08 +01:00
859cdfa5d2
GeneratorManager: removed unused parameter from getGenerator()
2021-10-11 16:18:38 +01:00
fa93a8d78f
Server: Error on unknown generators when generating new worlds from config, instead of silently using DEFAULT
...
this is consistent with the behaviour of loading worlds.
2021-10-11 16:13:32 +01:00
7b6632941d
GeneratorManager::getGenerator() now returns null for unknown generator aliases
...
instead of returning Normal::class (indistinguishable from successful match) or throwing an exception (pain in the ass to handle).
2021-10-11 16:04:36 +01:00
e62794e4cf
TypeConverter: fixed PHPStan errors
2021-10-11 15:17:32 +01:00
500c298aaf
Disallow the use of @handleCancelled on non-cancellable events
...
closes #3464
2021-10-11 15:12:16 +01:00
8ac16345a3
TypeConverter: account for items without properly mapped IDs
...
fixes #4459
2021-10-11 15:05:08 +01:00
19a66a8d03
committing the new strings would have helped ...
2021-10-11 01:14:00 +01:00