Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 17:10:13 +01:00
Actually restrict velocity change to fishing hooks
Dieser Commit ist enthalten in:
Ursprung
f4d6659760
Commit
c5dc5b2bf8
@ -146,8 +146,10 @@ public class EntityPacketRewriter1_11 extends EntityRewriter<ClientboundPackets1
|
|||||||
});
|
});
|
||||||
|
|
||||||
protocol.registerClientbound(ClientboundPackets1_9_3.SET_ENTITY_MOTION, wrapper -> {
|
protocol.registerClientbound(ClientboundPackets1_9_3.SET_ENTITY_MOTION, wrapper -> {
|
||||||
wrapper.passthrough(Types.VAR_INT); // Entity id
|
final int entityId = wrapper.passthrough(Types.VAR_INT);
|
||||||
|
if (tracker(wrapper.user()).entityType(entityId) == EntityTypes1_10.EntityType.FISHING_HOOK) {
|
||||||
tryFixFishingHookVelocity(wrapper);
|
tryFixFishingHookVelocity(wrapper);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
registerRemoveEntities(ClientboundPackets1_9_3.REMOVE_ENTITIES);
|
registerRemoveEntities(ClientboundPackets1_9_3.REMOVE_ENTITIES);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren