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

Commit 8e786cc

Browse files
committed
Add missing EventBus constructors to ConfigChangedEvent
1 parent f3794fe commit 8e786cc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

patchwork-fml/src/main/java/net/minecraftforge/fml/client/event/ConfigChangedEvent.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ public class ConfigChangedEvent extends Event {
4040
@Nullable
4141
private final String configID;
4242

43+
// For EventBus
44+
public ConfigChangedEvent() {
45+
this(null, null, false, false);
46+
}
47+
4348
public ConfigChangedEvent(String modID, @Nullable String configID, boolean isWorldRunning, boolean requiresMcRestart) {
4449
this.modID = modID;
4550
this.configID = configID;
@@ -88,6 +93,10 @@ public String getConfigID() {
8893
* Modders should check the modID field of the event to ensure they are only acting on their own config screen's event!
8994
*/
9095
public static class OnConfigChangedEvent extends ConfigChangedEvent {
96+
// For EventBus
97+
public OnConfigChangedEvent() {
98+
}
99+
91100
public OnConfigChangedEvent(String modID, @Nullable String configID, boolean isWorldRunning, boolean requiresMcRestart) {
92101
super(modID, configID, isWorldRunning, requiresMcRestart);
93102
}
@@ -98,6 +107,10 @@ public OnConfigChangedEvent(String modID, @Nullable String configID, boolean isW
98107
* This event only fires if the OnConfigChangedEvent result is not DENY.
99108
*/
100109
public static class PostConfigChangedEvent extends ConfigChangedEvent {
110+
// For EventBus
111+
public PostConfigChangedEvent() {
112+
}
113+
101114
public PostConfigChangedEvent(String modID, @Nullable String configID, boolean isWorldRunning, boolean requiresMcRestart) {
102115
super(modID, configID, isWorldRunning, requiresMcRestart);
103116
}

0 commit comments

Comments
 (0)