Skip to content

optimize blockstate precompute masks for pathfinding and entity movement#114

Merged
RuleGaed merged 1 commit into
GaleMC:mainfrom
RuleGaed:main
Jul 8, 2026
Merged

optimize blockstate precompute masks for pathfinding and entity movement#114
RuleGaed merged 1 commit into
GaleMC:mainfrom
RuleGaed:main

Conversation

@RuleGaed

@RuleGaed RuleGaed commented Jul 8, 2026

Copy link
Copy Markdown
Member

No description provided.

@RuleGaed RuleGaed force-pushed the main branch 2 times, most recently from d332769 to 52ed878 Compare July 8, 2026 20:27

@MartijnMuijsers MartijnMuijsers 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.

How about deleting every _BLOCK condition in here and merging #115 instead?

@RuleGaed RuleGaed merged commit 74cd467 into GaleMC:main Jul 8, 2026
1 check passed
RuleGaed added a commit to RuleGaed/Gale that referenced this pull request Jul 9, 2026
- Add RAILS_TAG = 0x8000 to BlockMasks.java
- Convert state.is(BlockTags.RAILS) to state.isAny(BlockMasks.RAILS_TAG) in:
  - AbstractMinecart.java (getBlockSpeedFactor, getCurrentBlockPosOrRailBelow)
  - MinecartTNT.java (getBlockExplosionResistance, shouldBlockExplode)
  - OldMinecartBehavior.java (getPos, getPosOffs)
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.

3 participants