Skip to content

Commit cf3cbc7

Browse files
committed
fix
1 parent 0a6bb3e commit cf3cbc7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mod_name=MadParticle
3535
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
3636
mod_license=GNU GPL 3.0
3737
# The mod version. See https://semver.org/
38-
mod_version=26.1.2-6
38+
mod_version=26.1.2-7
3939
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
4040
# This should match the base package used for the mod sources.
4141
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

src/main/java/cn/ussshenzhou/madparticle/particle/MadParticle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,10 @@ private void normalTick() {
345345
tickAlphaAndSize();
346346
//interact with Entity
347347
if (interactWithEntity) {
348-
var entity = level.getEntitiesOfClass(Entity.class, AABB.INFINITE)
348+
//var entity = level.getentity
349+
var entity = level.getEntitiesOfClass(Entity.class, this.bb.inflate(0.4))
349350
.parallelStream()
350351
.min(Comparator.comparingDouble(e -> e.distanceToSqr(x, y, z)))
351-
.filter(e -> e.distanceToSqr(x, y, z) < 0.4 * 0.4)
352352
.orElse(null);
353353
if (entity != null) {
354354
Vec3 v = entity.getDeltaMovement();

0 commit comments

Comments
 (0)