Skip to content

Commit

Permalink
Add TODO item relating to core middle clicks [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 committed Oct 2, 2024
1 parent a8be6d8 commit 60ee15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/ui/fragments/PlacementFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ boolean gridUpdate(InputHandler input){
Block tryRecipe = build == null ? null : build instanceof ConstructBuild c ? c.current : build.block;
Object tryConfig = build == null || !build.block.copyConfig ? null : build.config();
boolean wasShard = tryRecipe == Blocks.coreShard;
if (wasShard || tryRecipe == Blocks.coreFoundation) tryRecipe = // If core was middle-clicked, selects the best affordable core
if (wasShard || tryRecipe == Blocks.coreFoundation) tryRecipe = // If core was middle-clicked, selects the best affordable core FINISHME: This is hardcoded and doesn't even support erekir cores. Fix this.
Blocks.coreNucleus.isVisible() && Blocks.coreNucleus.unlockedNow() && (state.rules.infiniteResources || player.team().items().has(Blocks.coreNucleus.requirements, state.rules.buildCostMultiplier)) ? Blocks.coreNucleus :
Blocks.coreFoundation.isVisible() && Blocks.coreFoundation.unlockedNow() ? Blocks.coreFoundation :
null;
Expand Down

0 comments on commit 60ee15d

Please sign in to comment.