Skip to content

Commit

Permalink
Allow mouse MMB block pick while player cannot build (Anuken#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxtej committed Aug 27, 2021
1 parent 97f7f43 commit 3d3f371
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 @@ -100,7 +100,7 @@ void rebuild(){
boolean gridUpdate(InputHandler input){
scrollPositions.put(currentCategory, blockPane.getScrollY());

if(Core.input.keyTap(Binding.pick) && player.isBuilder()){ //mouse eyedropper select
if(Core.input.keyTap(Binding.pick) /*&& player.isBuilder()*/){ //mouse eyedropper select
var build = world.buildWorld(Core.input.mouseWorld().x, Core.input.mouseWorld().y);
Block tryRecipe = build == null ? null : build instanceof ConstructBuild c ? c.current : build.block;
Object tryConfig = build == null || !build.block.copyConfig ? null : build.config();
Expand Down

0 comments on commit 3d3f371

Please sign in to comment.