mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 14:01:03 -08:00
Fixed #2131
This commit is contained in:
parent
e2d016f318
commit
bb6230966f
2 changed files with 6 additions and 4 deletions
|
|
@ -280,12 +280,14 @@ public class Drill extends Block{
|
|||
return;
|
||||
}
|
||||
|
||||
if(dominantItems > 0 && progress >= drillTime + hardnessDrillMultiplier * dominantItem.hardness && items.total() < itemCapacity){
|
||||
float delay = drillTime + hardnessDrillMultiplier * dominantItem.hardness;
|
||||
|
||||
if(dominantItems > 0 && progress >= delay && items.total() < itemCapacity){
|
||||
offload(dominantItem);
|
||||
useContent(dominantItem);
|
||||
|
||||
index++;
|
||||
progress = 0f;
|
||||
index ++;
|
||||
progress %= delay;
|
||||
|
||||
drillEffect.at(getX() + Mathf.range(size), getY() + Mathf.range(size), dominantItem.color);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=713b7e105ae8dde696c1ee8e25b4cc257ca1bf04
|
||||
archash=8ae9a1cd46776f886d41b483c331e38c9ca96bcf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue