5721 Commits

Author SHA1 Message Date
Dylan K. Taylor
58bf5d6679 Use null coalesce in EntityDamageEvent 2017-09-03 12:48:57 +01:00
Dylan K. Taylor
cb7911ee9c Improved Absorption, now only applies to living entities, now controllable by plugins 2017-09-03 12:37:34 +01:00
Dylan K. Taylor
aa9fd1b4f9 Remove redundant gamemode checks
The caller will check the player's gamemode, so there is no use for these checks.
2017-09-03 12:22:37 +01:00
Dylan K. Taylor
7483f22e8b Fixed a PhpStorm inspection 2017-09-03 12:10:56 +01:00
Dylan K. Taylor
89f5567476 Use Entity->getDirectionVector() more 2017-09-03 12:08:40 +01:00
Dylan K. Taylor
4df261b75a Made some variable names in Bucket less confusing 2017-09-03 12:00:24 +01:00
Dylan K. Taylor
41780fd195 Made entity collision checks for block placement more logical and less wasteful
We don't care how many entities collide, only that a non-zero number collided.
2017-09-03 11:50:15 +01:00
Dylan K. Taylor
0b83c61494 Fixed cyclic reference with chest tiles and DoubleChestInventory 2017-09-03 11:24:34 +01:00
Dylan K. Taylor
1d338bfdf9 Fixed uncaught exceptions during Task->onCancel() causing all kinds of nasty behaviour
including crashing the server on shutdown, preventing self-cancellation, and causing memory leaks
2017-09-02 19:28:51 +01:00
Dylan K. Taylor
dcf34b7188 Merge branch 'php/7.0' 2017-09-02 18:57:49 +01:00
Dylan K. Taylor
ca84532640 Merge branch 'php/7.0' into mcpe-1.2 2017-09-02 18:57:39 +01:00
Dylan K. Taylor
4d8d57ca5e Fixed LongTags in tile NBT 2017-09-02 18:57:23 +01:00
Dylan K. Taylor
75e32b11b7 Merge branch 'php/7.0' into mcpe-1.2 2017-09-02 18:29:53 +01:00
Dylan K. Taylor
9f44b2ed75 fixing ClientboundMapItemDataPacket 2017-09-02 18:22:53 +01:00
Dylan K. Taylor
62aba15f9e Updated RakLib submodule 2017-09-02 16:52:55 +01:00
Dylan K. Taylor
1c02c747ca Merge branch 'php/7.0' 2017-09-02 13:13:54 +01:00
Dylan K. Taylor
22d8626e23 Fixed sign bug introduced in #1204 rebase, close #1346 2017-09-02 13:12:55 +01:00
Dylan K. Taylor
b071ce9c5a Refactored projectile handling, added Item->onClickAir() 2017-09-02 11:57:26 +01:00
Dylan K. Taylor
a6c0f1512c Send the hotbar instead of contents when resetting hotbar
This used to be fine before 1.2, but now hotbar is handled separately.
2017-09-02 11:07:14 +01:00
Dylan K. Taylor
604d8ecf9a Protocol changes for 1.2.0.25 2017-09-02 11:05:49 +01:00
Dylan K. Taylor
5d75d3d5b6 Merge branch 'php/7.0' into mcpe-1.2 2017-09-01 23:10:58 +01:00
Dylan K. Taylor
8b13b520e0 Merge branch 'php/7.0' 2017-09-01 20:22:25 +01:00
Dylan K. Taylor
2603f5cc63 Fixed RakLib crashing when exceptions are thrown in packet handlers after the player was closed
This occurred if the player happened to be closed during the packet being handled, and then an uncaught exception bubbled up to the RakLibInterface. This resulted in a crash due to trying to get the address of a player who no longer had a network session, in order to block their IP address.
2017-09-01 20:22:02 +01:00
Dylan K. Taylor
00e4fff259 Fixed Item fromString() crash on PHP 7.2 2017-09-01 20:05:04 +01:00
Dylan K. Taylor
a06c934f4d Merge branch 'php/7.0' 2017-09-01 19:37:27 +01:00
Dylan K. Taylor
14ea76ecd7 Fixed PlayerBucketEmptyEvent never called, close #1339 2017-09-01 19:36:57 +01:00
Dylan K. Taylor
c81b76cbf6 Make plugin load errors more descriptive 2017-09-01 18:52:55 +01:00
Dylan K. Taylor
517609dc2e Cleaned up plugin property reading 2017-09-01 18:36:31 +01:00
Dylan K. Taylor
506118e28f Fixed exception thrown when plugins specify API version like 3.0 instead of 3.0.0
This could only be seen in a build with a non-suffixed API version, for example 3.0.0. When attempting to load plugins which specify API like 3.0 the server would raise errors.
2017-09-01 18:13:07 +01:00
Dylan K. Taylor
6e8631347d Added capability to specify compatible protocol versions in plugin.yml (#1247)
Protocol-dependent plugins may specify the `mcpe-protocol` attribute in plugin.yml to disallow plugin loading when the protocol changes.
2017-09-01 17:57:40 +01:00
Dylan K. Taylor
5335ed9394 Merge branch 'php/7.0' 2017-09-01 16:57:51 +01:00
Muqsit
138d85307b Fixed double chests being openable when the other half has a solid block above it, close #1165 2017-09-01 16:50:55 +01:00
Tim (robske_110)
226175f961 setText now nullable instead of overwriting with empty lines (#1204) 2017-09-01 08:34:40 +01:00
Dylan K. Taylor
297cfcf168 Check for existence of ChunkUtils extension 2017-08-31 21:42:24 +01:00
xFlare
9ea39ea3d7 Stop clearing chunk cache after 768 batched packets are cached. (#1320) 2017-08-31 21:14:18 +01:00
Dylan K. Taylor
8caabd3267 Check for existence of ChunkUtils extension 2017-08-31 21:04:36 +01:00
Dylan K. Taylor
ddfe828445 Require PHP 7.2, bump PocketMine-MP version to 1.7dev 2017-08-31 20:27:05 +01:00
Dylan K. Taylor
67ad2d25b9 Added FireImmune data flag 2017-08-30 18:36:36 +01:00
Dylan K. Taylor
b9c4a65307 Don't save players with chunks!
I can't believe I didn't notice this
2017-08-30 16:55:17 +01:00
Dylan K. Taylor
23752548fe Address several LevelDB related crashdumps in the crash archive 2017-08-30 15:42:31 +01:00
Dylan K. Taylor
190f4dd6ab New entity metadata flags 2017-08-30 14:13:24 +01:00
Dylan K. Taylor
120cf56a47 Misc return typehints 2017-08-30 12:59:26 +01:00
Dylan K. Taylor
21f09d5fdb Cleaned up Effect handling and replacement 2017-08-30 12:53:41 +01:00
Dylan K. Taylor
bde6d7db8d Remove redundant duplicate implements 2017-08-30 12:21:09 +01:00
Dylan K. Taylor
adc6b03d4c Typehinted up Entity API and some cleanup 2017-08-30 12:17:56 +01:00
Dylan K. Taylor
fd52022065 Refactor of health int -> float and fixed armor being useless when
computed damage reduction is less than 1
2017-08-30 11:03:07 +01:00
Dylan K. Taylor
ea5bd0348a Fixed liquid flow attempting to set negative block damage values
This should only execute if the current liquid block is actually still existent. When decay is negative, it means the water block doesn't exist anymore.
2017-08-29 14:22:12 +01:00
Dylan K. Taylor
c3cf82ab26 Updated RakLib submodule 2017-08-29 11:05:25 +01:00
Dylan K. Taylor
6abef6b22d Made block and item factory lists private to stop people doing stupid things with them 2017-08-29 10:53:01 +01:00
SOFe
9902d29734 ServerScheduler::scheduleAsyncTask() returns the worker used (#1312) 2017-08-29 10:29:24 +01:00