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

Commit 11a3c3d

Browse files
committed
修复淘金对沙砾无效bug
1 parent 29657c5 commit 11a3c3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/items/TechDawn_tool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function BlockBreakEvent(/**@type {cn.nukkit.event.block.BlockBreakEvent}*/event
130130
const iid = event.getItem().getId();
131131
const bid = event.getBlock().getId();
132132
//处理淘金碗
133-
if(iid == 3401 && (bid == 12 || iid == 13)){
133+
if(iid == 3401 && (bid == 12 || bid == 13)){
134134
let item = lootPanning.getPanningResult(event.getBlock().getId() == 12);
135135
event.setDrops(Java.to([item], "cn.nukkit.item.Item[]"));
136136
}

src/loot/TechDawn_lootPanning.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ RandomItem.putSelector(new ConstantItemSelector(3515, root_gravelPanning), 0.012
4848
RandomItem.putSelector(new ConstantItemSelector(3516, root_gravelPanning), 0.016);//镍
4949
RandomItem.putSelector(new ConstantItemSelector(3517, root_gravelPanning), 0.01);//铬
5050
RandomItem.putSelector(new ConstantItemSelector(3518, root_gravelPanning), 0.015);//锰
51-
RandomItem.putSelector(new ConstantItemSelector(318, root_gravelPanning), 0.40);//燧石
51+
RandomItem.putSelector(new ConstantItemSelector(318, root_gravelPanning), 0.445);//燧石
5252
//通过反射api调用选择方法
5353
const Clazz = java.lang.Class;
5454
let Rclazz = Clazz.forName("cn.nukkit.item.randomitem.RandomItem");

0 commit comments

Comments
 (0)