mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2025-01-02 18:39:16 +01:00
Always load player in <= 1.21.3
This commit is contained in:
parent
a77937670e
commit
0a079a1a90
@ -60,7 +60,6 @@ import java.util.concurrent.CompletableFuture;
|
|||||||
* - OXYGEN_BONUS 1.21 -> 1.20.5 handling is missing (only visual)
|
* - OXYGEN_BONUS 1.21 -> 1.20.5 handling is missing (only visual)
|
||||||
*
|
*
|
||||||
* TODO | Movement
|
* TODO | Movement
|
||||||
* - Blip-jumping is not supported in <= 1.13.2 (https://github.com/ViaVersion/ViaFabricPlus/issues/225)
|
|
||||||
* - 1.8 lava movement
|
* - 1.8 lava movement
|
||||||
* - 1.13.2 water movement
|
* - 1.13.2 water movement
|
||||||
*/
|
*/
|
||||||
|
@ -82,6 +82,13 @@ public abstract class MixinPlayerEntity extends LivingEntity {
|
|||||||
super(entityType, world);
|
super(entityType, world);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Inject(method = "isLoaded", at = @At("HEAD"), cancellable = true)
|
||||||
|
public void alwaysLoadPlayer(CallbackInfoReturnable<Boolean> cir) {
|
||||||
|
if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_21_2)) {
|
||||||
|
cir.setReturnValue(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ModifyConstant(method = "isSpaceAroundPlayerEmpty", constant = @Constant(doubleValue = 9.999999747378752E-6 /* 1.0E-5F */))
|
@ModifyConstant(method = "isSpaceAroundPlayerEmpty", constant = @Constant(doubleValue = 9.999999747378752E-6 /* 1.0E-5F */))
|
||||||
private double removeOffsetWhenCheckingSneakingCollision(double constant) {
|
private double removeOffsetWhenCheckingSneakingCollision(double constant) {
|
||||||
if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_20_3)) {
|
if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_20_3)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user