Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions src/main/java/dev/o7moon/openboatutils/Modes.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
package dev.o7moon.openboatutils;

public enum Modes {
BROKEN_SLIME_RALLY,
BROKEN_SLIME_RALLY_BLUE,
BROKEN_SLIME_BA_NOFD,
BROKEN_SLIME_PARKOUR,
BROKEN_SLIME_BA_BLUE_NOFD,
BROKEN_SLIME_PARKOUR_BLUE,
BROKEN_SLIME_BA,
BROKEN_SLIME_BA_BLUE,
RALLY,
RALLY_BLUE,
BA_NOFD,
PARKOUR,
BA_BLUE_NOFD,
PARKOUR_BLUE,
BA,
BA_BLUE;
BROKEN_SLIME_RALLY,//0
BROKEN_SLIME_RALLY_BLUE,//1
BROKEN_SLIME_BA_NOFD,//2
BROKEN_SLIME_PARKOUR,//3
BROKEN_SLIME_BA_BLUE_NOFD,//4
BROKEN_SLIME_PARKOUR_BLUE,//5
BROKEN_SLIME_BA,//6
BROKEN_SLIME_BA_BLUE,//7
RALLY,//8
RALLY_BLUE,//9
BA_NOFD,//10
PARKOUR,//11
BA_BLUE_NOFD,//12
PARKOUR_BLUE,//13
BA,//14
BA_BLUE;//15

public static void setMode(Modes mode) {
switch (mode){
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/dev/o7moon/openboatutils/OpenBoatUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void onInitialize() {

public static final Logger LOG = LoggerFactory.getLogger("OpenBoatUtils");

public static final int VERSION = 5;
public static final int VERSION = 6;

public static final Identifier settingsChannel = new Identifier("openboatutils","settings");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@
// only for dedicated servers
@Mixin(ServerPlayNetworkHandler.class)
public class ServerPlayNetworkHandlerMixin2 {
@ModifyVariable(method = "onVehicleMove", at = @At("STORE"), name = {"bl3","bl4"})
private boolean movedWronglyHook(boolean bl3){
@ModifyVariable(method = "onVehicleMove", at = @At(value = "STORE", ordinal = 1), ordinal = 2)
private boolean movedWronglyHook(boolean b){
return false;
}
@ModifyVariable(method = "onVehicleMove", at = @At(value = "STORE"), ordinal = 3)
private boolean movedWronglyHook2(boolean b){
return true;
}
}
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "openboatutils",
"version": "0.3",
"version": "0.4",
"name": "OpenBoatUtils",
"description": "Configurable boat physics, from the serverside. Check the wiki (website button) for more information.",
"authors": [
Expand All @@ -28,6 +28,6 @@
"depends": {
"fabricloader": ">=${loader_version}",
"fabric": "*",
"minecraft": "${minecraft_version}"
"minecraft": "1.20.1"
}
}