80 Commits

Author SHA1 Message Date
Dylan K. Taylor
d6e44c7475 Sync composer dependencies 2019-01-26 14:11:45 +00:00
Dylan K. Taylor
053defb7dc Updated RakLib dependency 2019-01-21 14:19:15 +00:00
Dylan K. Taylor
6b7710e62b Introduce dedicated NBT data exceptions, fix up some corrupted chunk handling 2019-01-19 12:43:47 +00:00
Dylan K. Taylor
bbc8bc4df5 Move some error handling stuff to SPL 2019-01-17 19:16:03 +00:00
Dylan K. Taylor
23269da1a6 Fixed the disaster of packet receive error handling 2019-01-16 19:53:48 +00:00
Dylan K. Taylor
5d8fa2e126 Crash main server thread when RakLib dies
this way we get crashdumps and find out what's actually wrong with RakLib in the wild.
2019-01-09 19:04:12 +00:00
Dylan K. Taylor
b9ce6537a8 Sync composer dependencies (master) 2019-01-09 00:22:42 +00:00
Dylan K. Taylor
8452c7bdbd Sync composer dependencies 2019-01-09 00:18:55 +00:00
Dylan K. Taylor
2924303169 Sync NBT dependency 2019-01-07 22:38:04 +00:00
Dylan K. Taylor
4f50119b74 LoginPacket: Cater for more error cases
This now doesn't crash unexpectedly at the first sign of broken data.
2019-01-07 14:45:44 +00:00
Dylan K. Taylor
adc1069ed2 Merge branch '3.5' 2019-01-04 23:28:44 +00:00
Dylan K. Taylor
4b9a142a5d Import global functions and constants for enhanced performance
This is better for performance because these then don't need to be reevaluated every time they are called.

When encountering an unqualified function or constant reference, PHP will first try to locate a symbol in the current namespace by that name, and then fall back to the global namespace.
This short-circuits the check, which has substantial performance effects in some cases - in particular, ord(), chr() and strlen() show ~1500x faster calls when they are fully qualified.

However, this doesn't mean that PM is getting a massive amount faster. In real world terms, this translates to about 10-15% performance improvement.
But before anyone gets excited, you should know that the CodeOptimizer in the PreProcessor repo has been applying fully-qualified symbol optimizations to Jenkins builds for years, which is one of the reasons why Jenkins builds have better performance than home-built or source installations.
We're choosing to do this for the sake of future SafePHP integration and also to be able to get rid of the buggy CodeOptimizer, so that phar and source are more consistent.
2019-01-04 20:43:15 +00:00
Dylan K. Taylor
f81bbd60e8 Avoid use of internal fields in BinaryStream 2019-01-01 16:42:14 +00:00
Dylan K. Taylor
ae497a828f Merge branch 'release/3.5' 2018-12-30 17:33:31 +00:00
Dylan K. Taylor
ff2e982f22 Updated BinaryUtils dependency 2018-12-30 12:44:08 +00:00
Dylan K. Taylor
2e5465e328 Updated RakLib dependency 2018-12-29 20:13:28 +00:00
Dylan K. Taylor
7b3115c00c Moved network NBT serializer into network namespace 2018-12-29 20:12:00 +00:00
Dylan K. Taylor
3ebd7e8ba6 Add network-wide API to filter raw packets by regex, stricter validation for Query 2018-12-28 16:30:52 +00:00
Dylan K. Taylor
cf20f0e23a Merge branch 'release/3.5' 2018-12-27 15:53:12 +00:00
Dylan K. Taylor
6417cff618 Fixed resource packs with comments in manifest
MOJANG, THERE'S NO SUCH THING AS COMMENTS IN STANDARD JSON
2018-12-27 15:50:51 +00:00
Dylan K. Taylor
e5cb48bec2 Merge branch 'release/3.5' 2018-12-22 13:31:18 +00:00
Dylan K. Taylor
4763360e9e Update BinaryUtils dependency 2018-12-22 13:07:45 +00:00
Dylan K. Taylor
8dbeda69a7 Make use of Facing::rotateY() to reduce boilerplate 2018-12-07 10:49:12 +00:00
Dylan K. Taylor
05e968d9fd Merge branch 'release/3.4' 2018-12-04 18:40:54 +00:00
Dylan K. Taylor
762405d16a Add daverandom/callback-validator as a dependency 2018-12-04 17:14:37 +00:00
Dylan K. Taylor
302c509b9f Merge branch 'release/3.4' 2018-12-03 16:17:26 +00:00
Dylan K. Taylor
f091446ec7 Sync NBT dependency 2018-12-03 16:15:02 +00:00
Dylan K. Taylor
d5ae4ad141 Sync Math dependency 2018-11-24 18:34:49 +00:00
Dylan K. Taylor
101de7adda Update Math dependency, obliterate some nasty code from Block 2018-11-23 19:41:52 +00:00
Dylan K. Taylor
0b03e3c95b Update dependencies, fix travis failure 2018-11-05 21:20:42 +00:00
Dylan K. Taylor
011b9ae159 Update to latest NBT lib version 2018-10-23 16:47:00 +01:00
Dylan K. Taylor
9901e61d65 Merge branch 'release/3.3' 2018-10-12 09:32:17 +01:00
Dylan K. Taylor
97980d4516 Update composer dependency versions 2018-10-12 09:31:19 +01:00
Dylan K. Taylor
9338061390 Update composer lock dependencies 2018-10-06 15:10:43 +01:00
Dylan K. Taylor
1bb4daa7d1 Fixed mess of rotations being inverted 2018-09-16 17:37:36 +01:00
Dylan K. Taylor
f488e594f6 Remove hardcoded facing literals in for loops 2018-09-13 19:34:27 +01:00
Dylan K. Taylor
f218868338 Separate facing/bearing handling from Vector3, deobfusticate a ton of @shoghicp old code 2018-09-05 19:56:14 +01:00
Dylan K. Taylor
034472bfe7 Merge branch 'release/3.3' 2018-09-04 11:58:19 +01:00
Dylan K. Taylor
a4a9309193 Updated NBT dependency for bug fix 2018-09-04 11:43:38 +01:00
Dylan K. Taylor
91064b3209 Merge branch 'release/3.2' 2018-08-26 19:15:23 +01:00
Dylan K. Taylor
4006be35d9 Update BinaryUtils dependency 2018-08-26 19:15:01 +01:00
Dylan K. Taylor
2bf6764112
Implemented network encryption (#2343)
For those who fuss about performance, you can disable the `network.enable-encryption` option to use sessions without encryption.
2018-07-31 15:54:18 +01:00
Dylan K. Taylor
78eae28a3e Updated dependencies to release versions 2018-06-13 11:17:07 +01:00
Dylan K. Taylor
8a9af7bf2f Update and sync extension dependencies 2018-06-12 16:27:52 +01:00
Dylan K. Taylor
f3a84b332b Updated RakLib and SPL dependencies, allow any 0.3.x SPL 2018-06-09 20:13:27 +01:00
Dylan K. Taylor
37b445f210 Updated Math dependency 2018-06-09 13:05:25 +01:00
Dylan K. Taylor
3ee6bfca2a Updated Math dependency 2018-05-28 14:04:17 +01:00
Dylan K. Taylor
c513d355cb Updated Snooze dependency 2018-05-25 13:52:12 +01:00
Dylan K. Taylor
f4a26ddfd9 update Composer dependencies to get Snooze asserts
warning: there are bugs in this code! this will crash and burn without warning!!!!!
2018-05-20 12:57:23 +01:00
Dylan K. Taylor
753ed3801d update RakLib version 2018-05-09 20:18:36 +01:00