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 Jun 25, 2021
1 parent d815cb8 commit 4d0cc80
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/machine/power/TechDawn_power.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ function PowerOutputProcess(startPos, totalTransfer){
* @param {boolean} showParticle 是否显示红石粒子
*/
this.startTransfer = function(showParticle){
let start = mills();
//计算能源通路
this.transfer(this.startPos);
//转换为坐标处理
Expand Down Expand Up @@ -141,7 +140,6 @@ function PowerOutputProcess(startPos, totalTransfer){
break;
}
}
logger.info(mills()-start);
}
}

Expand Down Expand Up @@ -216,9 +214,9 @@ function canTransferTo(from, to){
}

function RightClickBlockEvent(/**@type {cn.nukkit.event.player.PlayerInteractEvent}*/e){
if(e.getBlock().getId() == 55){
e.getPlayer().sendMessage(e.getBlock().getDamage());
let process = new PowerOutputProcess(e.getBlock(), 20);
process.startTransfer(true);
}
// if(e.getBlock().getId() == 55){
// e.getPlayer().sendMessage(e.getBlock().getDamage());
// let process = new PowerOutputProcess(e.getBlock(), 20);
// process.startTransfer(true);
// }
}

0 comments on commit 4d0cc80

Please sign in to comment.