Skip to content

Commit 75b328d

Browse files
committed
修正虚空采掘机挖掘坐标错误偏移的问题
修复血之祭坛的GUI显示错误
1 parent e422616 commit 75b328d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/main/java/github/kasuminova/novaeng/common/machine/MMAltar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ object MMAltar : MachineSpecial {
574574
}
575575

576576
fun clamp(a: Int, min: Int, max: Int): Int {
577-
return min(max(a, max), max)
577+
return min(max(a, min), max)
578578
}
579579

580580
inline fun ergodicPos(

src/main/java/github/kasuminova/novaeng/common/machine/drills/Drill.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ abstract class Drill : MachineSpecial {
245245
this.addOutput(stone)
246246
if (this@Drill.isDimensional()) {
247247
this.addItemModifier { ctrl, _ ->
248-
val poss = ctrl.controller.customDataTag.getIntArray("pos")
248+
val poss = ctrl.controller.customDataTag.getIntArray("pos") ?: return@addItemModifier errorStone.mutable().copy()
249249
val pos = BlockPos(poss[0], poss[1], poss[2])
250250
return@addItemModifier getOreOutput(ctrl.controller, pos, poss[3], i, ii)
251251
}
@@ -371,7 +371,7 @@ abstract class Drill : MachineSpecial {
371371
.addPreCheckHandler { checkMineralMix(it, 1, 1) }
372372
.addFactoryStartHandler { startWork(it, 0, 0, 8000) }
373373
.addExInput()
374-
.addOutputs(4, 1, 1)
374+
.addOutputs(4, 0, 0)
375375
.requireComputationPoint(1.5f)
376376
.addOutput(stone)
377377
.addItemModifier { ctrl, _ ->
@@ -394,7 +394,7 @@ abstract class Drill : MachineSpecial {
394394
.addPreCheckHandler { checkMineralMix(it, 1, 1) }
395395
.addFactoryStartHandler { startWork(it, 0, 0, 9000) }
396396
.addExInput()
397-
.addOutputs(4, 1, 1)
397+
.addOutputs(4, 0, 0)
398398
.requireComputationPoint(1.5f)
399399
.addOutput(stone)
400400
.addItemModifier { ctrl, _ ->

src/main/resources/assets/novaeng_core/lang/en_US.lang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ novaeng.mm_altar.upgrade2=§6将4级祭坛的所有的大血石砖正下方的
519519
novaeng.mm_altar.upgrade3.0=§6将6级祭坛的所有的晶簇块正下方的柱子方块替换为
520520
novaeng.mm_altar.upgrade3.1=§6并且额外提升1级祭坛等级
521521

522-
gui.mm_altar.tooltip.0=§4生命源质数量 :§a%s / $s
522+
gui.mm_altar.tooltip.0=§4生命源质数量 :§a%s / %s
523523
gui.mm_altar.tooltip.1=§9当前祭坛等级§a:%s §9祭坛升级激活数§a:%s
524524
gui.mm_altar.tooltip.2=§9苦难之井状态§a:
525525
gui.mm_altar.tooltip.3=§b仪式:苦难之井的主仪式石允许位于控制器的为中心的长13,宽13,高度为21的长方体内(即半径6,高度上下10)

src/main/resources/assets/novaeng_core/lang/zh_CN.lang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ novaeng.mm_altar.upgrade2=§6将4级祭坛的所有的大血石砖正下方的
519519
novaeng.mm_altar.upgrade3.0=§6将6级祭坛的所有的晶簇块正下方的柱子方块替换为
520520
novaeng.mm_altar.upgrade3.1=§6并且额外提升1级祭坛等级
521521

522-
gui.mm_altar.tooltip.0=§4生命源质数量 :§a%s / $s
522+
gui.mm_altar.tooltip.0=§4生命源质数量 :§a%s / %s
523523
gui.mm_altar.tooltip.1=§9当前祭坛等级§a:%s §9祭坛升级激活数§a:%s
524524
gui.mm_altar.tooltip.2=§9苦难之井状态§a:
525525
gui.mm_altar.tooltip.3=§b仪式:苦难之井的主仪式石允许位于控制器的为中心的长13,宽13,高度为21的长方体内(即半径6,高度上下10)

0 commit comments

Comments
 (0)