mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-06-26 06:14:42 +02:00
Allow the elytra model for creative mode, when not flying.
This commit is contained in:
parent
7ee946c899
commit
c046658c86
|
@ -392,7 +392,10 @@ public class MovingConfig extends ACheckConfig {
|
|||
default:
|
||||
return modelGameMode;
|
||||
}
|
||||
if (player.isFlying() || !ignoreAllowFlight && player.getAllowFlight()) {
|
||||
// TODO: Short touch of water/vines (/ground?) is possible - use past moves or in-medium-count.
|
||||
final boolean isUsingElytra = Bridge1_9.isWearingElytra(player);
|
||||
if (player.isFlying()
|
||||
|| !ignoreAllowFlight && player.getAllowFlight() && !isUsingElytra) {
|
||||
return modelGameMode;
|
||||
}
|
||||
// TODO: ORDER IS RANDOM GUESSING. Is mixtures possible?
|
||||
|
@ -407,7 +410,7 @@ public class MovingConfig extends ACheckConfig {
|
|||
// TODO: INCONSISTENT.
|
||||
return modelGameMode;
|
||||
}
|
||||
if (Bridge1_9.isWearingElytra(player)) { // Defensive: don't demand isGliding.
|
||||
if (isUsingElytra) { // Defensive: don't demand isGliding.
|
||||
return flyingModelElytra;
|
||||
}
|
||||
// Default by game mode.
|
||||
|
|
Loading…
Reference in New Issue
Block a user