Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Mickey42302 <[email protected]>
Date: Sun, 9 Nov 2025 14:50:22 -0500
Subject: [PATCH] Allow overriding IS_RUNNING_IN_IDE


diff --git a/net/minecraft/SharedConstants.java b/net/minecraft/SharedConstants.java
index 5961f904ee58ea95b92a5d47f4b018f5c1f879c7..3236d9ed16abefb221294410fe69850cc3583fb5 100644
--- a/net/minecraft/SharedConstants.java
+++ b/net/minecraft/SharedConstants.java
@@ -149,6 +149,7 @@ public class SharedConstants {
public static final float AVERAGE_RANDOM_TICKS_PER_BLOCK_PER_MINUTE = 0.87890625F;
public static final float AVERAGE_RANDOM_TICKS_PER_BLOCK_PER_GAME_DAY = 17.578125F;
public static final int WORLD_ICON_SIZE = 64;
+ private static final boolean ENABLE_DEV_FEATURES = Boolean.getBoolean("paper.enableDevFeatures");
@Nullable
private static WorldVersion CURRENT_VERSION;

@@ -225,5 +226,8 @@ public class SharedConstants {
ResourceLeakDetector.setLevel(NETTY_LEAK_DETECTION);
CommandSyntaxException.ENABLE_COMMAND_STACK_TRACES = COMMAND_STACK_TRACES;
CommandSyntaxException.BUILT_IN_EXCEPTIONS = new BrigadierExceptions();
+ if (ENABLE_DEV_FEATURES) {
+ IS_RUNNING_IN_IDE = true;
+ }
}
}