mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed errors executing commands
This commit is contained in:
parent
629c5fed51
commit
cc63736466
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
package com.minelittlepony.unicopia.command;
|
||||
|
||||
import com.minelittlepony.unicopia.player.IPlayer;
|
||||
import com.minelittlepony.unicopia.player.PlayerSpeciesList;
|
||||
|
||||
import net.minecraft.command.CommandException;
|
||||
import net.minecraft.command.CommandGameMode;
|
||||
|
@ -37,7 +37,7 @@ class CommandOverrideGameMode extends CommandGameMode {
|
|||
boolean flying = player.capabilities.isFlying;
|
||||
|
||||
player.setGameType(m);
|
||||
player.capabilities.isFlying = ((IPlayer)player).getPlayerSpecies().canFly();
|
||||
player.capabilities.isFlying = PlayerSpeciesList.instance().getPlayer(player).getPlayerSpecies().canFly();
|
||||
|
||||
if (flying != player.capabilities.isFlying) {
|
||||
player.sendPlayerAbilities();
|
||||
|
|
Loading…
Reference in a new issue