Dylan K. Taylor
0e3e984db9
Player: Disconnects no longer nuke player internals, (mostly) fixes #1239
...
there are some problems that haven't been accounted for yet, but this fixes all the direct crashes.
2019-04-03 17:44:34 +01:00
Dylan K. Taylor
f332550e52
Player: move toggle* rollback handling to network session
...
this allows network sessions to react to it how they want, or (in the case of things like Specter) perhaps ignore it.
2019-04-02 19:49:53 +01:00
Dylan K. Taylor
e5756dbf0b
Move a whole bunch of packet crap to NetworkSession
2019-04-02 18:31:16 +01:00
Dylan K. Taylor
42a263a9df
GameMode is now an enum
2019-03-31 16:19:36 +01:00
Dylan K. Taylor
aff2e0c86c
Merge branch '3.7'
2019-03-30 19:19:02 +00:00
Dylan K. Taylor
8fcb44de7d
Merge branch '3.6' into 3.7
2019-03-29 19:55:36 +00:00
Dylan K. Taylor
f4480c07ee
Updated NBT dependency
2019-03-29 19:47:15 +00:00
Dylan K. Taylor
f638845ef6
Merge branch '3.7'
2019-03-29 15:16:27 +00:00
Dylan K. Taylor
c09e2301c8
Merge branch '3.6' into 3.7
2019-03-29 14:35:35 +00:00
Dylan K. Taylor
8e9f787d33
Implement runtimeID table randomization, closes #2841
2019-03-29 14:35:06 +00:00
Dylan K. Taylor
0aebb3f4fb
Clean up LevelSoundEvent handling
2019-03-26 19:53:40 +00:00
Dylan K. Taylor
e1504c668e
LevelSoundEventPacket: more helpers
2019-03-26 18:23:02 +00:00
Dylan K. Taylor
1bf0802275
LevelEventPacket: added create() to reduce boilerplate code
2019-03-26 16:49:00 +00:00
Dylan K. Taylor
c98801402b
Network: silence unhandled packet message on bad raw packet
2019-03-26 15:13:36 +00:00
Dylan K. Taylor
a9c76c2424
NetworkInterface: remove unused function
2019-03-26 15:09:43 +00:00
Dylan K. Taylor
161d5bd6b8
Merge branch '3.7'
2019-03-26 15:02:17 +00:00
Dylan K. Taylor
89833b3b68
Merge branch '3.6' into 3.7
2019-03-26 15:01:59 +00:00
Dylan K. Taylor
a10a656a5d
Network: add a README to mcpe namespace
2019-03-26 15:01:00 +00:00
Dylan K. Taylor
0811ce81e5
Query: remove useless noise
...
why do we need 3 log messages for something that does ... basically nothing?
2019-03-24 19:53:20 +00:00
Dylan K. Taylor
97ccc6e880
Network: Don't ignore retval of raw handlers
2019-03-24 18:31:32 +00:00
Dylan K. Taylor
d0940e4be2
Fixed raw packets in the buffer pre-ban still getting processed post-ban
2019-03-24 18:26:52 +00:00
Dylan K. Taylor
6990d6239e
Network: Added RawPacketHandler interface, query handler is now a component
2019-03-24 18:02:19 +00:00
Dylan K. Taylor
a753c1342d
Clean up Query cache handling, remove useless timeouts
...
the timeout was entirely useless, because:
- when shorter than 25.6 seconds (512 ticks) it would cause caches to be needlessly destroyed and regenerated
- when longer than 25.6 seconds, just made outdated caches persist for longer, even after the query info was regenerated.
This now uses a mark-dirty model to deal with caches, which means that plugin modifications to the query data will be reflected immediately, regardless of when they are made. Previously, modifying the result of Server->getQueryInformation() would have inconsistent results.
2019-03-24 17:43:02 +00:00
Dylan K. Taylor
15c6554d8a
Updated RakLib dependency
2019-03-23 12:52:50 +00:00
Dylan K. Taylor
1045088668
Move more packet handling logic out of Player
...
there is now only (1) packet handler remaining in Player. The reason I haven't targeted this is because it needs improvements of its own.
2019-03-23 12:12:30 +00:00
Dylan K. Taylor
1bc37a1a8a
Player: Clean up movement processing, now API-ified
2019-03-23 11:33:32 +00:00
Dylan K. Taylor
9ec62643d5
Player construction now happens when we're ready to create the player entity
...
this fixes a wide range of bugs with the initial spawn sequence, and allows to simplify a whole lot of player setup logic.
2019-03-23 10:13:14 +00:00
Dylan K. Taylor
433dab078b
DataPacket events now use network sessions instead of players
2019-03-23 09:52:03 +00:00
Dylan K. Taylor
8e48c61daf
Merge branch '3.7'
2019-03-22 15:07:46 +00:00
Sandertv
2659ed8d91
AvailableCommandsPacket: Updated the argument type constants for 1.10. ( #2824 )
2019-03-22 15:07:15 +00:00
Dylan K. Taylor
9c01ecbe7e
Merge branch '3.6' into 3.7
2019-03-21 19:02:20 +00:00
Dylan K. Taylor
8c536c248d
Updating for latest PocketMine-NBT changes
2019-03-21 15:58:22 +00:00
Dylan K. Taylor
2e5ef4ba03
Merge remote-tracking branch 'origin/3.7'
2019-03-20 21:35:13 +00:00
Dylan K. Taylor
cce99b07af
1.10.0 updates
2019-03-20 19:17:41 +00:00
Dylan K. Taylor
cc78c9ef18
Merge branch '3.6'
2019-03-18 08:58:59 +00:00
Sandertv
1a8b33dafe
AvailableCommandsPacket: Updated the ARG_TYPE constants
...
closes #2817
2019-03-18 08:58:07 +00:00
Dylan K. Taylor
ebfe9caca3
Move too-early-send check to NetworkSession
2019-03-14 14:45:30 +00:00
Dylan K. Taylor
26a5d97499
Some cleanup to player net session handling for connect/disconnect
2019-03-14 14:32:43 +00:00
Dylan T
8f1bc5d497
Flatten wall_banner and wall_sign into single blocks ( #2798 )
...
This comes with some problems, but the problems are more bearable than the previous code.
2019-03-08 16:37:26 +00:00
Dylan K. Taylor
faca610594
NetworkBinaryStream: remove dead field
2019-03-03 12:38:03 +00:00
Dylan K. Taylor
72233a509d
preprocessor fix
2019-03-01 18:08:03 +00:00
Dylan K. Taylor
c9eb642afd
PacketPool: missing @throws
2019-02-28 17:15:06 +00:00
Dylan K. Taylor
5cca4b5e31
Revamp Sign API, flatten API into blocks
2019-02-28 17:10:37 +00:00
Dylan K. Taylor
f680a239f7
NetworkSession: some exception handling cleanup
2019-02-28 16:36:03 +00:00
Dylan K. Taylor
13b9fd7b66
RakLibInterface: Add error ID to make logs searchable when players report legitimate issues
2019-02-28 16:31:14 +00:00
Dylan K. Taylor
d528fdddfa
DataPacket: Remove useless abstract function
...
this is declared in the Packet interface, so it doesn't need to be here anymore.
2019-02-28 16:20:58 +00:00
Dylan K. Taylor
9ad0ea85c7
Rename two misleadingly-named functions
2019-02-27 12:59:12 +00:00
Dylan K. Taylor
53af7f5da8
Implemented dragon egg
2019-02-26 15:35:37 +00:00
Dylan K. Taylor
6124f93cb4
Player: Clean up item frame drop-item hack
...
This is now re-routed through a newly-created attack-block handler.
Closes #339
2019-02-25 18:40:04 +00:00
Dylan K. Taylor
66a1b35767
Merge branch '3.6'
2019-02-23 11:05:23 +00:00