ffadc34691
Fix entities missing in imported leveldb worlds
2017-02-11 11:15:15 +00:00
0c35c16727
Fix some doc comments
2017-02-06 14:50:05 +00:00
0535acf211
Update some LevelEvents
2017-01-27 18:21:11 +00:00
661f17b6e0
Anti-cheat fixes, settings and API ( #287 )
...
* Added options to disable movement checks and anti-instabreak and API methods to control this
* Fixed anti-flight false positives
* Fix flight toggle kick cannot be disabled
* Added PlayerIllegalMoveEvent
2017-01-25 09:40:48 +00:00
21f5be27b6
Added options and API to enable/disable random ticking for specific block IDs
2017-01-23 10:59:27 +00:00
e4c889ae16
Check if the array contents are already the same, massive performance improvement for Anvil in a lot of cases
2017-01-18 20:04:19 +00:00
7de7593b89
Improved nibble array re-ordering in most cases by checking for common values
2017-01-18 19:51:43 +00:00
bcf049a660
Remove obsolete methods from Chunk
2017-01-15 18:03:40 +00:00
0114cb8399
Better vanilla layers support (no meta, MCPE doesn't support it)
2017-01-15 17:26:21 +00:00
b72218ac5b
Fixed flat world terrain generation by MCPE
2017-01-15 17:26:21 +00:00
6b9c2b961b
Fix invalid timestamp causing W10 Edition to crash, fixes one bug in #254
2017-01-15 17:26:20 +00:00
8ba0b49022
Initial working R/W of 0.16 + 1.0 worlds, highly unstable
2017-01-15 17:26:20 +00:00
b28e38ab26
Move some exceptions out of utils into their relevant namespaces, move some Chunk methods to ChunkUtils for I/O, refactor "colour" -> "color"
2017-01-15 11:31:12 +00:00
9004417456
Fixed file headers ( #255 )
2017-01-13 16:57:05 +00:00
946d301bc7
Fix lighting population, fix lighting issues when read by vanilla Minecraft
2017-01-13 11:33:55 +00:00
3bbf2c245a
Shut PhpStorm up
2017-01-11 10:11:13 +00:00
8f797442b3
Merge branch 'master' into mcpe-1.0
2017-01-10 10:55:05 +00:00
b566c4e609
Fix Normal generator logic fail
2017-01-09 22:27:35 +00:00
0428894cc6
Merge branch 'master' into mcpe-1.0
2017-01-09 16:04:11 +00:00
6fbb9b6083
Check for closed target Levels in Position ( #241 )
...
More foolproof
2017-01-09 13:18:28 +00:00
8902992473
Fix McRegion read corruption errors, close #232
...
According to the wiki, McRegion heightmap should be ByteArray, not
IntArray. This caused issues with converted worlds with pretty much
every conversion tool. Blame @shoghicp.
IntArray McRegion heightmaps will now be converted to
ByteArray on save.
2017-01-08 21:16:57 +00:00
2e865a3af9
Fix doc comment fail
2017-01-08 19:35:28 +00:00
3c9db45cf8
Fix tiles with async chunk sending, TODO: remove this
2017-01-07 10:52:39 +00:00
aaf549a469
Docs for Chunk
2017-01-06 17:57:00 +00:00
ad0553fbf8
Bump to API 3.0.0-ALPHA2 - READ DESCRIPTION!
...
Refactored level\format\generic\GenericChunk -> level\format\Chunk.
Re-added support for async chunk sending
Refactored most Level IO into new namespaces for more organisation
Removed LevelDB loader completely (will be re-added at a later date)
2017-01-06 17:13:45 +00:00
d8908676ac
Refactor GenericChunk::fastSerialize() to be non-static, fix some unbelievable bugs, clean up some leftovers
2017-01-05 17:04:02 +00:00
598e7aac8f
More PhpStorm inspections, import cleanup
2017-01-04 14:55:11 +00:00
1cb96d24ce
Some fixes, thanks PhpStorm
2017-01-04 11:29:24 +00:00
e2dc1a3bc6
Some consistency would be nice... fixed inconsistency between block light and sky light, always use Mojang order
2017-01-03 22:24:40 +00:00
8a29e77f5e
Add missing byte, fix network sending issues, partly fixes #227
2017-01-03 22:24:40 +00:00
0bd7ea211d
Refactored Server::broadcastPacket() to be non-static
...
Why the hell was this static at all? Seriously Shoghi?
2017-01-03 22:24:40 +00:00
55791e0819
Fix doc formatting from FullChunk -> Chunk mass-replace
2017-01-03 22:24:28 +00:00
88e36eda59
Stop wasting CPU calling functions
2017-01-01 15:50:13 +00:00
40d1394e3c
Reuse empty chunk objects, stop creating new ones
2017-01-01 14:13:06 +00:00
69061ba4ad
Removed the need for subchunks to know their Y coordinates
2017-01-01 14:12:58 +00:00
0e10a149ef
Refactor Level::chunkBlockHash() (makes no sense to put it here)
2017-01-01 01:10:10 +00:00
25b9581254
Make sure tag exists, prevent issues with bad world conversion
...
Addresses @legoboy0215's comments on #212
2016-12-31 10:24:21 +00:00
b263d81baf
Explicit checks for missing tags, fix issues with converted worlds, close #212
2016-12-30 11:18:38 +00:00
0c3780de40
Re-added basic chunk skylight population for GenericChunk ( #183 )
2016-12-29 11:45:23 +00:00
747aae94ec
Refactor PMCustomAnvil -> PMAnvil
2016-12-23 20:38:31 +00:00
6d2a57f83a
Prevent attempting to calculate lighting changes below y = 0 ( #201 )
2016-12-23 20:16:28 +00:00
a63020d6e5
Small performance improvement to nibble array re-ordering
...
thanks @Intyre
2016-12-23 20:07:55 +00:00
e2bbb76900
Use PMCustomAnvil as the default format for new worlds
...
mcregion is now "deprecated" due to its lack of suitability (fullchunk style, and no support for 256-high worlds)
2016-12-23 18:15:10 +00:00
f180167955
Add PMCustomAnvil format
...
Exactly the same as Anvil, but with XZY data ordering. Significantly more performant than Anvil due to no re-ordering necessary.
2016-12-23 18:15:09 +00:00
1eaf7c5431
Workaround for glob() fail, fix worlds not loading properly on some systems, close #197
2016-12-23 18:14:56 +00:00
3672d60bf4
More foolproof region file extension check
2016-12-23 12:40:04 +00:00
3848f6f39c
Remove Anvil/McRegion circular dependency, more scalable region validity checks
2016-12-23 12:13:32 +00:00
00158d4805
Refactor namespace of Anvil/McRegion
2016-12-23 11:52:55 +00:00
3dcfa7b3ce
Fix 32-bit crash and incorrect use of IntTag for Time
2016-12-22 21:03:18 +00:00
acd141e5aa
Enable strict types on SubChunk and EmptySubChunk
2016-12-22 18:48:43 +00:00