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

Commit 4d0cc80

Browse files
committed
清理代码,准备发布
1 parent d815cb8 commit 4d0cc80

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/machine/power/TechDawn_power.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ function PowerOutputProcess(startPos, totalTransfer){
8080
* @param {boolean} showParticle 是否显示红石粒子
8181
*/
8282
this.startTransfer = function(showParticle){
83-
let start = mills();
8483
//计算能源通路
8584
this.transfer(this.startPos);
8685
//转换为坐标处理
@@ -141,7 +140,6 @@ function PowerOutputProcess(startPos, totalTransfer){
141140
break;
142141
}
143142
}
144-
logger.info(mills()-start);
145143
}
146144
}
147145

@@ -216,9 +214,9 @@ function canTransferTo(from, to){
216214
}
217215

218216
function RightClickBlockEvent(/**@type {cn.nukkit.event.player.PlayerInteractEvent}*/e){
219-
if(e.getBlock().getId() == 55){
220-
e.getPlayer().sendMessage(e.getBlock().getDamage());
221-
let process = new PowerOutputProcess(e.getBlock(), 20);
222-
process.startTransfer(true);
223-
}
217+
// if(e.getBlock().getId() == 55){
218+
// e.getPlayer().sendMessage(e.getBlock().getDamage());
219+
// let process = new PowerOutputProcess(e.getBlock(), 20);
220+
// process.startTransfer(true);
221+
// }
224222
}

0 commit comments

Comments
 (0)