Dylan K. Taylor
e4b6a18404
Player: removed redundant proxy function
2018-03-23 19:56:35 +00:00
Dylan K. Taylor
73e09392b6
Timings: Clean up some terrible code, move namespaces
2018-03-19 19:05:51 +00:00
Dylan K. Taylor
ac5a91b67e
Cleaned up bool comparison mess
2018-03-19 14:10:55 +00:00
Dylan K. Taylor
d12b1d3e07
Updated RakLib dependency
2018-03-17 11:27:56 +00:00
Dylan K. Taylor
8020780fc5
LevelEventPacket: added enderman teleport particle cloud constant
2018-03-09 17:20:35 +00:00
Dylan K. Taylor
dbcc69c2de
LevelEventPacket: added useless constant
2018-03-09 11:35:08 +00:00
Dylan K. Taylor
83a3c6f614
Arrow: added shake effect and strike sound
2018-03-09 11:35:07 +00:00
Dylan K. Taylor
b623c4aba1
Remove accidentally committed file
2018-03-04 15:17:14 +00:00
Dylan K. Taylor
2ff3b12376
Cleaned up projectile "collide" checks
2018-03-04 12:19:41 +00:00
Dylan K. Taylor
6a94c8183c
NetworkBinaryStream: Add clarification on array structure for gamerules
...
we need objects for this really
2018-02-28 18:10:47 +00:00
Dylan K. Taylor
732b931556
BatchPacket: use PacketPool::getPacket() instead of getPacketById()
...
this is what getPacket() is for.
2018-02-27 21:43:40 +00:00
Dylan K. Taylor
d6d47feda9
Query: Send responses to the source interface only, instead of all the things
...
who the fuck wrote this shitty code?
2018-02-27 13:23:01 +00:00
Dylan K. Taylor
f903dbfe00
Server: Removed identifiers array
...
This is completely unnecessary and adds extra complexity for no good reason. Maybe it was used historically, but nowadays it is only used to identify players to send async-prepared batch packets to.
There are two alternative ways to do that:
1. use spl_object_hash() as the targets array in CompressBatchedTask
2. use ServerScheduler's object storage to retain references to the Player[] array.
I've opted for the second method.
Removing these identifiers allows great code simplification in removePlayer() and removes the need for those old stupid hacks.
This also includes a backwards-compatibility break by removing the $identifier parameter of Server->addPlayer().
2018-02-27 11:43:02 +00:00
Dylan K. Taylor
0ad8ea6e92
Remove unused imports
2018-02-24 19:01:09 +00:00
Dylan K. Taylor
6a996611f8
Move functions from PocketMine.php to Utils
...
This cleans a lot of mess out of the bootstrap file, and also has the added bonus that threads which do not inherit functions can now get access to them by autoloading Utils.
2018-02-19 11:56:22 +00:00
Dylan K. Taylor
cbbed6a6c1
Updated RakLib dependency
2018-02-19 10:01:56 +00:00
Dylan K. Taylor
99ef3e6576
RakLibInterface: don't self-unregister from Network on crash
...
This is already done by the Network itself.
2018-02-18 11:52:55 +00:00
Dylan K. Taylor
6954bfac4b
Removed RakNet client ID parameters from Player
...
This is not used anywhere anymore and null is always filled for this, so it's pointless.
Also, this is an API break.
2018-02-17 19:51:04 +00:00
Dylan K. Taylor
08daf655e5
RakLibInterface: Remove useless function
2018-02-16 17:57:43 +00:00
Dylan K. Taylor
ecd830463c
PlayerNetworkSessionAdapter: Remove dead TODO
2018-02-16 11:49:28 +00:00
Dylan K. Taylor
bab2daf711
Protocol changes for 1.2.10 release
...
Looks like they reverted near enough everything they did in the beta.
2018-02-08 11:18:46 +00:00
Dylan K. Taylor
dcb53b1cbb
RCON: Use PTHREADS_INHERIT_NONE - these threads don't need baggage from upstairs
2018-02-05 17:27:00 +00:00
Dylan K. Taylor
a52a2f6d26
RCON: register autoloader on RCON threads
...
fixes #1993
Interesting that this bug was never noticed before. Maybe because of the class getting loaded by PocketMine.php previously.
2018-02-04 22:24:19 +00:00
Dylan K. Taylor
e56e363dcc
DataPacket: rename split-screen bytes
2018-01-31 12:07:26 +00:00
Dylan K. Taylor
033cb8bd63
oops, wrong namespace
2018-01-28 13:08:11 +00:00
Dylan K. Taylor
0ed9fcb641
Restrict VerifyLoginTask exception handling to known exceptions
...
everything else should produce a nice big stack trace for debugging purposes, because everything else is probably bugs
This fixes random exception error messages getting relayed to the client when a user does stupid things like editing the source code without knowing what they are doing.
2018-01-28 13:07:09 +00:00
Dylan K. Taylor
efac23d4af
Updated to new RakLib version
2018-01-27 19:10:55 +00:00
Dylan K. Taylor
41592a04b7
InventoryTransactionPacket: Update some field names
2018-01-24 13:50:30 +00:00
Dylan K. Taylor
6543d96910
Inventory: Split up armor and player inventory ( #1957 )
...
* Inventory: Split up PlayerInventory and armour handling
* Fixed other players don't see armour changes. This bug also exists on master.
2018-01-23 20:01:26 +00:00
Dylan K. Taylor
fd5557861b
Changed how login verification is handled, add more useful error messages
...
closes #1955
2018-01-28 14:13:59 +00:00
Dylan K. Taylor
3939e2d9dd
NetworkBinaryStream: add some typehints
2018-01-20 11:05:41 +00:00
Dylan K. Taylor
2579438b84
NetworkBinaryStream: Use nullable typehint for putVector3Nullable() instead of default value
...
the parameter is not optional
2018-01-20 11:01:16 +00:00
Dylan K. Taylor
95d42b9907
Network: Remove legacy Vector3 primitive encode/decode methods
2018-01-20 10:58:39 +00:00
Dylan K. Taylor
2eb6e075ae
Refactored entity metadata handling into its own class, with type-safe methods ( #1876 )
...
This includes several other changes, including:
- SLOT data properties now accept items directly
- POS data properties now accept floored Vector3s (in future this will be block positions) or null for 0,0,0
- VECTOR3F data properties now accept Vector3s or null for 0,0,0
2018-01-20 10:52:14 +00:00
Dylan K. Taylor
0c868b16b6
Network: Added config to pocketmine.yml to allow changing max MTU size
...
This might be useful for people with older routers where the connection MTU is actually lower than the router allows.
2018-01-18 18:15:14 +00:00
Dylan K. Taylor
7a5e5773b7
Updated RakLib dependency
2018-01-16 20:01:41 +00:00
Dylan K. Taylor
f1b0a4f1de
Not sure why we are still blaming @shoghicp for this :<
2018-01-15 11:17:01 +00:00
Dylan K. Taylor
e6bd12dc2f
Consolidated MCPE network binary handling methods into one class, remove protocol-specific methods from BinaryStream
...
Remove MCPE-network specific stuff from BinaryStream, added NetworkBinaryStream
This removes dependencies of BinaryStream on core code, while providing some consolidation of network handling code.
2018-01-11 12:28:56 +00:00
Dylan K. Taylor
4f8e4f0522
Add EOF newlines where missing (bulk) ( #1836 )
...
This should solve issues with people making GitHub PRs and having the web editor messing things up. GitHub Web Editor sucks :(
2017-12-20 11:56:36 +00:00
Dylan K. Taylor
fbd04b0fe7
Bump to 1.2.7
2017-12-14 18:56:32 +00:00
Dylan K. Taylor
67a09a9b16
Bump versions for 1.2.6
...
No changes. Mojang sucks.
2017-12-06 18:12:45 +00:00
Dylan K. Taylor
2cb81b5f8d
NetworkInventoryAction: Allow returning null to ignore weird transactions
...
Revert "Return null on unmatched inventory action and log details"
This reverts commit fd7fb10223f7373919701008970e7e87abc2654e.
2017-11-29 12:44:41 +00:00
Dylan K. Taylor
f477cfa1bf
Fixed a mistake in AvailableCommandsPacket
2017-11-25 11:15:20 +00:00
Dylan K. Taylor
580b30b768
update versions
2017-11-22 13:51:40 +00:00
Dylan K. Taylor
88ad43971a
constant visibility
2017-11-21 16:50:27 +00:00
Dylan K. Taylor
1fd9994056
Merge branch 'master' into mcpe-1.2.5
2017-11-21 16:48:18 +00:00
Dylan K. Taylor
74b074753f
Bulk addition of constant visibilities
...
thanks PhpStorm inspections plugin for annoying the shit out of me until
I did this.
2017-11-21 14:44:10 +00:00
Dylan K. Taylor
373f085436
Fixed a usage of get(true)
2017-11-20 09:50:52 +00:00
Dylan K. Taylor
dd8a772d43
Removed handler for PlayerHotbarPacket
...
this thing is useless now, and the equipment stuff can be done with MobEquipmentPacket anyway.
2017-11-18 16:03:18 +00:00
Dylan K. Taylor
6facd8b50f
Provide a way for plugins such as Specter to bypass chain verification
2017-11-18 12:44:18 +00:00