e30b1ee2c7
Clean up entity and tile saveID handling
...
we only ever need the first entry, so there's no point storing all of them. In addition, the field is private, which guarantees that nothing else needs the array either.
This also fixes phpstan/phpstan@c50650c5dd .
2020-11-12 21:49:12 +00:00
04b038ff4b
[ci skip] more detail to PM4 changelog
2020-11-12 21:34:12 +00:00
0d9561c93f
Removed crafting data cache from CraftingManager
2020-11-12 21:30:59 +00:00
31089ce3b2
Timings: added broadcastPackets timer
...
the body of this function is potentially very expensive and isn't currently recorded by any timer.
2020-11-12 17:53:07 +00:00
afbef242c6
bootstrap: remove useless phpdoc
2020-11-12 17:12:08 +00:00
5efd0eba13
Imports cleanup
2020-11-12 17:11:34 +00:00
c4d35d52e8
Do not store a pre-compressed cache for crafting data
...
this reduces bandwidth efficiency because it can't be compressed with everything else this way. If we want to cache stuff sent during the login sequence, it's better to stuff a bunch of stuff into a batch (e.g. crafting, creative, actor ids, biome defs) and pre-compress that as one big package instead.
2020-11-11 18:20:03 +00:00
8f36957c10
phpstan: drop some dead level 8 ignoreErrors
2020-11-10 22:46:30 +00:00
21d37623f8
sync phpstan level 8 baseline with 75f2f12b99
2020-11-10 22:46:15 +00:00
d08c9ee634
Merge remote-tracking branch 'origin/stable'
...
# Conflicts:
# resources/vanilla
# src/pocketmine/VersionInfo.php
2020-11-10 22:44:59 +00:00
574b7f6343
3.15.5 is next
2020-11-10 16:48:18 +00:00
e8b6b56330
Release 3.15.4
3.15.4
2020-11-10 16:48:18 +00:00
c368ebb5e7
InventoryTransaction: beware of conflicting slot change actions with the same origin/target
...
these types of chains would never normally occur, but they've been seen in the wild. Attempting to resolve such chains has exponentially increasing complexity.
2020-11-10 16:45:20 +00:00
75f2f12b99
NetworkSession: rename some badly-named hooks
2020-11-10 15:01:48 +00:00
e23379c34b
EncryptionContext: provide the packet ID in the exception message
2020-11-10 14:45:19 +00:00
6a266bcbd1
Separated XUID stuff from PlayerInfo into its own XboxLivePlayerInfo
2020-11-10 14:25:08 +00:00
c43f14a2d2
Updated phpstan checkExplicitMixed baseline to account for changes in 463bc044df
2020-11-10 14:06:13 +00:00
6c02bac437
Updated DevTools submodule to 66b8f7dfd77f78478a180e40137e17606301233e
2020-11-09 20:30:22 +00:00
463bc044df
Rename PluginLoadOrder -> PluginEnableOrder
...
this more accurately describes its real purpose.
2020-11-09 20:28:08 +00:00
6cf875ca3a
Item: rename onActivate() to onInteractBlock()
2020-11-09 19:33:13 +00:00
8c480ffab9
Player: fix a few more cases of held-item getting trashed after some events
2020-11-09 19:31:48 +00:00
e573226025
ItemStack: fixed phpstan failure
2020-11-09 19:10:02 +00:00
2bcb398db9
ItemStack: added jsonSerialize
2020-11-09 19:05:00 +00:00
1d02829d6f
[ci skip] more detail for World API changes on PM4
2020-11-09 14:01:27 +00:00
66955d4b99
World: make loadChunk() more useful, drop useless proxy function getOrLoadChunk()
2020-11-09 13:41:46 +00:00
3c6a64f91b
Fixed armour equipment logic, close #3896
...
this isn't perfect because the client expects to be the boss here and is also inconsistent.
2020-11-09 13:32:12 +00:00
4e91009492
Armor: fixed equipping when right-clicking air instead of a block
...
this action (which is more accurately referred to as 'activate item' or 'use item' in other areas) always fires on right-click when holding any item, whether aiming at a block or not.
2020-11-09 12:47:36 +00:00
3bf87378ef
Merge branch 'stable'
...
# Conflicts:
# resources/vanilla
# src/pocketmine/VersionInfo.php
# src/pocketmine/level/LevelTimings.php
2020-11-08 19:44:30 +00:00
fa920aa868
Misplaced the changelog AGAIN
2020-11-08 19:25:55 +00:00
a421d32273
3.15.4 is next
2020-11-08 14:48:31 +00:00
6c21c23444
Release 3.15.3
3.15.3
2020-11-08 14:48:31 +00:00
55e0d9c520
Properly time chunk loading and chunk sending on timings reports, closes #3895
2020-11-08 14:30:12 +00:00
f43d20b47a
Move attribute net sync to NetworkSession
2020-11-08 14:15:11 +00:00
64afb6f2e2
Move responsibility of firing chunk requests from World to NetworkSession
...
this is, after all, all about sending chunks ...
2020-11-08 14:14:43 +00:00
4ae7efbfbc
[ci skip] add some documentation to Player internals
2020-11-08 14:03:30 +00:00
ffff0a6244
NetworkSession: remove obsolete TODO
2020-11-08 14:03:30 +00:00
b059e0b475
Item: fixed wrong tag being removed during serialization of custom name ( #3894 )
2020-11-07 01:25:37 +00:00
beb6a50883
Merge remote-tracking branch 'origin/stable'
...
# Conflicts:
# composer.lock
# resources/vanilla
# src/pocketmine/Player.php
# tests/phpstan/configs/runtime-type-checks.neon
2020-11-06 13:18:49 +00:00
528726068e
phpstan 0.12.54
2020-11-06 13:09:04 +00:00
3aa902ff77
Updated composer dependencies
2020-11-06 13:07:28 +00:00
e6348bbd34
Entity: do not assume that save IDs are always strings
...
this is only the first of many changes needed to make entity savedata fully format-agnostic, but it's a start.
2020-11-06 13:05:17 +00:00
37ee3f2775
Player: fixed orderChunks performance issue on newly-generated maps
...
every time a chunk passed through Level->generateChunkCallback(), it fired onChunkChanged() for chunk listeners, which in turn caused players to rerun chunk orders even though the target chunk had not been sent yet anyway.
2020-11-05 16:17:39 +00:00
bfdcc12e81
phpstan 0.12.54
2020-11-05 14:49:00 +00:00
4b46549cd1
fix PHPStan failure
...
setDirtyFlag has a void return type, so PHPStan assumes it's non-pure and invalidates the type info.
2020-11-05 14:35:23 +00:00
058a3b3fa6
relocate some world-specific logic from Chunk to World
2020-11-05 14:28:36 +00:00
8762d44506
World: skip lighting updates on chunks which are not yet light populated
2020-11-04 17:50:16 +00:00
72ace3951e
InGamePacketHandler: fixed crafting table breaking when clicked while sneaking
2020-11-03 22:56:20 +00:00
142102a054
ItemFactory: remap bucket:9 and bucket:11 to their appropriate counterparts
2020-11-03 19:44:57 +00:00
518a7827a6
BlockFactory: make slab registration slightly less awful to look at
2020-11-03 19:28:32 +00:00
32929925aa
Block: added a bunch of state manipulation APIs
2020-11-03 19:13:32 +00:00