diff --git a/common/src/main/java/com/viaversion/viaversion/commands/defaultsubs/ReloadSubCmd.java b/common/src/main/java/com/viaversion/viaversion/commands/defaultsubs/ReloadSubCmd.java index 2c0817a66..5c850bc65 100644 --- a/common/src/main/java/com/viaversion/viaversion/commands/defaultsubs/ReloadSubCmd.java +++ b/common/src/main/java/com/viaversion/viaversion/commands/defaultsubs/ReloadSubCmd.java @@ -35,7 +35,7 @@ public class ReloadSubCmd implements ViaSubCommand { @Override public boolean execute(ViaCommandSender sender, String[] args) { Via.getManager().getConfigurationProvider().reloadConfigs(); - sendMessage(sender, "&6Configuration successfully reloaded! Some features may need a restart."); + sendMessage(sender, "&6Configuration successfully reloaded! Some config options may require a restart to take effect."); return true; } } diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_5to1_21/rewriter/EntityPacketRewriter1_21.java b/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_5to1_21/rewriter/EntityPacketRewriter1_21.java index cf33e9857..26df9035d 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_5to1_21/rewriter/EntityPacketRewriter1_21.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_5to1_21/rewriter/EntityPacketRewriter1_21.java @@ -125,10 +125,10 @@ public final class EntityPacketRewriter1_21 extends EntityRewriter { + if (!Via.getConfig().fix1_21PlacementRotation()) { + return; + } wrapper.passthrough(Types.DOUBLE); // X wrapper.passthrough(Types.DOUBLE); // Y wrapper.passthrough(Types.DOUBLE); // Z @@ -136,12 +136,18 @@ public final class EntityPacketRewriter1_21 extends EntityRewriter { + if (!Via.getConfig().fix1_21PlacementRotation()) { + return; + } wrapper.passthrough(Types.FLOAT); // Yaw wrapper.passthrough(Types.FLOAT); // Pitch wrapper.user().get(OnGroundTracker.class).setOnGround(wrapper.passthrough(Types.BOOLEAN)); }); protocol.registerServerbound(ServerboundPackets1_20_5.MOVE_PLAYER_POS_ROT, wrapper -> { + if (!Via.getConfig().fix1_21PlacementRotation()) { + return; + } wrapper.passthrough(Types.DOUBLE); // X wrapper.passthrough(Types.DOUBLE); // Y wrapper.passthrough(Types.DOUBLE); // Z @@ -151,6 +157,9 @@ public final class EntityPacketRewriter1_21 extends EntityRewriter { + if (!Via.getConfig().fix1_21PlacementRotation()) { + return; + } wrapper.user().get(OnGroundTracker.class).setOnGround(wrapper.passthrough(Types.BOOLEAN)); }); }