8efc4d12ec
trim phpdoc lines
2020-01-22 15:18:37 +00:00
0b423c5b96
Merge branch 'stable'
2020-01-22 15:16:10 +00:00
055b13a6cf
strip extra blank lines (php-cs-fixer)
2020-01-22 15:14:10 +00:00
1b33143f4f
pass 2, manual removal of incorrect non-nullable phpdoc types
2020-01-22 12:06:47 +00:00
67bcc1c0fb
phpdoc armageddon for master, pass 1
2020-01-22 11:55:03 +00:00
3ee6887792
populate remaining missing return types, using native returns where possible
...
this is done separately to stable so that stable changes can be integrated easily using an empty merge.
2020-01-19 10:26:35 +00:00
ebce102167
Merge commit '260869c0d5904401178419c99e1f26e32b6ba07e'
2020-01-18 18:22:12 +00:00
9c06c1a06f
Merge branch 'stable'
2020-01-11 22:36:57 +00:00
96b91af66a
Merge branch 'stable'
2020-01-11 21:41:38 +00:00
aba71762e9
master-specific @var annotations
2020-01-09 17:50:01 +00:00
cda1143a79
Merge branch 'stable'
2020-01-09 17:17:42 +00:00
c73001d65e
Merge commit 'e6a58e269099a7942d157a214beacc6c30f5617d'
2020-01-09 16:46:58 +00:00
0f718ea28b
Merge commit '8726604899d1a371567141e0831ed570d3233356'
2019-12-25 14:19:35 +00:00
f7eea9bebb
Merge branch 'stable'
2019-12-13 18:23:01 +00:00
c36377ea5a
Merge branch 'next-minor'
2019-12-12 19:47:12 +00:00
a9c09e4517
Merge branch 'next-minor'
2019-12-12 13:52:14 +00:00
4651bcf8c3
master: imports cleanup
...
it was easier to make an empty merge and re-run php-cs-fixer afterwards.
2019-12-11 23:23:03 +00:00
c85c1c3c3f
Merge commit '82d9e481d2a0a389fbbc6dfd3672fc366127febc'
2019-12-11 23:06:35 +00:00
3fa628f259
updated NBT dependency
2019-12-09 11:26:43 +00:00
705228f427
Chunk: remove useless field defaults
2019-12-08 11:08:07 +00:00
6b21f160bd
Chunk: fix type docs for NBTentities and NBTtiles
2019-12-08 11:07:14 +00:00
af6cb605c5
Chunk: fix data loss caused by d3d7709ead
2019-12-08 11:02:40 +00:00
48e2473696
Position: mark world field as nullable (equivalent to 39c607cbd5
)
2019-12-04 22:58:55 +00:00
60154d8127
SubChunkIteratorManager: assert type of subchunk to make PHPStan happy
...
we know this should be a SubChunk, even though it doesn't.
2019-12-04 18:26:18 +00:00
117e46f639
LevelDB: fix doc comment handling for deserializeLegacyExtraData()
2019-12-04 11:29:41 +00:00
5f9ce78814
WorldProviderManager: removed incorrect param doc
...
this was used to trick phpstorm, but PHPStan doesn't like it, and it isn't consistently used anyway.
2019-12-03 12:08:04 +00:00
d3d7709ead
Merge branch 'next-minor'
2019-12-03 11:55:45 +00:00
9aab97578b
World: clean up lighting update API
2019-10-23 21:52:39 +01:00
3768f3008e
World: group light-related functions
...
i don't know why these were dumped between getBlock() and setBlock() to begin with.
2019-10-23 21:29:00 +01:00
f01b7b74ba
World: remove setBlockLightAt() and setBlockSkyLightAt()
2019-10-23 21:25:29 +01:00
a3b73d95a7
LightUpdate: allow providing effective light levels for propagation, fix #2999
2019-10-23 21:01:19 +01:00
f3f9ebf312
SubChunkIteratorManager: added isValid()
2019-10-23 20:21:09 +01:00
21e9bca64a
World: remove getHeightMap() and setHeightMap()
...
these are too specialized to be of any use to plugin developers, and they are also misleading - plugin devs often think this refers to the highest block Y coordinate, but it doesn't.
2019-10-23 19:30:06 +01:00
eedc9eaee1
Chunk: move protocol-specific getSubChunkSendCount() to network chunk serializer
2019-10-23 18:34:47 +01:00
23e2e7c320
Chunk: remove useless instanceof check from collectGarbage()
2019-10-23 18:29:01 +01:00
f71eecfe56
Chunk: clean up internals that were designed for variable subchunk stack size
...
this exposed a few bugs in lighting updates too.
2019-10-23 18:27:30 +01:00
dddc3e8407
FastChunkSerializer: remove legacy code, simplify encoding
...
this is also faster than the old technique (theoretically).
2019-10-22 23:00:49 +01:00
02ff8d671b
Mostly phase out EmptySubChunk
...
copy-on-write and zero-layer SubChunk objects are much easier to manage and have less cognitive overhead.
obviously, the goal is to get rid of EmptySubChunk completely, but right now it does still serve a purpose (filling in dummy values for reading out-of-bounds on chunks), and that's a problem that takes a little more work to fix.
2019-10-22 23:00:49 +01:00
b7d1d11eb4
Chunk: remove useless field "height"
2019-10-22 23:00:49 +01:00
295d14e0d9
Chunk: make setSubChunk() throw exception on invalid Y instead of returning false
2019-10-22 23:00:49 +01:00
b8c857df64
World: prevent getHighestAdjacentBlockLight() and getHighestAdjacentBlockSkyLight() trying to exceed world bounds
...
this creates a problem for sky light above y=256, but this problem exists in lots of other places already anyway.
2019-10-22 23:00:49 +01:00
9d3637c999
Chunk: remove useless proxy field emptySubChunk
2019-10-22 23:00:49 +01:00
e1352668d1
LightPopulationTask: Don't overwrite the whole chunk on completion
...
this is more efficient (less data copied for ITC), fixes #2873 , and also fixes terrain changes during task run getting overwritten.
This still leaves the problem that the light information provided may be out of date by the time the task completes, but this is nonetheless a step forward.
2019-10-22 23:00:21 +01:00
296825b87e
LightArray: collect garbage on unserialize
...
serialize/unserialize don't preserve const refs, so this is necessary to reassign global refs post-unserialize
2019-10-22 20:09:51 +01:00
ebbb99b96b
Merge branch 'next-minor'
2019-10-22 19:05:11 +01:00
6d24760174
Merge branch 'stable'
2019-10-20 21:25:39 +01:00
6e9d2e1c8a
InstantEnchantParticle: add Color into constructor ( #3118 )
2019-09-23 11:43:06 +01:00
f755ea6043
DestroyBlockParticle: keep block reference around instead of runtimeID
...
we'll need this for protocol abstraction
2019-08-27 19:25:55 +01:00
f720a58013
RegionWorldProvider: don't assume that path has a trailing directory separator
2019-08-25 19:50:51 +01:00
3eea2442a7
move filesystem-related functions to pocketmine\utils\Filesystem
2019-08-25 17:36:50 +01:00