mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-25 18:09:27 +00:00
修复气泡
This commit is contained in:
@@ -164,8 +164,13 @@ public class BukkitProjectileManager implements Listener, ProjectileManager {
|
||||
this.cachedServerEntity = serverEntity;
|
||||
}
|
||||
|
||||
if (!CoreReflections.clazz$AbstractArrow.isInstance(nmsEntity) || !this.checkInGround) {
|
||||
if (!CoreReflections.clazz$AbstractArrow.isInstance(nmsEntity)) {
|
||||
updateProjectileUpdateInterval(1);
|
||||
} else if (!this.checkInGround) {
|
||||
updateProjectileUpdateInterval(1);
|
||||
if (FastNMS.INSTANCE.field$Entity$wasTouchingWater(nmsEntity)) {
|
||||
this.projectile.getWorld().spawnParticle(ParticleUtils.BUBBLE, this.projectile.getLocation(), 3, 0.1, 0.1, 0.1, 0);
|
||||
}
|
||||
} else {
|
||||
boolean inGround = FastNMS.INSTANCE.method$AbstractArrow$isInGround(nmsEntity);
|
||||
if (canSpawnParticle(nmsEntity, inGround)) {
|
||||
|
||||
Reference in New Issue
Block a user