-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set
IS_RUNNING_IN_IDE
to true in userdev (#544)
- Loading branch information
1 parent
932773f
commit 0c97f37
Showing
6 changed files
with
67 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,37 @@ | ||
--- a/net/minecraft/Util.java | ||
+++ b/net/minecraft/Util.java | ||
@@ -261,7 +_,7 @@ | ||
@@ -261,8 +_,8 @@ | ||
.getSchema(DataFixUtils.makeKey(SharedConstants.getCurrentVersion().getDataVersion().getVersion())) | ||
.getChoiceType(p_137552_, p_137553_); | ||
} catch (IllegalArgumentException illegalargumentexception) { | ||
- LOGGER.error("No data fixer registered for {}", p_137553_); | ||
- if (SharedConstants.IS_RUNNING_IN_IDE) { | ||
+ LOGGER.debug("No data fixer registered for {}", p_137553_); | ||
if (SharedConstants.IS_RUNNING_IN_IDE) { | ||
+ if (SharedConstants.IS_RUNNING_IN_IDE && false) { | ||
throw illegalargumentexception; | ||
} | ||
} | ||
@@ -438,20 +_,20 @@ | ||
|
||
public static void logAndPauseIfInIde(String p_143786_) { | ||
LOGGER.error(p_143786_); | ||
- if (SharedConstants.IS_RUNNING_IN_IDE) { | ||
+ if (SharedConstants.IS_RUNNING_WITH_JDWP) { | ||
doPause(p_143786_); | ||
} | ||
} | ||
|
||
public static void logAndPauseIfInIde(String p_200891_, Throwable p_200892_) { | ||
LOGGER.error(p_200891_, p_200892_); | ||
- if (SharedConstants.IS_RUNNING_IN_IDE) { | ||
+ if (SharedConstants.IS_RUNNING_WITH_JDWP) { | ||
doPause(p_200891_); | ||
} | ||
} | ||
|
||
public static <T extends Throwable> T pauseInIde(T p_137571_) { | ||
- if (SharedConstants.IS_RUNNING_IN_IDE) { | ||
+ if (SharedConstants.IS_RUNNING_WITH_JDWP) { | ||
LOGGER.error("Trying to throw a fatal exception, pausing in IDE", p_137571_); | ||
doPause(p_137571_.getMessage()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/net/minecraft/client/GameNarrator.java | ||
+++ b/net/minecraft/client/GameNarrator.java | ||
@@ -59,7 +_,7 @@ | ||
} | ||
|
||
private void logNarratedMessage(String p_168788_) { | ||
- if (SharedConstants.IS_RUNNING_IN_IDE) { | ||
+ if (SharedConstants.IS_RUNNING_IN_IDE && false) { | ||
LOGGER.debug("Narrating: {}", p_168788_.replaceAll("\n", "\\\\n")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters