Skip to content

Commit

Permalink
Add Willows To 1.21.2+ Boat Split Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Jan 31, 2025
1 parent 1094f49 commit 31b5aee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ public class BoatSplitFixMixin {
cancellable = true
)
private static void wilderWild$mapVariantToNormalBoat(String string, CallbackInfoReturnable<String> info) {
if (string.equals("wilderwildbaobab")) {
info.setReturnValue("wilderwild:baobab_boat");
} else if (string.equals("wilderwildcypress")) {
info.setReturnValue("wilderwild:cypress_boat");
} else if (string.equals("wilderwildpalm")) {
info.setReturnValue("wilderwild:palm_boat");
} else if (string.equals("wilderwildmaple")) {
info.setReturnValue("wilderwild:maple_boat");
switch (string) {
case "wilderwildbaobab" -> info.setReturnValue("wilderwild:baobab_boat");
case "wilderwildcypress" -> info.setReturnValue("wilderwild:cypress_boat");
case "wilderwildpalm" -> info.setReturnValue("wilderwild:palm_boat");
case "wilderwildmaple" -> info.setReturnValue("wilderwild:maple_boat");
case "wilderwildwillow" -> info.setReturnValue("wilderwild:willow_boat");
}
}

Expand All @@ -50,14 +48,12 @@ public class BoatSplitFixMixin {
cancellable = true
)
private static void wilderWild$mapVariantToChestBoat(String string, CallbackInfoReturnable<String> info) {
if (string.equals("wilderwildbaobab")) {
info.setReturnValue("wilderwild:baobab_chest_boat");
} else if (string.equals("wilderwildcypress")) {
info.setReturnValue("wilderwild:cypress_chest_boat");
} else if (string.equals("wilderwildpalm")) {
info.setReturnValue("wilderwild:palm_chest_boat");
} else if (string.equals("wilderwildmaple")) {
info.setReturnValue("wilderwild:maple_chest_boat");
switch (string) {
case "wilderwildbaobab" -> info.setReturnValue("wilderwild:baobab_chest_boat");
case "wilderwildcypress" -> info.setReturnValue("wilderwild:cypress_chest_boat");
case "wilderwildpalm" -> info.setReturnValue("wilderwild:palm_chest_boat");
case "wilderwildmaple" -> info.setReturnValue("wilderwild:maple_chest_boat");
case "wilderwildwillow" -> info.setReturnValue("wilderwild:willow_chest_boat");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ public abstract class V4067Mixin {
schema.registerSimple(map, "wilderwild:cypress_boat");
schema.registerSimple(map, "wilderwild:palm_boat");
schema.registerSimple(map, "wilderwild:maple_boat");
schema.registerSimple(map, "wilderwild:willow_boat");

this.registerChestBoat(map, "wilderwild:boabab_chest_boat");
this.registerChestBoat(map, "wilderwild:cypress_chest_boat");
this.registerChestBoat(map, "wilderwild:palm_chest_boat");
this.registerChestBoat(map, "wilderwild:maple_chest_boat");
this.registerChestBoat(map, "wilderwild:willow_chest_boat");
return map;
}

Expand Down

0 comments on commit 31b5aee

Please sign in to comment.