Dylan K. Taylor
205e47c0c4
entity: populate missing return type information
2020-01-19 17:03:54 +00:00
Dylan K. Taylor
1e624e7bb9
Attribute: add missing @return $this annotations
2020-01-18 17:50:58 +00:00
Dylan K. Taylor
d9bbab54f4
Entity: fixing position and velocity sync on start/stop movement, closes #3133
...
the delta for velocity sync is WAYYYYYY too big, but that's a task for another commit.
2020-01-14 13:08:38 +00:00
Dylan K. Taylor
5bded9cff8
AttributeMap: add phpstan generic parameters for ArrayAccess
2020-01-11 23:03:21 +00:00
Dylan K. Taylor
17720041a3
phpdoc: populate missing parameter typeinfo
2020-01-11 21:53:24 +00:00
Dylan K. Taylor
1eedac87b2
added missing @var property types (reported by phpstan)
2020-01-09 14:13:54 +00:00
Dylan K. Taylor
a908197907
Effect: document that duration is expected in ticks
2019-12-29 19:03:32 +00:00
Dylan K. Taylor
494660102e
Replace empty() usages with count()
2019-12-18 11:23:24 +00:00
Dylan K. Taylor
1370930ea9
Entity: remove redundant defaults from lastX lastY lastZ, remove nullability
...
these fields are never null because they are initialized in the constructor, and they are never written to with null nor ever expected to be null.
2019-12-12 16:14:30 +00:00
Dylan K. Taylor
6b61efcfc8
remove unused imports
2019-12-09 19:49:21 +00:00
Dylan K. Taylor
d20d9fb689
Merge branch 'stable' into drew-1.13
2019-12-05 10:59:53 +00:00
Dylan K. Taylor
dbbe1f2d5c
Revert "Entity: remove redundant check from spawnTo()"
...
This reverts commit 3028832cd35c53937bb6502f74d3ad53646b12a7.
When I created this commit, I made the flawed assumption that spawnTo()
would not be used by plugins. In addition, I was not aware that there
are some usages of spawnTo() in the core which do not check for chunk
usage, such as in Player->showPlayer().
This caused a collection of problems including memory leaks and crashes
due to disconnecting players not removing their references from viewed
entities.
The reverted commit may be the cause of #3178 .
2019-12-03 10:41:13 +00:00
Stephen
e38c0c0fe1
Merge remote-tracking branch 'upstream/stable' into stable
2019-12-01 21:55:50 -05:00
Dylan K. Taylor
25e6cb74b3
Squid: fixed type doc comment of swimDirection field
2019-12-01 21:06:03 +00:00
Dylan K. Taylor
8d2e59222e
Entity: fixed not calculating surrounding blocks on entity creation
...
it's unclear if this was actually causing any bugs, but if it was it would likely manifest in the form of, for example, not burning in lava.
2019-12-01 21:05:36 +00:00
Dylan K. Taylor
cd778661c2
Entity: fixed type doc comment for blocksAround field
2019-12-01 21:03:57 +00:00
Dylan K. Taylor
c2afc05e7c
Entity: fix type doc comment for static knownEntities field
2019-12-01 21:03:29 +00:00
Stephen
be9c413a9e
Added network components for skins, to collect instead of throw out data
2019-11-20 21:43:41 -05:00
Stephen
99d350914e
Remove convertToLegacyName
2019-11-11 15:29:42 -05:00
Stephen
fb23aade34
Clean up unused imports
2019-11-10 21:49:58 -05:00
Stephen
da67a085fc
Remove unused imports and unused todo
2019-11-10 21:37:55 -05:00
Stephen
e2fc7cdf88
Friendly BC skins (persona not supported)
2019-11-10 21:04:38 -05:00
Stephen
dfa603c335
Simplify if null statement
2019-11-07 20:06:46 -05:00
Stephen
3061eb4157
Fixed convertToLegacyName not using variables, add typehints to it too
2019-11-07 19:44:49 -05:00
Stephen
7dec912d15
Fixed FloatingTextParticles
2019-11-06 23:22:41 -05:00
Stephen
dbd36d66ae
Cape data can be null
2019-11-06 23:01:06 -05:00
Stephen
51d18ffb89
Merge branch 'stable' of https://github.com/pmmp/PocketMine-MP into stable
2019-11-06 22:10:41 -05:00
Dylan K. Taylor
cac3c356a5
Painting: fix dropping multiple items when multiple blockupdates occur in the same tick
...
test case: place sand on top of a line of signs, put a painting on the sand and break the supporting sign
fixes #2774 for stable
2019-11-06 14:29:43 -05:00
Stephen
4ea907ae1a
Start saving new skin data
2019-11-05 21:01:01 -05:00
Drew
cd2b60a860
Initial update to 1.13
2019-10-30 21:36:08 -04:00
Dylan K. Taylor
32ad9d0c1a
Squid: fix spammy rotation in enclosed spaces
...
this bug was caused by 2f3c77c68a0d9e0fdfb0eb69bd44344f4c8d028d. It looks unrelated to the commit title, so it may have been committed by mistake.
2019-10-22 22:50:35 +01:00
Dylan K. Taylor
39cc590829
Skin: accommodate JSON geometry containing comments, closes #3121
2019-10-21 22:26:48 +01:00
Dylan K. Taylor
f347345bb3
Human::getInventory(): explicitly declare return type
...
the lack of this causes type inference bugs and documentation problems.
thanks PHPStan
2019-10-21 15:25:57 +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
092edc9d43
avoid breaking concrete powder
2019-08-16 17:41:50 +01:00
Dylan K. Taylor
2ba8eac27f
FallingBlock: fix endless falling on top of fences
...
this is a shitty fix, but I don't think there's a better way to do it on 3.x. This also fixes dropping on cactus.
close #2449 , close #2895
2019-08-16 17:27:41 +01:00
Dylan K. Taylor
2f61d42518
backport d23eeff8324e51ea1a902271603c50551e074c1b: FallingBlock: remove useless check
2019-08-11 19:38:12 +01:00
Dylan K. Taylor
dbb669b156
Entity: add some deprecation warnings to despawnFrom() and despawnFromAll()
2019-08-11 19:34:57 +01:00
Dylan K. Taylor
4d0e8741fe
Added a deprecation notice to Entity->getBlocksAround()
2019-08-11 19:32:21 +01:00
Dylan K. Taylor
807b860cfe
protocol: fixup data type changes, closes #3072
2019-08-11 19:02:16 +01:00
Dylan K. Taylor
d874be99a6
PrimedTNT: fix explosion position, close #3037
2019-07-16 13:55:31 +01:00
Dylan K. Taylor
50d71809e1
Entity: fixed onfire flag being set when setting fire ticks to zero, closes #3031
2019-07-14 19:03:06 +01:00
Dylan K. Taylor
a883c35fd0
clean up yesterday's mess
2019-07-13 18:15:14 +01:00
Dylan K. Taylor
c58a1bf9b7
Protocol changes for 1.12.0.28
2019-07-12 19:00:15 +01:00
Dylan K. Taylor
c7a5b8b0b4
Fixed noDamageTicks not preventing damage when last damage cause is null
...
noDamageTicks should make the entity completely invulnerable while active.
2019-07-07 17:37:52 +01:00
Dylan K. Taylor
77a4393c7b
Fixed possible out-of-bounds access on corrupted playerdata when loading inventory contents
2019-07-06 19:39:07 +01:00
Encritary
3c7f68dc1e
Fix Entity::isNameTagAlwaysVisible() was returning the wrong value ( #2990 )
...
* Fix Entity::isNameTagAlwaysVisible() was returning the wrong value
* "> 0" to "=== 1"
2019-07-02 10:44:41 +01:00
Dylan K. Taylor
971ad04299
Attribute: add more things
...
i got tired of commenting out exceptions in packets, so this is the quickest way to fix the problem.
2019-06-03 17:37:18 +01:00
Dylan K. Taylor
76e5ea385b
Skin: improved error checking
...
plugin devs should find this less of a pain in the ass now.
2019-05-17 17:40:27 +01:00
Fabian Faßbender
c5498bb3fa
Implement a locking variable to circumvent a infinite regression ( #2901 )
...
closes #2876
2019-05-03 14:46:51 +01:00