Skip to content

Commit 9696c87

Browse files
committed
Bits & Bobs + Ziprails updates
1 parent ff47bac commit 9696c87

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

api/src/main/resources/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,6 @@ announcements:
7878
disable-ender-chests: false
7979
prevent-spawner-mining: false
8080
enable-calling-bell: true
81+
enable-cozy-campfires: true
8182
enable-sweethearts: true
83+
enable-ziprails: true

modules/src/main/java/parallelmc/parallelutils/modules/bitsandbobs/BitsAndBobs.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,22 @@ public void onEnable() {
8080
manager.registerEvents(new PreventSpawnerMining(), plugin);
8181
}
8282

83-
cozyCampfires = new CozyCampfires();
84-
if (config.getBoolean("enable-cozy-campfires", false)) {
85-
plugin.getServer().getScheduler().runTaskTimer(plugin, () -> cozyCampfires.checkForCampfires(), 0, 80);
86-
}
87-
88-
if (config.getBoolean("enable-ziprails", true)) {
89-
manager.registerEvents(new Ziprails(), plugin);
90-
}
91-
9283
if (config.getBoolean("enable-calling-bell", true)) {
9384
manager.registerEvents(new CallingBell(), plugin);
9485
}
9586

87+
cozyCampfires = new CozyCampfires();
88+
if (config.getBoolean("enable-cozy-campfires", true)) {
89+
plugin.getServer().getScheduler().runTaskTimer(plugin, () -> cozyCampfires.checkForCampfires(), 0, 80);
90+
}
91+
9692
if (config.getBoolean("enable-sweethearts", true)) {
9793
manager.registerEvents(new Sweethearts(), plugin);
9894
}
95+
96+
if (config.getBoolean("enable-ziprails", true)) {
97+
manager.registerEvents(new Ziprails(), plugin);
98+
}
9999
}
100100

101101
@Override

modules/src/main/java/parallelmc/parallelutils/modules/bitsandbobs/minimodules/Ziprails.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
public class Ziprails implements Listener {
1717

18-
private static final double MINECART_DEFAULT_MAX_SPEED = 0.4d;
18+
private static final double MINECART_DEFAULT_MAX_SPEED = 1.0d; // gamerule minecartMaxSpeed = 20
1919
NamespacedKey key;
2020

2121
public Ziprails() {

0 commit comments

Comments
 (0)