fixed bugs, memory leaks, etc

This commit is contained in:
bbldrizzy committed 2026-10-23 08:36:42 +01:00
1 parent aa4f6b6ddc
commit c3f8f23c1d
124 files changed
+1060 -420

No files matched your search

@@ -8,7 +8,7 @@ import net.minecraft.util.math.Vec3d;
public class LegacyParticlePhysics extends HitParticlePhysics {
@Override
public void updateMotion(HitParticle particle, boolean physicsEnabled) {
if (!physicsEnabled) {
if (!physicsEnabled || MinecraftAccess.mc.world == null) {
this.applyLegacyMotion(particle);
} else {
if (!this.isPassable(MinecraftAccess.mc.world.getBlockState(BlockPos.ofFloored(particle.pos.x, particle.pos.y, particle.pos.z + particle.velocity.z)))) {