Skip to content

Commit be50e29

Browse files
committed
v0.11.3-alpha
1 parent 72c5906 commit be50e29

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

PCRC.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# coding: utf8
2-
31
import time
42
import traceback
3+
from typing import Optional
54

65
if __name__ == '__main__':
76
from utils import utils, constant
@@ -16,7 +15,7 @@
1615
from .utils.config import Config
1716
from .utils.pycraft.exceptions import YggdrasilError
1817

19-
recorder = None
18+
recorder: Optional[Recorder] = None
2019
logger = Logger(name='PCRC')
2120
ConfigFile = utils.get_path('config.json')
2221
TranslationFolder = utils.get_path('lang/')

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ PCRC currently supports connecting to vanilla Minecraft server. Supports version
3838
- 1.16.3
3939
- 1.16.4
4040
- 1.17.1
41+
4142
## Advantage
4243

4344
- Can be hosted server side for 24/7 recording

readme_cn.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ PCRC 目前支持连接官服原版 Minecraft 服务端,支持以下版本:
3636
- 1.16.1
3737
- 1.16.2
3838
- 1.16.3
39+
- 1.16.4
40+
- 1.17.1
3941

4042
## 优势
4143

@@ -54,6 +56,7 @@ PCRC 目前支持连接官服原版 Minecraft 服务端,支持以下版本:
5456
4. 在控制台中输入指令 `start` 以启动 PCRC
5557
5.**推荐**)将 PCRC 机器人切换为旁观者模式
5658
6. 使用控制台或游戏内聊天来控制 PCRC
59+
5760
## 配置文件
5861

5962
配置文件为 `config.json`,所有设置均可在其中更改。其中名为如 `__1__` 的为分隔符,无需修改

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cryptography>=1.5
2-
requests~=2.22.0
2+
requests>=2.22.0
33
future
44
PyYAML>=5.1
5-
PyNBT~=3.0.0
5+
PyNBT>=3.0.0

utils/constant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
from . import pycraft
44

5-
Version = '0.11.2-alpha'
5+
Version = '0.11.3-alpha'
66
ROOT_PATH = [
77
os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', ''), # I'm in ./utils/ folder so ../ might be the path
88
'./',

utils/recorder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def is_working(self):
9191
return self.working
9292

9393
def onConnectionException(self, exc, exc_info):
94-
self.logger.error('Exception in network thread: {}'.format(exc))
94+
self.logger.error('Exception in network thread: {} {}'.format(type(exec), exc))
9595
self.logger.debug(traceback.format_exc())
9696
if not self.stop_by_user:
9797
self.logger.error('Stopping the recorder since PCRC has not been stopped by user')

0 commit comments

Comments
 (0)