Replaced some post calls with cancel-able time calls

This commit is contained in:
Anuken
2025-04-24 11:18:24 -04:00
parent 37902a1f1c
commit 8de3e28994
4 changed files with 5 additions and 8 deletions

View File

@@ -546,7 +546,7 @@ public class Damage{
}
public static void tileDamage(Team team, int x, int y, float baseRadius, float damage, @Nullable Bullet source){
Core.app.post(() -> {
Time.run(0f, () -> {
var in = world.build(x, y);
//spawned inside a multiblock. this means that damage needs to be dealt directly.
//why? because otherwise the building would absorb everything in one cell, which means much less damage than a nearby explosion.

View File

@@ -518,7 +518,7 @@ public class BulletType extends Content implements Cloneable{
if(fragOnHit){
if(delayFrags && fragBullet != null && fragBullet.delayFrags){
Core.app.post(() -> createFrags(b, x, y));
Time.run(0f, () -> createFrags(b, x, y));
}else{
createFrags(b, x, y);
}