Commit graph

470 commits

Author SHA1 Message Date
BruceChen
357820e1c2 Fix bugs in gravity handle 2022-07-25 03:19:24 +08:00
Dušan Milutinović
20e99e65af Added debug statements for NBT Data. 2022-07-24 20:44:37 +02:00
BruceChen
86dfd60d07 Bugs fix for “ClickWindow“ packet 2022-07-25 01:13:41 +08:00
BruceChen
59ed18bb40 Fixed incorrect handling in 1.18(1.18.1) and 1.18.2 2022-07-24 22:21:15 +08:00
BruceChen
3429989527 change .NET version to 4.0 2022-07-24 22:03:02 +08:00
BruceChen
735d182468 Rename variables 2022-07-24 21:48:09 +08:00
BruceChen
516effa81d terrain handling for 1.18(1.18.1) and 1.18.2 2022-07-24 21:41:56 +08:00
BruceChen
af574b654e avoid pathfind to an unloaded chunk | remove debug logs 2022-07-23 23:10:06 +08:00
BruceChen
f9bb74a8bd Implemented ChunkData packet process for 1.17/1.17.1 2022-07-23 22:34:16 +08:00
Dušan Milutinović
00d78ee81c Fixed the array length issue 2022-07-05 09:29:40 +02:00
breadbyte
d9f1a77ac2
.NET 5+ Support (#1674)
Implement changes to support .NET 5 onwards.
Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2022-07-03 22:34:07 +08:00
Dušan Milutinović
7c364731f5 Reverted a mistake 2022-07-01 19:02:53 +02:00
Dušan Milutinović
3d8c112159 Implemented "Click Window" for 1.18 (now sending the new required fields), formated few files with Visual Studio formatting. PS: left debug for people to see, I'll remove it once everything is working 2022-07-01 18:59:58 +02:00
Dušan Milutinović
dc0021d990 Fixed entity health update event (This will also fix the Auto Attack bot) 2022-06-28 17:09:08 +02:00
Dušan Milutinović
9d3357eeee Fixed requested changes in the review. Except: Container (TODO) 2022-06-28 13:45:23 +02:00
Anon
3ea109b330
Merge branch 'MCCTeam:master' into master 2022-06-28 10:43:13 +00:00
Leon Heuer
a202f31aaf
Update version to 1.18.2 (#1961) 2022-03-21 23:29:16 +01:00
Dusan Milutinovic
a5848f637b Fixed a crash on older versions 2022-02-13 15:00:32 +01:00
Dusan Milutinovic
61a682a69b Added Entity, Item and Block palletes for 1.17/1 and 1.18/1. Added pallete generators as a command line option. Fixed a minor warning with AttackBot 2022-02-13 01:10:10 +01:00
ReinforceZwei
cc75db7070
MSA: Disable refresh token for MCC signin method (#1925)
* MSA: Change classes to static class

* MSA: Disable refresh token for MCC sign method
2022-02-05 13:07:15 +08:00
ORelio
ed452cf632 Realms API: Handle HTTP request failure (#1921) 2022-01-31 20:56:39 +01:00
ReinforceZwei
04d83bf277 SessionCache: Add backward compatibility for old session file 2021-12-17 09:29:24 +08:00
ReinforceZwei
4b8ca158a8
Microsoft Sign-in: Add refresh token support (#1838) 2021-12-16 15:53:31 +08:00
ReinforceZwei
333358c73b
Fix respawn packet (#1848) 2021-12-11 21:06:17 +08:00
ReinforceZwei
bdcf3e5aa2
Update version to 1.18.1 (#1845) 2021-12-10 22:15:00 +08:00
ReinforceZwei
fdc3069083
Microsoft Sign-in: Migrate to our own client Id (#1827)
* Microsoft Sign-in: Migrate to our own client Id

- Drop support of "mcc" sign-in method
- Add nuget packages for decoding JWT

* Remove JWT nuget package

* Remove client secret

It is not needed after changing application type in Azure

* Change token validation method to expiration time

* Revert changes of dropping mcc sign-in method

* Add email pre-fill for browser sign-in
2021-12-04 19:15:58 +08:00
ReinforceZwei
9a9245f193
Update version to 1.18 (#1836) 2021-12-02 21:07:57 +08:00
ORelio
1d1bd69eb2 Spectator-Teleport: Add MC version check (#1825)
Feature not supported by Minecraft 1.7, only 1.8+
2021-11-18 17:42:31 +01:00
xXjojaXx
76a10c0cd8
Spectator-Teleport Implementation (#1825) 2021-11-18 00:33:52 +08:00
ORelio
bb4c13168b Mojang Login: Enable TLS 1.2 (#1780)
Enable TLS 1.2 which is disabled by default on .NET 4.0
See also: #1783
2021-10-05 22:09:48 +02:00
ReinforceZwei
eba309191c WebRequest: Enable TLS 1.2
Fix #1774
Temporary fix. May not work if .NET Framework 4.6+ missing
2021-10-01 14:32:34 +08:00
Daenges
a05e89cf58
Addition to MojangAPI.cs (#1714)
* Add skin handling to MojangAPI.cs

* Add new skin requests and improve commenting

* Update UUID hash method to detect default player skin
according to https://github.com/ORelio/Minecraft-Console-Client/pull/1714#issuecomment-894751307

* Add custom return types

* Add ServiceStatus enum for the mojang services
2021-08-13 14:27:53 +08:00
Daenges
6a361ed674
Integration of the Mojang API (#1709)
* Add Mojang API integration

* Addition in MinecraftClient.csproj

* Move Mojang API to Protocol namespace

* Add changes of MinecraftClient.csproj

* Add rate limit warning

* Improve rate limit warning
2021-08-06 14:25:46 +08:00
ReinforceZwei
982f358bf3 ResourcePackSend: Add URL checking for invalid resource pack 2021-07-10 19:28:39 +08:00
ReinforceZwei
581095e03e ResorecePackSend: Attempt to resolve #1667 2021-07-08 14:22:27 +08:00
ReinforceZwei
029762e0a9
Update to 1.17.1 (#1672) 2021-07-08 14:10:54 +08:00
Рома Данилов
48577bf034
More events (#1660)
* + OnBlockBreakAnimation

* + OnBlockBreakAnimation

* + OnEntityAnimation

* Add checks

* + OnBlockChange

* + OnMultiBlockChange

* Fix

* Fix

* Fix

* add summary

* Fix

* fix other summary
2021-07-04 14:26:41 +08:00
ORelio
1f2137c985 ResourcePackSend: Fix 1.17 regression (#1637)
New fields in 1.17 were also read for older versions
2021-06-17 22:46:03 +02:00
ORelio
39b7d878dd Handle negative value in server ping (#1626) 2021-06-11 23:11:32 +02:00
alex-huff
8bd221c248
Add support for 1.17 (#1630)
* fix caps

* implement 1.17 without terrain

* properly switch order of Tracking Position and Locked for 1.17

* Update MinecraftClient/Protocol/Handlers/PacketTypesIn.cs

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2021-06-11 21:45:33 +08:00
ORelio
e6b2b87366 Prevent infinite loop in StartEncryption (#1150) 2021-05-22 11:21:21 +02:00
ReinforceZwei
8efb8d80a4 Reamls worlds: Use expired property to determine available world 2021-05-17 16:53:38 +08:00
ORelio
95d6318350 Implement thread-safe ChatBot API (#1510, #1579)
+ Rework task scheduling in chatbots
+ Switch back terrain processing to tasks
2021-05-15 17:36:16 +02:00
ORelio
c1cfaf520d Improve InvokeOnMainThread mechanism
Add documentation to make the invoke mechanism easier to understand
Make it clear in documentation that code is invoked synchronously
Use Action and Func<T> for minimizing the amount of code to write
Use type parameter T to automatically adjust return value type
Throw exceptions on the calling thread, not the main thread
2021-05-15 16:31:02 +02:00
ReinforceZwei
9e5364a4ff
Use a dedicated thread to process world data (#1585)
This change allow low-end devices to join servers without timeout
2021-05-12 20:07:53 +02:00
ReinforceZwei
b15c3a8e46
Fix calling schedule task cause deadlock (#1586) 2021-05-12 22:31:06 +08:00
ReinforceZwei
750684e010
ReplayMod: Prevent file backup while saving replay (#1562) 2021-05-01 20:38:41 +08:00
LesterLian
621e5e2200
Implement Realms support (#1533)
Resolve #51 

* Realms: update to new API; fix HTTP Get

* Realms: suggested changes

Co-authored-by: ORelio <ORelio@users.noreply.github.com>

* Realms: suggested changes

Co-authored-by: ORelio <ORelio@users.noreply.github.com>

* Add negative number support for JSON parser

* Nice print realms worlds result

* Option to join Realms world with world ID

* Suggested changes

Co-authored-by: ORelio <ORelio@users.noreply.github.com>

* Failure handle

Co-authored-by: ORelio <ORelio@users.noreply.github.com>

* world id paired with index

* fix text

* Clean up the code a bit

* Add setting for displaying Realms worlds

* Rename Realms worlds setting

* Put messages into translation file

Co-authored-by: Zizhen Lian <zizhlian@umd.edu>
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2021-04-12 19:46:33 +08:00
ReinforceZwei
c15b071cad
New entity status packet event (#1506) 2021-03-21 22:17:19 +08:00
ORelio
49603db657
Server ping: Attempt 1.7+ ping first (#1507)
Forge detection might not work otherwise
2021-03-20 18:00:52 +01:00