mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 22:07:59 +01:00
Fixed incorrect eye height after dismounting. Fixes #190
This commit is contained in:
parent
69149570c4
commit
2ff66e3824
1 changed files with 4 additions and 4 deletions
|
@ -12,6 +12,7 @@ import net.minecraft.entity.EntityPose;
|
|||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
@Mixin(ClientPlayerEntity.class)
|
||||
|
@ -21,13 +22,12 @@ abstract class MixinClientPlayerEntity extends AbstractClientPlayerEntity implem
|
|||
private Pony pony;
|
||||
|
||||
@Inject(method = "startRiding(Lnet/minecraft/entity/Entity;Z)Z", at = @At("RETURN"))
|
||||
public void onStartRiding(Entity entity, boolean bl, CallbackInfoReturnable<Boolean> info) {
|
||||
private void onStartRiding(Entity entity, boolean bl, CallbackInfoReturnable<Boolean> info) {
|
||||
calculateDimensions();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stopRiding() {
|
||||
super.stopRiding();
|
||||
@Inject(method = "dismountVehicle()Z", at = @At("RETURN"))
|
||||
private void onStopRiding(CallbackInfo info) {
|
||||
calculateDimensions();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue