Skip to content

Commit

Permalink
Fixed #206 #207
Browse files Browse the repository at this point in the history
  • Loading branch information
wdog5 committed Jan 31, 2024
1 parent 1f89e0f commit 4abb359
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/mohistmc/banner/fabric/BukkitRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public static void registerAll(DedicatedServer console) {
loadVillagerProfessions();
loadBiomes(console);
loadPoses();
addPose();
loadArts();
loadStats();
loadSpawnCategory();
Expand Down Expand Up @@ -244,6 +245,15 @@ private static void loadPoses() {
BannerServer.LOGGER.info("Registered {} new Poses", newTypes.size());
}

private static void addPose() {
for (Pose pose : Pose.values()) {
if (pose.ordinal() > 14) {
org.bukkit.entity.Pose bukkit = MohistDynamEnum.addEnum(org.bukkit.entity.Pose.class, pose.name());
BannerServer.LOGGER.debug("Registered mod Pose as Pose(Bukkit) {}", bukkit);
}
}
}

private static void loadArts() {
int i = Art.values().length;
var registry = BuiltInRegistries.PAINTING_VARIANT;
Expand Down

0 comments on commit 4abb359

Please sign in to comment.