Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit cc77eec

Browse files
committed
CHANGELOG.md
1 parent e726c22 commit cc77eec

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
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`.

src/main/java/com/github/vini2003/linkart/utility/CartUtils.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)