Skip to content

Commit

Permalink
修复在没有使用模组的情况下, 发送玩家移动数据包(视角), 该数据包会每20tick发送一次用于还原
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnyi116 committed Aug 22, 2023
1 parent 8a807a4 commit 22161db
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ public static void set(Direction facing, TaskHandler handler) {

public static void onTick() {
// 自动重置视角
if (ticks++ > 20) {
ticks = 0;
reset();
if (isModify()){
if (ticks++ > 20) {
ticks = 0;
reset();
}
}
}

Expand Down

0 comments on commit 22161db

Please sign in to comment.