Skip to content

Commit 7b86944

Browse files
committed
Update Readme and fix Nametag with MobOwner
1 parent 5abb314 commit 7b86944

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ Customize your experience, and improve your efficiency!
1818
Find our plugins [here](https://github.com/lambda-plugins).
1919

2020
<p align="center">
21-
<a href="https://github.com/lambda-client/lambda/releases/download/3.0/lambda-3.0.jar"><img alt="lambda-3.0.jar - 31. December, 2021 - 12.0 Mb" src="https://raw.githubusercontent.com/lambda-client/assets/main/download_button_3.0.png" width="70%" height="70%"></a>
21+
<a href="https://github.com/lambda-client/lambda/releases/download/3.0.1/lambda-3.0.1.jar"><img alt="lambda-3.0.1.jar - 6. January, 2022 - 12.0 Mb" src="https://raw.githubusercontent.com/lambda-client/assets/main/download_button_3.0.1.png" width="70%" height="70%"></a>
2222
</p>
2323

2424
## Installation
2525
1. Install Minecraft 1.12.2
2626
2. Install Forge
27-
3. Download the mod file [here](https://github.com/lambda-client/lambda/releases/download/3.0/lambda-3.0.jar)
27+
3. Download the mod file [here](https://github.com/lambda-client/lambda/releases/download/3.0.1/lambda-3.0.1.jar)
2828
4. Put the file in your `.minecraft/mods` folder
2929

3030
## FAQ

src/main/kotlin/com/lambda/client/module/modules/movement/BoatFly.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ object BoatFly : Module(
7373
is SPacketSetPassengers -> {
7474
if (remount) {
7575
world.getEntityByID(it.packet.entityId)?.let { entity ->
76-
if ((it.packet.passengerIds.isEmpty())
76+
if (!it.packet.passengerIds.contains(player.entityId)
7777
&& ridingEntity.entityId == it.packet.entityId) {
7878
if (teleportSpoof) it.cancel()
7979
connection.sendPacket(CPacketUseEntity(entity, EnumHand.OFF_HAND))

src/main/kotlin/com/lambda/client/util/EntityUtils.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ object EntityUtils {
7171
}
7272

7373
fun mobTypeSettings(entity: Entity, mobs: Boolean, passive: Boolean, neutral: Boolean, hostile: Boolean, tamable: Boolean = false): Boolean {
74-
return mobs && (passive && entity.isPassive || neutral && entity.isNeutral || hostile && entity.isHostile || tamable && entity is EntityTameable)
74+
val tamed = when (entity) {
75+
is EntityTameable -> entity.isTamed || entity.ownerId != null
76+
is AbstractHorse -> entity.isTame || entity.ownerUniqueId != null
77+
else -> false
78+
}
79+
return mobs && (passive && entity.isPassive || neutral && entity.isNeutral || hostile && entity.isHostile || tamable && tamed)
7580
}
7681

7782
/**

0 commit comments

Comments
 (0)