diff --git a/changelog/1.2.7.f.md b/changelog/1.2.7.f.md new file mode 100644 index 00000000..b06d396f --- /dev/null +++ b/changelog/1.2.7.f.md @@ -0,0 +1,5 @@ +## Create: Enchantment Industry 1.2.7.f + +### Fix +- Fix Crash when disenchanting Tombstone Soulbound book +- Fix Disenchanter causes client crash \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index b4ad1460..383f8622 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false # Mod Versions -mod_version = 1.2.7.e +mod_version = 1.2.7.f artifact_minecraft_version = 1.20.1 minecraft_version = 1.20.1 forge_version = 47.0.43 diff --git a/src/main/java/plus/dragons/createenchantmentindustry/content/contraptions/enchanting/disenchanter/DisenchanterRenderer.java b/src/main/java/plus/dragons/createenchantmentindustry/content/contraptions/enchanting/disenchanter/DisenchanterRenderer.java index 4f541761..78e4b3e4 100644 --- a/src/main/java/plus/dragons/createenchantmentindustry/content/contraptions/enchanting/disenchanter/DisenchanterRenderer.java +++ b/src/main/java/plus/dragons/createenchantmentindustry/content/contraptions/enchanting/disenchanter/DisenchanterRenderer.java @@ -138,6 +138,7 @@ protected void renderFluid(DisenchanterBlockEntity be, float partialTicks, PoseS var result = Disenchanting.disenchantResult(transported.stack, be.getLevel()); if (result == null) return; FluidStack xp = result.getFirst(); + if(xp.isEmpty()) return; int processingTicks = be.processingTicks; float processingProgress = processingTicks == 0 ? 0