10909 Commits

Author SHA1 Message Date
Dylan K. Taylor
8a6381c3fa StupidJsonDecodeTest: add some extra test vectors 2019-10-01 13:25:20 +01:00
Dylan K. Taylor
735efeaa13 Merge branch 'stable' 2019-09-26 11:30:36 +01:00
Dylan K. Taylor
d0d61597c7 StupidJsonDecodeTest: use getClosure() instead of traditional mess
this is faster and requires less code.
2019-09-26 11:28:40 +01:00
Dylan T
7a2a4e2aa3
change some heading sizes [ci skip] 2019-09-25 12:59:04 +01:00
SOFe
e41a2c0792 Link to StackOverflow in README (#3084) 2019-09-23 11:56:37 +01:00
Dylan K. Taylor
262dbc0346 ParticleCommand: fixup for 6e9d2e1c8af7d9debc6ed14f98e4f54d29753625 2019-09-23 11:54:17 +01:00
Frago9876543210
6e9d2e1c8a InstantEnchantParticle: add Color into constructor (#3118) 2019-09-23 11:43:06 +01:00
Dylan K. Taylor
15694279c7 Merge branch 'stable' 2019-09-18 13:30:58 +01:00
Frago9876543210
ec0558597b CommandParameter: change byte1 field to "flags" (#3115) 2019-09-18 11:10:42 +01:00
Dylan T
11a6e04a28
EnderPearl: remove collision box hack (this isn't needed for MCPE anyway)
This was intended to address the problem that ender pearls would not stop on grass, saplings, and other similar objects. However, they don't stop on such objects in MCPE anyway, only PC.
2019-09-18 10:02:52 +01:00
Dylan K. Taylor
70b1ac856d ZippedResourcePack: fix mishandling of wrong root JSON type (crashdump #2840512) 2019-09-17 11:01:33 +01:00
Dylan T
d724374d1a
StupidJsonDecodeTest: add failing test case for #3113 2019-09-16 15:53:00 +01:00
Dylan K. Taylor
1866de269b OfflinePlayer: fix reading wrong NBT type in getFirstPlayed(), close #3112
This bug was introduced by 65927e69651652917c928990fb8643cfa33f0096.
2019-09-04 07:59:28 +01:00
Dylan K. Taylor
f755ea6043 DestroyBlockParticle: keep block reference around instead of runtimeID
we'll need this for protocol abstraction
2019-08-27 19:25:55 +01:00
Dylan K. Taylor
1de5d35dfc add a CLI tool for conversion 2019-08-26 19:03:48 +01:00
Dylan K. Taylor
f720a58013 RegionWorldProvider: don't assume that path has a trailing directory separator 2019-08-25 19:50:51 +01:00
Dylan K. Taylor
a53f698d38 PocketMine.php: remove useless set_time_limit() call
this is hardcoded to zero in the PHP core anyway.
2019-08-25 19:41:53 +01:00
Dylan K. Taylor
c4376d13ae update to latest SPL 2019-08-25 19:32:20 +01:00
Dylan K. Taylor
6e692d76d5 make lock-file code more reusable 2019-08-25 18:50:33 +01:00
Dylan K. Taylor
5c1f1f00cb move assert.exception to PocketMine.php with the other stuff 2019-08-25 18:18:14 +01:00
Dylan K. Taylor
2bcb720668 Server: get rid of \pocketmine\DEBUG 2019-08-25 18:11:10 +01:00
Dylan K. Taylor
d1a8bef1e6 fix test 2019-08-25 17:52:39 +01:00
Dylan K. Taylor
8b40a8f217 PocketMine.php: move INI entry setting to a separate function 2019-08-25 17:50:45 +01:00
Dylan K. Taylor
0c31b8731f PocketMine.php: use main logger to emit force-kill debug 2019-08-25 17:48:13 +01:00
Dylan K. Taylor
9d1239ed67 PocketMine.php: get rid of redundant LOCK_FILE_PATH constant 2019-08-25 17:39:57 +01:00
Dylan K. Taylor
3eea2442a7 move filesystem-related functions to pocketmine\utils\Filesystem 2019-08-25 17:36:50 +01:00
Dylan K. Taylor
40da5059c9 PocketMine.php: remove \pocketmine\DATA dynamic constant 2019-08-25 16:55:24 +01:00
Dylan K. Taylor
51ed564c5e SetupWizard: remove non-obvious dependencies on dynamic constants, require path in constructor 2019-08-25 16:46:01 +01:00
Dylan K. Taylor
fdfbaf4e95 make startup performance warnings a little more coherent 2019-08-25 16:34:26 +01:00
Dylan K. Taylor
ad0f100f8e remove \pocketmine\START_TIME, add Server->getStartTime() 2019-08-25 16:25:27 +01:00
Dylan K. Taylor
647f86a5b8 PocketMine.php: remove redundant ini_set()
this is overridden later on by MemoryManager.
2019-08-25 16:14:35 +01:00
Dylan K. Taylor
39d5903c3e Remove INT32_MIN and INT32_MAX global constants 2019-08-25 16:09:51 +01:00
Dylan K. Taylor
95a4081d24 update composer dependencies 2019-08-25 16:04:51 +01:00
Dylan K. Taylor
42ffc45c1c world providers: don't assume that getPath() has a trailing directory separator 2019-08-25 15:45:40 +01:00
Dylan K. Taylor
aa006cca0e WorldProviderManager: added getAvailableProviders()
this will be used by standalone CLI conversion tool
2019-08-24 19:59:57 +01:00
Dylan K. Taylor
6a4ae4cb94 remove position parameters from BlockFactory::get() and BlockFactory::fromFullBlock() 2019-08-24 17:19:27 +01:00
Dylan K. Taylor
c9cd6ee038 ExperienceOrb: fix passing invalid argument to multi-signature Vector3::subtract()
I knew I should have scrapped these multi-signature functions years ago...
2019-08-24 15:58:06 +01:00
Dylan K. Taylor
75a2d79671 convert more constant interfaces to final classes, close #2885 2019-08-24 15:39:23 +01:00
Dylan K. Taylor
ef8eba43d7 RegisteredListener: validate priority at a more sensible time 2019-08-23 19:54:41 +01:00
Dylan K. Taylor
4b0b923ca0 turn EventPriority into final class instead of abstract class 2019-08-23 19:12:55 +01:00
Dylan K. Taylor
b2cd13daac Merge branch 'master' of https://github.com/pmmp/PocketMine-MP 2019-08-23 17:16:37 +01:00
Dylan K. Taylor
e5b02ee5e0 make logic for fetching handler lists more consistent 2019-08-23 17:16:07 +01:00
Dylan K. Taylor
aa60aa69ee World: fix bug in getNearestEntity()
fuck you PhpStorm
2019-08-21 18:51:08 -04:00
Dylan K. Taylor
7e5193355e Remove old entity movement hack
This was intended to try and mitigate player movement clipping through blocks triggering anti cheat. Now that the anti cheat is gone, this code is no longer needed.
2019-08-21 18:46:39 +01:00
Dylan K. Taylor
dbdcabcc56 Player: get rid of CID requirement from player info, CID is still available via extradata if supported by client impl
this is useless for PM and it doesn't have any fit purpose for plugin use either, so it doesn't make sense to expose it to the API.
2019-08-21 18:17:31 +01:00
Dylan K. Taylor
018a4467bf fix bug in LoginPacketHandler (incorrect metadata array in PlayerInfo)
this was intended to make available things like the deviceOS, input method etc without placing an API requirement for custom implementations to provide such information.
2019-08-21 18:06:18 +01:00
Dylan K. Taylor
e9fd57275a remove LevelEventSound, remove pitch from sounds that don't support it (most of them) 2019-08-21 17:59:00 +01:00
Dylan K. Taylor
ea2c418a77 update dependency versions 2019-08-20 19:48:06 +01:00
Dylan K. Taylor
122238d57e add NetworkSession->onEnterWorld() hook 2019-08-20 16:25:20 +01:00
Dylan K. Taylor
3a41a798ad move forced overflow of SetTimePacket to SetTimePacket::create() 2019-08-20 16:24:47 +01:00