Dylan K. Taylor
5a353012de
Clean up some unused imports
2017-10-19 16:39:34 +01:00
Dylan K. Taylor
be2d134994
Added API to allow flagging an entity not to be saved to disk when its chunk is saved ( #1452 )
2017-10-11 16:09:08 +01:00
Dylan K. Taylor
8fafef2f7f
Added tagType parameter to ListTag constructor, remove some boilerplate code
2017-10-08 13:28:01 +01:00
Dylan K. Taylor
d294d5a91b
Clarified location table doc for RegionLoader
2017-10-06 09:40:46 +01:00
Dylan K. Taylor
7f5fe137d1
Added some type docs to RegionLoader
2017-10-05 18:47:32 +01:00
Dylan K. Taylor
afa37bd2aa
check range of valid compression values
...
zero is not allowed because it's pointless, just raise your compression threshold if you want zero compression.
Chunks will always be compressed regardless of threshold because they are huge. It doesn't make sense to allow uncompressed chunks when even compression level 1 will reduce their size 50x. The point of the last two (reverted) commits was to prevent compression level zero being used on chunks. Probably obvious that I was up late and not thinking very clearly.
Revert "Reduced chunk compression level to 7"
This reverts commit 49ac2555ce3d410c49eba4045ffe8a5138066346.
Revert "Always use best compression for chunks"
This reverts commit 42dd9d6abd4e7a66611cd171abd0f8f7969166c1.
2017-10-01 11:06:14 +01:00
Dylan K. Taylor
49ac2555ce
Reduced chunk compression level to 7
...
According to benchmarks 8 and 9 are simply orders of magnitude slower while not saving enough bytes to make it worth the performance loss. 7 is a good balance.
2017-10-01 09:20:14 +01:00
Dylan K. Taylor
42dd9d6abd
Always use best compression for chunks
2017-09-30 20:30:24 +01:00
Dylan K. Taylor
d0bf0ff083
Imports cleanup
2017-09-28 10:51:05 +01:00
Dylan K. Taylor
38fad4b963
Implement difficulty per-world ( #878 )
...
* Moved Server::getDifficultyFromString() to Level
* Added ability to set difficulty in worlds section of pocketmine.yml for generation
2017-09-26 11:16:51 +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
297cfcf168
Check for existence of ChunkUtils extension
2017-08-31 21:42:24 +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
1f70a7830e
Branch merge
2017-08-20 21:07:19 +01:00
Dylan K. Taylor
02f42eba48
Move block registration to its own class
2017-08-20 18:05:01 +01:00
Dylan K. Taylor
2688228a6f
Don't dump subchunk raw data
2017-08-18 16:57:07 +01:00
Dylan K. Taylor
4f1302adf2
Merge branch 'master' into mcpe-1.2
2017-08-17 17:14:16 +01:00
Dylan K. Taylor
5b4035253b
Casting cleanup and removed some 32-bit string-int leftovers
2017-08-17 11:24:49 +01:00
Dylan K. Taylor
b4c4005009
Some condition simplifications suggested by static analysis
2017-08-16 20:06:48 +01:00
Dylan K. Taylor
eebc52e00b
Added API method Entity->isClosed() and made Entity->closed protected
2017-08-16 19:30:23 +01:00
Dylan K. Taylor
77cd8e7799
More broken mess to spawn 1.2
2017-08-06 17:21:51 +01:00
Dylan K. Taylor
24bdf330d5
Merge branch 'moar-typehints'
2017-07-15 09:43:43 +01:00
Dylan K. Taylor
6de8415c79
Merge network refactors
2017-07-14 13:04:02 +01:00
Dylan K. Taylor
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
Dylan K. Taylor
2a7b736f18
Heap of bugfixes, cleanup and PHP 7 upgrades
2017-07-13 19:18:56 +01:00
Dylan K. Taylor
4d874e7e78
static analysis
2017-07-13 16:45:24 +01:00
Dylan K. Taylor
23866359c9
Fix some PSR-2 violations
2017-07-13 16:14:28 +01:00
Dylan K. Taylor
72d1948f30
Improved batch handling
2017-07-13 12:04:47 +01:00
Dylan K. Taylor
30c5487f94
Drastically improved performance of basic chunk sky-light population
...
back 2 commits: 53ms per chunk
back 1 commit: 27ms per chunk
this commit: 3ms per chunk
(on my machine, of course)
2017-07-08 17:13:22 +01:00
Dylan K. Taylor
728851594b
Improved performance of basic chunk sky-light population
...
No need to recalculate this 256 times
2017-07-08 13:37:45 +01:00
Dylan K. Taylor
b4a149cce8
Fix some issues with entities in leveldb worlds
2017-07-02 13:37:30 +01:00
Dylan K. Taylor
70bd9afd37
Updated leveldb implementation to support MCPE 1.1 worlds
2017-06-30 09:11:26 +01:00
Dylan K. Taylor
56dfa7d000
Added some debug for ChunkRequestTask
2017-06-29 11:31:28 +01:00
Dylan K. Taylor
a365c831a8
Fixed some doc problems
2017-06-25 12:07:28 +01:00
Dylan K. Taylor
a4b8dd43e6
Removed useless confusing array indices in CompoundTag constructors ( #1116 )
2017-06-20 12:11:24 +01:00
Dylan K. Taylor
e11f1e94e9
Cleaned up SubChunk implementation
2017-06-19 15:40:31 +01:00
Dylan K. Taylor
a302b4988f
Fixed bad values assigned to LongTags
...
PhpStorm you bitch... why didn't you tell me these were a problem?!
2017-06-08 19:28:29 +01:00
Dylan K. Taylor
890f72dbf2
Type-hinted NBT tag constructors, made getValue() and setValue() more strict, fix dozens of assorted related bugs
2017-06-08 19:17:52 +01:00
Dylan K. Taylor
75863e2a44
OCD commit
2017-06-07 12:54:12 +01:00
Dylan K. Taylor
cf07af8b55
Fix some strict type violations reported by PhpStorm (strict types <3)
2017-06-07 12:54:12 +01:00
Dylan K. Taylor
db93827650
Fix world saving
2017-06-07 12:54:12 +01:00
Dylan K. Taylor
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
Dylan K. Taylor
4666560731
Removed some tags that don't exist in vanilla McRegion chunks
2017-06-04 13:04:06 +01:00
Dylan K. Taylor
8779259734
Stop spawning entities to players twice
...
This will be done when the chunk is sent to the player anyway.
2017-05-29 15:57:05 +01:00
Dylan K. Taylor
af06d78725
Merge changes from master
2017-05-24 09:54:11 +01:00
Dylan K. Taylor
0207b22110
Fixed Mojang world converters barfing on PocketMine-MP generated McRegion worlds
...
blame @shoghicp
2017-05-21 12:44:42 +01:00
Dylan K. Taylor
905d3f1610
Only save batch buffer when compressing chunks
...
faster due to not needing to serialize, and reduces memory footprint of caching
2017-05-18 19:46:20 +01:00
Dylan K. Taylor
60f5c7ccef
Async chunk compression and serialization is now non-optional
2017-05-18 12:19:27 +01:00
Dylan K. Taylor
56306f6636
Merge branch 'master' into mcpe-1.1
2017-05-04 21:15:49 +01:00