Allow the elytra model for creative mode, when not flying.

This commit is contained in:
asofold 2017-02-22 22:51:04 +01:00
parent 7ee946c899
commit c046658c86

View File

@ -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.