File tree Expand file tree Collapse file tree
src/main/java/cn/ussshenzhou/madparticle/particle Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
3636mod_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
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments