5703 Commits

Author SHA1 Message Date
Dylan K. Taylor
e18a3ac933 Fixed UUID-related issues 2017-06-07 13:11:03 +01:00
Dylan K. Taylor
75863e2a44 OCD commit 2017-06-07 12:54:12 +01:00
Dylan K. Taylor
5aea9220c9 Fixed chat and some TextContainer documentation issues 2017-06-07 12:54:12 +01:00
Dylan K. Taylor
bd7205dd64 PhpStorm doesn't understand variable class names :( 2017-06-07 12:54:12 +01:00
Dylan K. Taylor
82a63ed18e Added an assert to shut PhpStorm up 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
b775e8c88a Fix Achievement bug (thanks strict types <3)
as if nobody ever noticed this... LMAO
2017-06-07 12:54:12 +01:00
Dylan K. Taylor
51091fe87b Fix player data saving 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
c2186041d6 Fix TranslationContainer issue 2017-06-07 12:53:16 +01:00
Dylan K. Taylor
481114281e Server starts! 2017-06-07 12:53:16 +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
606b9b687d Fix level ticking errors (these methods return floats >_<) 2017-06-07 12:53:15 +01:00
Dylan K. Taylor
45618c7cfe Enable strict types for Server and add a bunch of type-hints 2017-06-07 12:53:15 +01:00
Dylan K. Taylor
3f03d9e683 Fixed DevTools getting disabled when a plugin throws an exception during load (#1025) 2017-06-07 11:12:47 +01:00
Matt
f0d12a0b30
Implemented asVector3(), asPosition() and asLocation()
Squash merge, closes #973
2017-06-07 16:40:45 +08:00
Dylan K. Taylor
9cc27b2719 Force sync 'compression' under the batch threshold
Since we aren't actually compressing these anyway, only writing a checksum, sending these asynchronously causes strange bugs due to race conditions.
2017-06-06 11:40:41 +01: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
c6e800cf42 Use compression level 0 when batch size is below threshold
This isn't free, because of the adler32 checksum... but it's much lighter on performance for small packets.
2017-06-05 22:05:46 +01:00
Dylan K. Taylor
b7b7bcee4f Fixed some weak comparisons 2017-06-05 21:07:35 +01:00
Dylan K. Taylor
6ea0eb47ec Fixed PlayerInventory in_array recursion issue, close #1008
This is INTENDED BEHAVIOUR for comparing objects?????
2017-06-05 20:51:12 +01:00
Dylan K. Taylor
b9a87ed147 New fields for InventoryActionPacket
TODO: use this packet
2017-06-05 20:04:20 +01:00
Dylan K. Taylor
742f593758 Added a new constant to ContainerSetContentPacket 2017-06-05 19:15:30 +01:00
Dylan K. Taylor
1e9ff44890 New field for MobEquipmentPacket
If anyone wants to play with the off-hand, the window ID is 0x77 ;)
2017-06-05 19:10:00 +01:00
Dylan K. Taylor
55c4e35407 Added a new PlayerActionPacket constant
thanks @jojoe77777
2017-06-05 18:37:53 +01:00
Dylan K. Taylor
e83ffd5afe Fixed players don't see teleport movement, close #921 2017-06-05 16:47:12 +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
51d510aa4f Who set these stupid values... fixed #1011 2017-06-05 14:22:45 +01:00
Dylan K. Taylor
4cd97a7c7a Fixed UpdateAttributesPacket not being registered for reading 2017-06-05 14:14:50 +01:00
Dylan K. Taylor
d586ad03ec Update submodules 2017-06-05 10:15:03 +01:00
Dylan K. Taylor
61d354a4ea Block constructor mass-replace to fix #963 and related issues 2017-06-05 10:02:27 +01:00
Dylan K. Taylor
6f126ad239 Fix outdated preprocessor rules for varints, close #1003 2017-06-04 23:27:39 +01:00
Dylan K. Taylor
efea39e0a4 Change buffer unread assertion to debug
I lost count of how many times I changed this now... what happened to the other times?
2017-06-04 19:19:50 +01:00
Dylan K. Taylor
d4bb078566 Fixed some formatting issues in Player 2017-06-04 18:32:45 +01:00
Dylan K. Taylor
6686bd4442 Quick fix for melons and pumpkins, close #965 2017-06-04 16:57:51 +01:00
Dylan K. Taylor
2b02fcfe2c fixed #992 2017-06-04 16:54:35 +01:00
Dylan K. Taylor
138fb88431 More default packet fields 2017-06-04 14:53:31 +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
eda7965f86 Fixed wrong types in ParticleCommand 2017-06-04 14:22:12 +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
b01ad01eff Merge branch 'spammy-backtrace' 2017-06-03 22:04:31 +01:00
Dylan K. Taylor
4ba3a3af3d fix FloatingTextParticle 2017-06-03 20:51:48 +01:00
Dylan K. Taylor
5baf59ca56 fix #990 2017-06-03 20:25:24 +01:00
Dylan K. Taylor
902957cb53 more defaults for optional fields, close #985 2017-06-03 17:41:40 +01:00
Dylan K. Taylor
3463bea932 add defaults to MobEffectPacket
these fields may be unspecified if we are only removing effects
2017-06-03 15:21:24 +01:00
Dylan K. Taylor
105917a534 Fixed type issues writing longs and var-longs on 32-bit 2017-06-03 12:04:08 +01:00
Dylan K. Taylor
b83082f224 Fixed missing field in ContainerSetContentPacket, close #980 2017-06-03 11:59:19 +01:00