Fixed #11666
This commit is contained in:
@@ -14,8 +14,8 @@ public class EmpBulletType extends BasicBulletType{
|
|||||||
public float unitDamageScl = 0.7f;
|
public float unitDamageScl = 0.7f;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void hit(Bullet b, float x, float y){
|
public void hit(Bullet b, float x, float y, boolean createFrags){
|
||||||
super.hit(b, x, y);
|
super.hit(b, x, y, createFrags);
|
||||||
|
|
||||||
if(!b.absorbed){
|
if(!b.absorbed){
|
||||||
Vars.indexer.allBuildings(x, y, radius, other -> {
|
Vars.indexer.allBuildings(x, y, radius, other -> {
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ public class LiquidBulletType extends BulletType{
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void hit(Bullet b, float hitx, float hity){
|
public void hit(Bullet b, float hitx, float hity, boolean createFrags){
|
||||||
hitEffect.at(hitx, hity, liquid.color);
|
hitEffect.at(hitx, hity, liquid.color);
|
||||||
Puddles.deposit(world.tileWorld(hitx, hity), liquid, puddleSize);
|
Puddles.deposit(world.tileWorld(hitx, hity), liquid, puddleSize);
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
package mindustry.entities.bullet;
|
package mindustry.entities.bullet;
|
||||||
|
|
||||||
import arc.graphics.*;
|
import arc.graphics.*;
|
||||||
import arc.graphics.g2d.*;
|
|
||||||
import arc.math.*;
|
import arc.math.*;
|
||||||
import mindustry.content.*;
|
import mindustry.content.*;
|
||||||
import mindustry.entities.*;
|
import mindustry.entities.*;
|
||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
import mindustry.graphics.*;
|
|
||||||
import mindustry.type.*;
|
import mindustry.type.*;
|
||||||
import mindustry.world.blocks.distribution.MassDriver.*;
|
import mindustry.world.blocks.distribution.MassDriver.*;
|
||||||
|
|
||||||
@@ -88,8 +86,8 @@ public class MassDriverBolt extends BasicBulletType{
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void hit(Bullet b, float hitx, float hity){
|
public void hit(Bullet b, float hitx, float hity, boolean createFrags){
|
||||||
super.hit(b, hitx, hity);
|
super.hit(b, hitx, hity, createFrags);
|
||||||
despawned(b);
|
despawned(b);
|
||||||
if(b.data() instanceof DriverBulletData data){
|
if(b.data() instanceof DriverBulletData data){
|
||||||
float explosiveness = 0f;
|
float explosiveness = 0f;
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ tasks.register('dist', Jar){
|
|||||||
attributes 'Main-Class': project.mainClassName
|
attributes 'Main-Class': project.mainClassName
|
||||||
//note: this doesn't do anything when launched from the bundled JVM
|
//note: this doesn't do anything when launched from the bundled JVM
|
||||||
attributes 'Enable-Native-Access': 'ALL-UNNAMED'
|
attributes 'Enable-Native-Access': 'ALL-UNNAMED'
|
||||||
|
attributes 'Multi-Release': 'true'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user