Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
修复了挖掘机挖方块错位问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperIceCN committed Jul 10, 2021
1 parent 36d60e9 commit 1d76018
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions guide/version/1.1.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 1.1.2
## 修复

- 修复了挖掘机挖方块错位问题

2 changes: 1 addition & 1 deletion src/machine/TechDawn_miner.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function placeMiner(pos, player, data){
//该世界没有开启科技黎明直接忽略
if(!TechDawnConfig.isLevelEnabled(self.getLevel().getName())) return;
/** @type {cn.nukkit.level.Position} */
let dVector = self.getPosition().clone();
let dVector = self.getPosition().floor().clone();
let font = Math.floor((45 + self.getYaw()) / 90);
switch (font) {
case 0:
Expand Down

0 comments on commit 1d76018

Please sign in to comment.