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

Commit

Permalink
修复淘金对沙砾无效bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperIceCN committed Jul 10, 2021
1 parent 29657c5 commit 11a3c3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/items/TechDawn_tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function BlockBreakEvent(/**@type {cn.nukkit.event.block.BlockBreakEvent}*/event
const iid = event.getItem().getId();
const bid = event.getBlock().getId();
//处理淘金碗
if(iid == 3401 && (bid == 12 || iid == 13)){
if(iid == 3401 && (bid == 12 || bid == 13)){
let item = lootPanning.getPanningResult(event.getBlock().getId() == 12);
event.setDrops(Java.to([item], "cn.nukkit.item.Item[]"));
}
Expand Down
2 changes: 1 addition & 1 deletion src/loot/TechDawn_lootPanning.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RandomItem.putSelector(new ConstantItemSelector(3515, root_gravelPanning), 0.012
RandomItem.putSelector(new ConstantItemSelector(3516, root_gravelPanning), 0.016);//镍
RandomItem.putSelector(new ConstantItemSelector(3517, root_gravelPanning), 0.01);//铬
RandomItem.putSelector(new ConstantItemSelector(3518, root_gravelPanning), 0.015);//锰
RandomItem.putSelector(new ConstantItemSelector(318, root_gravelPanning), 0.40);//燧石
RandomItem.putSelector(new ConstantItemSelector(318, root_gravelPanning), 0.445);//燧石
//通过反射api调用选择方法
const Clazz = java.lang.Class;
let Rclazz = Clazz.forName("cn.nukkit.item.randomitem.RandomItem");
Expand Down

0 comments on commit 11a3c3d

Please sign in to comment.