Commit Graph

416 Commits

Author SHA1 Message Date
39c9525525 add unit test for directSection 2020-05-19 14:41:01 +08:00
32527442ed add SetBlock function 2020-05-19 14:15:44 +08:00
fa75535f37 add GetBlock function 2020-05-17 14:45:27 +08:00
eba832b424 rewrite chunk data decoder 2020-05-17 13:35:52 +08:00
ab9db15d0b Merge pull request #54 from rain931215/master
攻擊時不需指定主手或副手
2020-05-02 18:24:05 +08:00
1d58589601 攻擊時不需指定主手或副手
參照https://wiki.vg/Protocol#Interact_Entity裡的
Hand為Only if Type is interact or interact at;
2020-05-02 17:03:07 +08:00
e3052668a3 Merge remote-tracking branch 'origin/master' 2020-05-01 10:44:36 +08:00
3257c81a27 expose control sequences function 2020-05-01 10:43:50 +08:00
c87bdc91be Add unit test for invalid long VarInt 2020-04-26 13:06:42 +08:00
e6ca182ba1 Fixed VarInt and VarLong max size
Before VarInt could have had a size of 7 byte without generating errors (max should be 5).
>= 5 is because we start from 0 and i=5 is already in error.
For example if byte of VarInt are [255 255 255 255 255 255 1], at penultimate iteration, i will be 5 (start at 0) so there aren't errors and at the last the break bypass the sec&0x80 check.
Same for VarLong.
2020-04-25 18:06:37 +02:00
b509967247 Merge remote-tracking branch 'origin/master' 2020-04-12 14:59:46 +08:00
ebf1d5c2c2 Update languages file. Add two function to chat packet: Append and TranslateMsg 2020-04-12 14:58:44 +08:00
cf150c16fa support marshal []int16, []float32, []float64 and []string. More work needed for #50 2020-04-08 16:02:01 +08:00
bcddc6698b add marshal test for nbt library 2020-04-08 13:18:26 +08:00
73727eccb9 Better error message that helps issue #49 . 2020-04-04 17:06:15 +08:00
739761d434 update mcping README 2020-03-11 16:02:34 +08:00
c0f3f3f8d4 update go version 2020-03-06 10:32:36 +08:00
a908a03fcd Use %w in file ingame.go and nbt package, then we can use errors.Is for compare 2020-03-04 12:37:43 +08:00
7defd6062c fix nbt: unexpected TAG_End error, which trigger by picking up an item without NBT. 2020-03-04 12:00:19 +08:00
e10bb44716 fix nbt: unexpected TAG_End error, which trigger by picking up an item without NBT. 2020-03-04 11:53:16 +08:00
5740edd409 Merge pull request #39 from mcfx0/master
Fix wrong behavior when data covers two adjacent int64 in fillSection
2020-02-19 10:56:07 +08:00
478fd678c8 Fix wrong behavior when data covers two adjacent int64 in fillSection 2020-02-18 16:48:14 +08:00
72c389c86f Support VarLong encode/decode 2020-01-29 13:57:57 +08:00
e5004ab9c9 Merge pull request #36 from Computeiful/Autofish
Updated autofish to respawn when killed
2020-01-29 11:21:12 +08:00
2270b25f0c Merge pull request #35 from Computeiful/Sound-1.15.2
Update sound ids to work with 1.15.2
2020-01-28 14:06:52 +08:00
c251b48043 Updated autofish to respawn when killed 2020-01-28 02:43:59 +00:00
06b7779db5 Update sound ids to work with 1.15.2 2020-01-27 22:18:19 +00:00
c2677ae3c8 更新.gitignore 2020-01-25 16:13:12 +08:00
66e881dedd 删除编辑器的配置文件 2020-01-25 16:12:15 +08:00
4791ce6467 Merge pull request #34 from nugget/protocol-1.15.2
更新版本号至1.15.2
2020-01-23 10:22:14 +08:00
73219f5a10 更新README中游戏版本号
你漏了
2020-01-23 10:17:42 +08:00
beac876beb 更新版本号至1.15.2
Updates code to minecraft 1.15.2 (protocol 578)
2020-01-22 12:17:58 -06:00
4370b6c3cd 修复RCON库过于信任包Size字段的问题 2020-01-16 12:57:01 +08:00
8d4b2421f8 Merge pull request #33 from Sunbread/master
Correct behavior of method Client.Disconnect()
2020-01-16 12:33:11 +08:00
a8798ce9fb Correct behavior of method Client.Disconnect() 2020-01-14 17:19:12 +08:00
3041792dac nbt: fix TagLongArray error message 2020-01-05 01:40:14 +08:00
7818d3a0fc Merge branch 'Sunbread-master' 2020-01-05 01:23:00 +08:00
9245a6b9ff yggdrasil支持代理的方式仍需考虑 2020-01-05 01:22:33 +08:00
72b1820826 用更简单的方式为bot包支持代理 2020-01-05 01:14:38 +08:00
933222faf5 Change bot.JoinConn(*go-mc/net.Conn) to bot.JoinConn(net.Conn) 2020-01-05 00:33:35 +08:00
888c98a6d4 Change yggdrasil.Client() to yggdrasil.SetClient() 2020-01-05 00:15:50 +08:00
b2a5f7b720 Add bot.JoinConn() 2020-01-04 23:44:58 +08:00
50d65e579f Add yggdrasil.Client() 2020-01-04 23:21:43 +08:00
05b7a48f87 Merge remote-tracking branch 'origin/master' 2019-12-29 08:05:53 +08:00
d3e1ec1523 更新版本号至1.15.1 2019-12-29 07:59:39 +08:00
4d36dc2b29 Update go.yml 2019-12-23 13:25:59 +08:00
d744b77054 Update go.yml 2019-12-23 13:22:54 +08:00
dd363bea52 Update go.yml 2019-12-23 13:20:48 +08:00
05b0fc7b7e Update go.yml 2019-12-23 13:13:26 +08:00
13082bb327 Update go.yml 2019-12-23 13:10:32 +08:00