Skip to content

Add system property which overrides IS_RUNNING_IN_IDE - #332

Merged
Toffikk merged 2 commits into
CraftCanvasMC:mainfrom
Mickey42302:main
Sep 3, 2026
Merged

Add system property which overrides IS_RUNNING_IN_IDE#332
Toffikk merged 2 commits into
CraftCanvasMC:mainfrom
Mickey42302:main

Conversation

@Mickey42302

Copy link
Copy Markdown
Contributor

I'd like to suggest the addition of a "canvas.isRunningInIDE" system property. This is a simple patch that has a big impact: it overrides the "IS_RUNNING_IN_IDE" flag. The "IS_RUNNING_IN_IDE" flag controls access to many functionalities that are hidden within the game's code.

If the system property is added, a mixin loader will no longer be required to override the "IS_RUNNING_IN_IDE" flag. All players will have to do is add "-Dcanvas.isRunningInIDE=true" to their startup script, and the job is done.

@BaconCat1

Copy link
Copy Markdown
Contributor

LGTM

@R00tB33rMan R00tB33rMan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a perfectly reasonable addition

Comment thread canvas-server/minecraft-patches/sources/net/minecraft/SharedConstants.java.patch Outdated
@Toffikk
Toffikk merged commit e63c4aa into CraftCanvasMC:main Sep 3, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants