10014 Commits

Author SHA1 Message Date
Dylan K. Taylor
75a4136ab2 Player: fix bug in unloadChunk() causing entity artifacts on world change 2019-06-25 14:17:56 +01:00
Dylan K. Taylor
de10e401bf Fixed wrong chunks being sent to players post-teleport or post-world-change 2019-06-25 13:41:03 +01:00
Dylan K. Taylor
d15284e638 work on moving inventory network functionality to network layer 2019-06-25 13:28:01 +01:00
Dylan K. Taylor
9f09dc3dd7 Player: Log a debug message when GC kicks in
I use this frequently to identify leaks. This isn't expected to appear immediately after disconnect, but it shouldn't take long to appear.
2019-06-24 17:46:30 +01:00
Dylan K. Taylor
91580ce321 fix bug in InventoryCloseEvent 2019-06-24 17:27:12 +01:00
Dylan K. Taylor
181cfef731 Remove a whole bunch of useless crap from PluginLogger
this is pretty much just an implementation of a NTS attachable logger now. It should probably be converted into a trait.
2019-06-23 19:39:40 +01:00
Dylan K. Taylor
197a56e3e1 move BookEditPacket handler out of Player 2019-06-23 19:23:20 +01:00
Dylan K. Taylor
3103579ba6 Merge branch 'stable' 2019-06-22 20:26:21 +01:00
Dylan K. Taylor
6925451f3f StartGamePacket: added rogue field
this was added after 1.11.0 without a protocol version bump.
2019-06-22 20:25:50 +01:00
Dylan K. Taylor
6db2a3a0fb Merge branch 'next-minor' 2019-06-22 19:49:18 +01:00
Dylan K. Taylor
51f299f196 Merge branch 'stable' into next-minor 2019-06-22 19:46:23 +01:00
Dylan K. Taylor
0273bd4f53 Merge branch 'next-minor' 2019-06-22 16:05:17 +01:00
Dylan K. Taylor
2bb52cf811 Merge branch 'stable' into next-minor 2019-06-22 16:03:28 +01:00
Luke
6afc689529 Add Level->getTimeOfDay(), closes #2908 (#2979) 2019-06-22 16:00:18 +01:00
Dylan K. Taylor
ce74549ba3 Use 10 bits for Y coordinate in blockhash
fixes #2553
2019-06-22 15:53:56 +01:00
Dylan T
46054803d5
[ci skip] tinkering with readme logo alignment 2019-06-19 14:04:30 +01:00
Dylan T
a9f99240b5
readme: even less noise [ci skip] 2019-06-19 13:57:20 +01:00
Dylan T
a16b44ea12
readme: reduce useless noise [ci skip] 2019-06-19 13:51:16 +01:00
Dylan K. Taylor
ff8ca99c9f CrashDump: revert removal of RCON password redact in 738e310798f5a4742b2dc81a926bd0989e543ee5
there's guaranteed to be some plant pot who uses 4.0, leaks his RCON password, downgrades back to 3.x, and then gets hacked.
2019-06-18 19:53:43 +01:00
Dylan K. Taylor
c5707f6174 update DevTools submodule 2019-06-18 18:58:53 +01:00
Dylan K. Taylor
2559f5ec2b Moved Player-related classes to pocketmine\player namespace 2019-06-18 18:51:36 +01:00
Dylan K. Taylor
e82a40b2ba forgot to stage this for b18bd4f33ce606ad594b56dd4785b650d21cd695 2019-06-18 17:37:38 +01:00
Dylan K. Taylor
c66af4648c Move thread-related classes from pocketmine to pocketmine\thread namespace 2019-06-18 17:36:25 +01:00
Dylan K. Taylor
075f49aef0 don't send double disconnect messages 2019-06-18 16:22:41 +01:00
Dylan K. Taylor
709963f90a shut up PhpStorm 2019-06-18 16:07:43 +01:00
Dylan K. Taylor
b18bd4f33c rename SessionHandler -> PacketHandler 2019-06-18 16:02:46 +01:00
Dylan K. Taylor
87c3636d44 ResourcePacksSessionHandler: moar debug 2019-06-18 15:10:58 +01:00
Dylan K. Taylor
94299534b3 NetworkSession: fix some blind spots on logging 2019-06-18 15:01:44 +01:00
Dylan K. Taylor
9df2ca3655 fixup some formatting issues 2019-06-18 14:12:37 +01:00
Dylan K. Taylor
bb675ac99b Set parallel bootstrap file if the extension is loaded 2019-06-18 14:05:39 +01:00
Dylan K. Taylor
7b049b6db1 NetworkSession: use a better check for timeout 2019-06-17 17:30:42 +01:00
Dylan K. Taylor
e0a9ea2573 Player: clean up some crazy spawn logic in constructor
this was probably a leftover from some old code, I guess
2019-06-17 17:07:31 +01:00
Dylan K. Taylor
db3305cb16 Remove Entity->isClosed() checks from places where they don't make sense
in all of these cases, this is just potentially concealing bugs. Closed entities should never appear at these points.
2019-06-17 16:39:46 +01:00
Dylan K. Taylor
92e81e3298 Player: move some respawn net sync logic to NetworkSession 2019-06-17 16:27:04 +01:00
Dylan K. Taylor
3c677bd3ec added PermissibleDelegateTrait to cut down boilerplate in Player and ConsoleCommandSender 2019-06-17 16:10:13 +01:00
Dylan K. Taylor
20f092a685 Living: Do not use spl_object_id() for identifying effects
it's possible for these to have different IDs if they were cloned, serialized or copied between threads.
2019-06-17 15:58:33 +01:00
Dylan K. Taylor
fe98b6c765 EnumTrait: rename getEnumName() -> name()
this is more concise and brings it more in line with Java.
2019-06-17 14:55:25 +01:00
Dylan K. Taylor
c45c1c930e SetEntityMotionPacket: Mark as garbage serverbound 2019-06-17 14:22:08 +01:00
Dylan K. Taylor
b344427a30 Added a hack to allow dropping garbage serverbound packets sent by a buggy client 2019-06-17 14:20:29 +01:00
Dylan K. Taylor
698193622a WorldManager: rename get/setAutoSaveTicks() to get/setAutoSaveInterval()
this is less ambiguous.
2019-06-16 18:23:13 +01:00
Dylan K. Taylor
4878fc4c93 Merge branch 'stable' 2019-06-16 17:18:17 +01:00
Dylan K. Taylor
cd48d8272c added changelog for 3.8.5 2019-06-16 17:17:21 +01:00
Dylan K. Taylor
6d09460abc Merge branch 'changelogs' into stable 2019-06-16 17:12:57 +01:00
Dylan K. Taylor
b71bb867f4 DefaultPermissions: remove pocketmine.command.reload 2019-06-16 16:52:47 +01:00
Dylan K. Taylor
94180cda72 Merge branch 'next-minor' 2019-06-16 16:42:05 +01:00
Dylan K. Taylor
5a17a0d1aa Merge branch 'stable' into next-minor 2019-06-16 16:37:23 +01:00
Dylan K. Taylor
b38c81c96f backport f84a1729c: Inventory: added swap() function 2019-06-16 16:35:34 +01:00
Dylan K. Taylor
0fabc0c199 backport b8d1eb20b: EntityDeathEvent: add XP amount API, closes #2690 2019-06-16 16:31:03 +01:00
Dylan K. Taylor
0ca07ad075 Fire QueryRegenerateEvent every 1 second instead of every 25, fixes #2670 2019-06-16 16:17:06 +01:00
Dylan K. Taylor
60b183b0d9 backport a753c1342: Clean up Query cache handling, remove useless timeouts
the timeout was entirely useless, because:
- when shorter than 25.6 seconds (512 ticks) it would cause caches to be needlessly destroyed and regenerated
- when longer than 25.6 seconds, just made outdated caches persist for longer, even after the query info was regenerated.

This now uses a mark-dirty model to deal with caches, which means that plugin modifications to the query data will be reflected immediately, regardless of when they are made. Previously, modifying the result of Server->getQueryInformation() would have inconsistent results.
2019-06-16 16:08:27 +01:00