-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1754 from Cyramek/via-version-fix
warn about `ViaVersion rotation-place fix`
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/ac/grim/grimac/manager/init/start/ViaVersion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package ac.grim.grimac.manager.init.start; | ||
|
||
import ac.grim.grimac.manager.init.Initable; | ||
import ac.grim.grimac.utils.anticheat.LogUtil; | ||
import com.viaversion.viaversion.api.Via; | ||
import io.github.retrooper.packetevents.util.viaversion.ViaVersionUtil; | ||
|
||
public class ViaVersion implements Initable { | ||
@Override | ||
public void start() { | ||
if (!ViaVersionUtil.isAvailable() || !Via.getConfig().fix1_21PlacementRotation()) { | ||
return; | ||
} | ||
|
||
LogUtil.warn("GrimAC has detected that you are using ViaVersion with the `fix-1_21-placement-rotation` option enabled."); | ||
LogUtil.warn("This option is known to cause issues with GrimAC and may result in false positives and bypasses."); | ||
LogUtil.warn("Please disable this option in your ViaVersion configuration to prevent these issues."); | ||
} | ||
} |