Add missing patch to ScreenShotHelper (#6809)
Adds the missed patch back
This commit is contained in:
parent
6cfc88e707
commit
7bca3684bd
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
--- a/net/minecraft/util/ScreenShotHelper.java
|
--- a/net/minecraft/util/ScreenShotHelper.java
|
||||||
+++ b/net/minecraft/util/ScreenShotHelper.java
|
+++ b/net/minecraft/util/ScreenShotHelper.java
|
||||||
@@ -50,13 +50,21 @@
|
@@ -50,13 +50,23 @@
|
||||||
file2 = new File(file1, p_228051_1_);
|
file2 = new File(file1, p_228051_1_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@
|
||||||
- p_228051_5_.accept(new TranslationTextComponent("screenshot.success", itextcomponent));
|
- p_228051_5_.accept(new TranslationTextComponent("screenshot.success", itextcomponent));
|
||||||
+ if (event.getResultMessage() != null)
|
+ if (event.getResultMessage() != null)
|
||||||
+ p_228051_5_.accept(event.getResultMessage());
|
+ p_228051_5_.accept(event.getResultMessage());
|
||||||
|
+ else
|
||||||
|
+ p_228051_5_.accept(new TranslationTextComponent("screenshot.success", itextcomponent));
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
field_148261_a.warn("Couldn't save screenshot", (Throwable)exception);
|
field_148261_a.warn("Couldn't save screenshot", (Throwable)exception);
|
||||||
p_228051_5_.accept(new TranslationTextComponent("screenshot.failure", exception.getMessage()));
|
p_228051_5_.accept(new TranslationTextComponent("screenshot.failure", exception.getMessage()));
|
||||||
|
|
Loading…
Reference in a new issue