Dylan K. Taylor
87c16dab23
Don't allocate subs that aren't going to be modified
2017-07-28 11:26:15 +01:00
Dylan K. Taylor
c1542d853f
Improved flat world initial chunk generation speed by ~50%
2017-07-27 21:57:28 +01:00
Sandertv
1a7f567a70
Return the dropped item entity in Level->dropItem() ( #1222 )
2017-07-20 12:27:58 +01:00
Dylan K. Taylor
ab3b50f062
Stop it PhpStorm, you're making me look bad
2017-07-15 12:15:15 +01:00
Dylan K. Taylor
dbb92096e4
More typehints, documentation fixes and static analysis cleanup
2017-07-15 12:12:06 +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
8fc1501e89
Moar typehints
2017-07-14 08:52:27 +01:00
Dylan K. Taylor
08b8debd78
Added a FIXME for generator
2017-07-13 19:53:48 +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
GamakCZ
caa229a25f
Fix wrong generator name returned for Nether->getName() ( #1194 )
2017-07-12 18:10:54 +01:00
Dylan K. Taylor
c9fdb66c78
Made flat-world generation faster and less stupid
...
No need to set blocks which are obviously already going to be air >_>
2017-07-10 18:14:13 +01:00
Dylan K. Taylor
c6a6571c07
Revert bad optimization due to broken logic
...
Revert "Small optimization to light propagation"
This reverts commit 6d7b76f356decb071b82505a5ecf35dbf927230d.
2017-07-09 12:45:11 +01:00
Dylan K. Taylor
6d7b76f356
Small optimization to light propagation
2017-07-09 12:21:07 +01:00
Dylan K. Taylor
8cca8e1256
Fixed a bug in light removal
2017-07-09 12:19:38 +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
Muqsit Rayyan
b8a30309bb
Improve checks for Position::equals() and Location::equals() ( #929 )
...
* Add files via upload
* Position::$level can be null.
* Use getLevel() in place of $level
because of WeakPosition.
2017-07-04 20:25:25 +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
390df00966
Remove useless condition
2017-06-29 10:38:24 +01:00
Dylan K. Taylor
a365c831a8
Fixed some doc problems
2017-06-25 12:07:28 +01:00
Dylan K. Taylor
0f79b19fdc
Removed masks for Y coordinates, fixed bugs related to out-of-bounds coordinates, fixed #914 ( #915 )
2017-06-21 10:55:38 +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
8919d4a372
Some refactoring to allow for light updates to be executed asynchronously
2017-06-17 17:38:47 +01:00
Dylan K. Taylor
8fc38c36f9
Fixed some derp Vector3 aliases
2017-06-16 13:48:53 +01:00
Dylan K. Taylor
4765242397
Drop support for 32 bit systems/PHP ( #984 )
...
* Cutting out 32-bit and minor improvements to bootstrap
* Byeeeeee
* Removing legacy code
* added note to the issue template
as suggested by @xxFlare
2017-06-10 16:11:28 +01:00
Dylan K. Taylor
3687b149b9
Fix a couple of bugs exposed by php 7.2.0alpha1
2017-06-10 14:51:28 +01:00
Dylan K. Taylor
7870a8672e
Remove useless duplicate check
2017-06-09 16:02:30 +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
4a7abb7033
Fix flat worlds crashing when generating
2017-06-08 13:47:13 +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
7c14ffbcfa
More type fixes
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
Matt
f0d12a0b30
Implemented asVector3(), asPosition() and asLocation()
...
Squash merge, closes #973
2017-06-07 16:40:45 +08:00
Dylan K. Taylor
87e54d7a3a
Send block updates in batches
2017-06-06 11:40:30 +01:00
Dylan K. Taylor
29e88d8592
Send area broadcasted packets in batches
...
- I don't know why it wasn't done like this to start with
- This provides a significant lightening of workload for large servers with lots of players in the same area because packets are only compressed once instead of for each player.
- Improves client-sided performance receiving these in batches instead of being spammed with many individual packets.
2017-06-05 23:39:16 +01:00
Dylan K. Taylor
54453d0b0a
Refactored entity IDs in packets for consistency and to clarify on types
2017-06-05 15:41:27 +01:00
Dylan K. Taylor
26577d9d5b
fixed a doc warning
2017-06-04 14:37:06 +01:00
Dylan K. Taylor
2f4943ac90
Fixed some doc issues
2017-06-04 14:27:30 +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