Dylan K. Taylor
e8be8550a0
Fixed possible issues with tick counters being inaccurate when the server lags
2017-07-27 10:58:34 +01:00
Dylan K. Taylor
6ff92f2adf
Fix player timeouts crashing the server
2017-07-24 21:12:05 +01:00
Dylan K. Taylor
f32e880542
Fixed really dumb copy bug breaking crafting
2017-07-22 12:04:52 +01:00
Taras
6cacb368ce
Add PlayerJumpEvent ( #1223 )
2017-07-22 11:18:53 +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
bb230c5812
Shut up PhpStorm
2017-07-14 14:13:04 +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
2a7b736f18
Heap of bugfixes, cleanup and PHP 7 upgrades
2017-07-13 19:18:56 +01:00
Dylan K. Taylor
a7f5ee2f3e
Added capability to get/set screen height in lines for each CommandSender to alter page sizes of command output such as /help ( #1144 )
2017-07-13 10:57:10 +01:00
Dylan K. Taylor
5283975f20
Move inventory ID constants to their own interface
...
ContainerSetContentPacket will be removed in 1.2, and these aren't specific to ContainerSetContentPacket anyway.
2017-07-12 20:04:36 +01:00
Dylan K. Taylor
e485999218
Just cut the adapter loose instead of needing extra fields for this
2017-07-12 12:28:54 +01:00
Dylan K. Taylor
650afe2d94
Added PlayerNetworkSessionAdapter to allow abstraction of NetworkSession base
2017-07-12 12:28:54 +01:00
Dylan K. Taylor
1a5e3b2ad0
Fixed outdated movement problem, fixed #1171
2017-07-06 10:40:03 +01:00
Dylan K. Taylor
394f420059
Fixed chunks not loading when respawning and some minor spawn sequence cleanup ( #1153 )
...
* Fixed chunks not loading when respawning and some minor spawn sequence cleanup
* This causes too much unexpected behaviour to be useful
Revert "Make use of Mojang's pitch hack, close #821 "
This reverts commit c2dfef700feaf7235ece2fc140e93d02ae3f4af4.
* Removed delayed-teleport system and cleaned up movement reset for dead players
* Fixed health resetting to max when quitting and rejoining
2017-07-05 10:31:16 +01:00
Dylan K. Taylor
d474f73665
Move base offset to Human from Player
...
fixes jojoe77777/Slapper#58
2017-07-03 19:58:07 +01:00
Dylan K. Taylor
c2dfef700f
Make use of Mojang's pitch hack, close #821
2017-07-03 13:35:27 +01:00
Dylan K. Taylor
82fd0e8d47
Added debug for view distance setting
2017-06-29 09:46:02 +01:00
Dylan K. Taylor
d92a6240d8
Moved spawn check to sendChunk() instead of sendNextChunk(), fix #828
...
doesn't make sense to put it anywhere else regardless...
2017-06-27 13:36:26 +01:00
Dylan K. Taylor
1dd8fc008b
Fixed players taking forever to spawn when generating a new world
2017-06-26 18:37:20 +01:00
Dylan K. Taylor
ecfcf49984
Added basic encode/decode for gamerules data and added GameRulesChangedPacket
...
needed it for tests
Squashed:
oops
PhpStorm you asshole
2017-06-25 15:43:08 +01:00
Dylan K. Taylor
c09a5ab301
Revert botched fix that broke teleports
...
Revert "Do chunk orders and sending during onUpdate() when we know the player has been constructed"
This reverts commit 080b35bf538b5af7e8c4095a762034bd52156967.
2017-06-21 17:51:16 +01:00
Dylan K. Taylor
03826d9cbc
Fixed player spawnpoints glitching and not saving
2017-06-21 12:17:26 +01:00
Dylan K. Taylor
080b35bf53
Do chunk orders and sending during onUpdate() when we know the player has been constructed
2017-06-21 11:54:05 +01:00
Dylan K. Taylor
e9c46da7f0
Fixed glitching on respawn due to player 1.62 position offset
2017-06-21 11:27:50 +01:00
Dylan K. Taylor
69ae37d191
Added no PvP flag for spectator mode, fixes nodamage sound in spectator
2017-06-21 09:42:26 +01:00
Dylan K. Taylor
86742fcf30
Workaround for flight controls fail on teleport (TODO: fix this properly)
2017-06-20 20:10:20 +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
a724395148
Added exception handling to Player->close(), mitigates #1060 and #1101
2017-06-19 13:37:38 +01:00
Dylan K. Taylor
be7b057fa5
Improved metadata sending and made it less spammy
...
Add changed properties to a list to send in a group on tick in a single packet
2017-06-17 20:00:45 +01:00
Dylan K. Taylor
8637e0224f
Check protocol version before anything else
2017-06-17 19:30:37 +01:00
Dylan K. Taylor
0cf3914f5d
Player base offset doesn't change with scale, close #943 , close #945
2017-06-17 12:59:41 +01:00
Dylan K. Taylor
e96fa8b682
TODO: REVERT - Added a hack for InteractPacket spam issue
2017-06-12 19:50:31 +01:00
Dylan K. Taylor
0612244b5e
Fixed warn-ops config being useless
2017-06-11 19:07:41 +01:00
Misteboss
c43ab12a9a
Fix spawnForced not specified in SetSpawnPositionPacket, close #1046 ( #1047 )
...
* Fix #1046
* Change spawnForced to false
2017-06-09 18:12:57 +01:00
Dylan K. Taylor
d358e13868
Strict type all the things and fix lots of assorted bugs exposed by strict types ( #993 )
...
Strict type all the things
2017-06-08 11:21:51 +01:00
Dylan K. Taylor
78c09267e5
Typehinted things in BinaryStream, sorted some methods and related bugfixes
2017-06-07 13:53:10 +01:00
Dylan K. Taylor
c445db421f
Fixed stupid bug in resource pack chunk counting, close #1028
2017-06-07 13:29:13 +01:00
Dylan K. Taylor
5aea9220c9
Fixed chat and some TextContainer documentation issues
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
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
c2186041d6
Fix TranslationContainer issue
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
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
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