Skip to content

Commit d3992e1

Browse files
committed
Fix NotHitIronGolem config description mistake
1 parent 706fb05 commit d3992e1

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ org.gradle.jvmargs=-Xmx4G
99
loader_version=0.14.6
1010

1111
# Mod Properties
12-
mod_version = 1.6.2
12+
mod_version = 1.6.3
1313
maven_group = cn.taskeren.minequery
1414
archives_base_name = minequery
1515

src/main/java/cn/taskeren/minequery/callback/NotHit.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static class IronGolem implements AttackEntityCallback {
3131

3232
private IronGolem() {}
3333

34-
public enum CanDamage {
34+
public enum PreventDamage {
3535
ALL,
3636
NATURAL_ONLY,
3737
PLAYER_ONLY,
@@ -47,16 +47,16 @@ public ActionResult interact(PlayerEntity player, World world, Hand hand, Entity
4747
boolean playerCreated = ((IronGolemEntity) entity).isPlayerCreated();
4848
switch(config().notHitConfig.ironGolem) {
4949
case ALL -> {
50-
return ActionResult.PASS;
50+
return ActionResult.FAIL;
5151
}
5252
case NATURAL_ONLY -> {
53-
return playerCreated ? ActionResult.FAIL : ActionResult.PASS;
53+
return playerCreated ? ActionResult.PASS : ActionResult.FAIL;
5454
}
5555
case PLAYER_ONLY -> {
56-
return playerCreated ? ActionResult.PASS : ActionResult.FAIL;
56+
return playerCreated ? ActionResult.FAIL : ActionResult.PASS;
5757
}
5858
case NONE -> {
59-
return ActionResult.FAIL;
59+
return ActionResult.PASS;
6060
}
6161
}
6262
}

src/main/java/cn/taskeren/minequery/config/MineQueryConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cn.taskeren.minequery.config;
22

33
import cn.taskeren.minequery.MineQueryMod;
4-
import cn.taskeren.minequery.callback.NotHit.IronGolem.CanDamage;
4+
import cn.taskeren.minequery.callback.NotHit.IronGolem.PreventDamage;
55
import me.shedaniel.autoconfig.ConfigData;
66
import me.shedaniel.autoconfig.annotation.Config;
77
import me.shedaniel.autoconfig.annotation.ConfigEntry;
@@ -45,8 +45,8 @@ public static class HarvestXConfig {
4545
public static class NotHitConfig {
4646
public boolean notHit = true;
4747

48-
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
49-
public CanDamage ironGolem = CanDamage.ALL;
48+
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.DROPDOWN)
49+
public PreventDamage ironGolem = PreventDamage.ALL;
5050

5151
public boolean villager = true;
5252
}

0 commit comments

Comments
 (0)