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
af06d78725
Merge changes from master
2017-05-24 09:54:11 +01:00
8cc1003956
Fixed FloatingTextParticle
2017-05-24 07:37:11 +01:00
0207b22110
Fixed Mojang world converters barfing on PocketMine-MP generated McRegion worlds
...
blame @shoghicp
2017-05-21 12:44:42 +01:00
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
60f5c7ccef
Async chunk compression and serialization is now non-optional
2017-05-18 12:19:27 +01:00
a9afad10bc
BinaryStream no longer extends stdClass, fixed a couple of minor bugs
...
Seems :shoghi: used stdClass to silence IDEs, which before ALPHA5 would complain about myriad undefined fields due to lack of type checking (switch based on packet id 🤦 )
2017-05-15 19:28:39 +01:00
0a4d62b405
Added encode and decode methods for more packets
2017-05-15 15:56:59 +01:00
046f17c9e2
Merge branch 'master' into mcpe-1.1
2017-05-08 17:43:09 +01:00
50f7d04044
Import cleanup
2017-05-07 16:55:10 +01:00
c383c7b0dd
Found an unknown field in LevelSoundEventPacket
2017-05-05 18:34:52 +01:00
8a7259aa73
Merge #826 : use getEffectLevel() instead of getAmplifier() + 1
...
Closes #412
2017-05-05 19:01:04 +08:00
56306f6636
Merge branch 'master' into mcpe-1.1
2017-05-04 21:15:49 +01:00
13fd8b681e
Added some sounds, fixed DestroyBlockParticle wrong particles for blocks with different meta values
2017-05-04 16:50:13 +01:00
eaef2bd169
Fixed some inspections
2017-05-04 12:19:50 +01:00
7aeb3129ac
Merge conflict resolution
2017-04-27 14:27:29 +01:00
2a59977440
Added various checks for region file validity ( #393 )
...
Check size, check header size, check location table offsets point to valid locations, check for shared offsets, prevent issues with corrupted or junk data
2017-04-27 09:14:02 +01:00
7a2ed232cc
Merge branch 'api3/network' into api3/network-mcpe-1.1
2017-04-24 13:56:19 +01:00
559504225a
Throw an exception before calling base entity constructor if skin is not set or invalid, close #835 ( #855 )
2017-04-24 09:50:55 +01:00
179210aa27
Merge branch 'api3/network' into api3/network-mcpe-1.1
2017-04-21 22:50:14 +01:00
6ece57e23e
Merge changes from master
2017-04-21 22:48:18 +01:00
207056fb9d
Fixed adventure mode being useless
2017-04-18 19:51:42 +01:00
b7b7a93e4e
Merge branch 'api3/network' into api3/network-mcpe-1.1
2017-04-18 14:52:06 +01:00
d2efcee115
Fixed tiles and entities being closed when replacing chunks, should fix #490
2017-04-18 14:47:42 +01:00
eefa8abaf2
Throw exceptions if something attempts to add a closed Tile or Entity to a chunk
2017-04-18 14:45:33 +01:00
a34573643f
Fixed transparent blocks filtering direct sky light
2017-04-18 14:14:19 +01:00
dab73d8950
Implemented sky light generation-time population and updating, obsolete and close #160
2017-04-18 13:05:01 +01:00
b55929b382
Merge branch 'api3/network' into api3/network-mcpe-1.1
2017-04-15 10:30:02 +01:00
8a775e0c45
Fix PopSound giving failed click sound. ( #829 )
2017-04-15 10:02:00 +01:00
f3ab45e7d5
Merged in 1.0.6 changes, added autogenerated data for 1.1.0.3 (doesn't work yet) and deliberately made the same merge error as Mojang
2017-04-14 13:00:43 +01:00
a455e25665
Merge remote-tracking branch 'jacknoordhuis/patch-2'
2017-04-13 13:28:06 +00:00
1c7773c5f1
Visibility keyword before final or abstract keyword. ( #814 )
2017-04-13 20:58:53 +08:00
894beed59b
Removed time stopping fields from SetTimePacket and fixed #526
...
TODO: rules
2017-04-11 20:13:37 +01:00
c01e0354bd
Address #816
...
Removes redundant compression argument from NBT::readCompressed() and
NBT:: readNetworkCompressed()
2017-04-12 00:42:27 +10:00
e312c697fd
Merge master into api3/network
2017-04-10 21:21:29 +01:00
dda47ee566
Fix typo in explosion ( #700 )
2017-04-10 09:17:34 +01:00
630f0fab7f
Fixed block update recursion issues ( #464 )
...
* Schedule all neighbour block updates to execute at the end of the tick, fixed recursion crash, close #251
* doTickPending timings now include neighbour block update times, refactored some var names
2017-04-01 20:18:56 +01:00
202bac28fc
Merge master into api3/network
2017-04-01 19:37:15 +01:00
b5f473a3df
Throw an exception when attempting to tick closed Levels
2017-03-31 13:14:05 +01:00
40a6f4dee9
Elevated level close check to exception level
...
As an assertion, this will crash on save if the level is already closed due to the provider being null.
2017-03-30 19:41:42 +01:00
1c3d89cfef
Fixed lighting issues with subchunks containing no blocks
...
A subchunk with no blocks is not necessarily empty.
2017-03-29 11:34:43 +01:00
52f2596dc5
Merge branch 'master' into api3/network
2017-03-28 12:27:40 +01:00
1da870b298
Measure block break times in ticks instead of floating-point real-time
2017-03-26 10:36:19 +01:00
7a36d80384
Fixed broken block-break timer logic causing creative players to be unable to remove fire after breaking blocks
...
This also causes some annoying issues with instabreak (false positives). Shoghi dude, this did _not_ fix those issues, only hid them and replaced them with different ones.
2017-03-26 10:36:19 +01:00
bb79684480
Merge branch 'api3/network' into api3/network_mcpe-1.0.5
2017-03-25 21:31:48 +00:00
4245274aec
Merge branch 'master' into api3/network
2017-03-25 21:26:46 +00:00
b9dfc7551a
Added Permission to bypass spawn protection, close #440 ( #451 )
2017-03-25 20:34:42 +00:00
5926bab323
Block light bug fixes ( #454 )
...
* Fixed an age-old light calculation bug causing solid blocks to filter their own light, fixed #375 , probably fixed #288
Light spread reduction should be done based on the _target's_ light filter level, not the source.
* Revert "Fix Glowing Obsidian lighting"
This hack is no longer necessary.
This reverts commit 35c33ba980
.
* Fixed wrong light levels for torch and redstone torch
* Take adjacent light levels and opacity changes into account, block light will now spread when an obstruction is removed, close #455
* Added timings for Level->setBlock() and lighting updates
2017-03-24 17:56:26 +00:00
c21768df26
Updated Effect constants, removed incorrect/misleading SWIFTNESS constant
...
So what? I'd rather crash plugins than have them suddenly behave strangely because SWIFTNESS is now an alias for SPEED instead of HASTE.
2017-03-21 11:49:18 +00:00
51a20470f6
Switch back to the old chunk-packet method since MoveEntityPacket and SetEntityMotionPacket no longer have lists
2017-03-18 15:03:41 +00:00