
Player latexes will spazz out and try to stand up whilst crawling.
bijimio opened this issue ยท 2 comments
crawlingbug.mp4
this bug can also interfere with crawling/proning mods.
Interestingly upon further testing, I found this wasn't an issue before v0.12b, since I remember crawling worked as normal In earlier versions.
Issue only seems to happen when the player is rendered in any way (third person, inventory), but not with the ability radial screen. It's possible this is from a fix I made to the dark latex pups crouching weirdly under blocks.
After reverting faa60fe for testing, the issue originates from the getDimensions()
mixin
@Inject(method = "getDimensions", at = @At("HEAD"), cancellable = true)
public void getDimensions(Pose pose, CallbackInfoReturnable<EntityDimensions> callback) {
if (ProcessTransfur.ifPlayerLatex(EntityUtil.playerOrNull(this), variant -> {
callback.setReturnValue(variant.getLatexEntity().getDimensions(pose));
}));
}
Or at least the issue is only prevalent when this mixin is active