Bump version to 2.7.5-SNAPSHOT

This commit is contained in:
FlorianMichael 2023-06-04 22:27:34 +02:00
parent 26a755fbb3
commit 42b167bdef
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ loader_version=0.14.19
fabric_api_version=0.76.0+1.19.4
# viafabricplus
mod_version=2.7.4-SNAPSHOT
mod_version=2.7.5-SNAPSHOT
maven_group=de.florianmichael
archives_base_name=viafabricplus

View File

@ -116,7 +116,7 @@ public abstract class MixinPlayerEntity extends LivingEntity {
@Redirect(method = "dropItem(Lnet/minecraft/item/ItemStack;ZZ)Lnet/minecraft/entity/ItemEntity;", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/player/PlayerEntity;swingHand(Lnet/minecraft/util/Hand;)V"))
public void dontSwingHand(PlayerEntity instance, Hand hand) {
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_14_4)) return;
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_15_2)) return;
instance.swingHand(hand);
}