From 2be06e3ad9e77e548f5b80a438964c158e9a8cb2 Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Mon, 3 Oct 2022 20:24:12 -0500 Subject: [PATCH] Debug Logging for Balloons Signed-off-by: LoJoSho --- .../fisher2911/hmccosmetics/hook/entity/BalloonEntity.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/io/github/fisher2911/hmccosmetics/hook/entity/BalloonEntity.java b/common/src/main/java/io/github/fisher2911/hmccosmetics/hook/entity/BalloonEntity.java index 12d87208..89b7e050 100644 --- a/common/src/main/java/io/github/fisher2911/hmccosmetics/hook/entity/BalloonEntity.java +++ b/common/src/main/java/io/github/fisher2911/hmccosmetics/hook/entity/BalloonEntity.java @@ -32,7 +32,12 @@ public class BalloonEntity { } public void spawnModel(final String id) { - if (ModelEngineAPI.api.getModelRegistry().getBlueprint(id) != null) return; + HMCCosmetics.getPlugin(HMCCosmetics.class).getLogger().info("Attempting Spawning"); + if (ModelEngineAPI.api.getModelRegistry().getBlueprint(id) != null) { + HMCCosmetics.getPlugin(HMCCosmetics.class).getLogger().warning("Invalid Model Engine Blueprint " + id); + HMCCosmetics.getPlugin(HMCCosmetics.class).getLogger().warning("Possible Blueprints" + ModelEngineAPI.api.getModelRegistry().getAllBlueprintId()); + return; + } final ActiveModel model = ModelEngineAPI.api.createActiveModelImpl(ModelEngineAPI.getBlueprint(id)); ModeledEntity modeledEntity = ModelEngineAPI.api.createModeledEntityImpl(megEntity); modeledEntity.addModel(model, false);