This repository was archived by the owner on Oct 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
src/main/java/com/github/vini2003/linkart/utility Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 11### What's New
22
3- * Smoother deceleration in proximity. (By [ GeeTransit] ( https://github.com/GeeTransit ) )
4- * Fix velocityMultiplier not being applied. (By [ GeeTransit] ( https://github.com/GeeTransit ) )
5- * Carts will now stop when the link is broken. (By [ GeeTransit] ( https://github.com/GeeTransit ) )
6- * Ensure train carts don't reverse on sharp curves. (By [ GeeTransit] ( https://github.com/GeeTransit ) )
7- * Updated to 1.20.2.
8- * Updated icon and contributors.
9- * Loader version is now enforced.
10- * Some other minor improvements.
3+ * Fixed linker not dropping when a minecart is destroyed.
4+ * Fixed minecarts only dropping chains after unlinking due to large distances.
5+ * Fixed a bug that allowed parent and child minecars to be double-linked.
6+ * Fixed ` getOtherEntities ` in ` adjustMovementForCollisions ` being called for every entity instead of just minecarts.
7+ * Every method in the ` LinkableMinecart ` interface is now ` default ` .
8+ * ` linkart$getLinkItem ` should no longer return ` null ` .
Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ public static void unlink(AbstractMinecartEntity entity) {
2222 entity .linkart$getFollowing ().linkart$setFollower (null );
2323 entity .setVelocity (0 , 0 , 0 );
2424
25- entity .dropStack (entity .linkart$getLinkItem ());
26- spawnChainParticles (entity );
25+ if (!entity .linkart$getLinkItem ().isEmpty ()) {
26+ entity .dropStack (entity .linkart$getLinkItem ());
27+ spawnChainParticles (entity );
28+ }
2729
2830 entity .linkart$setLinkItem (ItemStack .EMPTY );
2931 entity .linkart$setFollowing (null );
You can’t perform that action at this time.
0 commit comments