Fix compile error in FakePlayer from cherry pick

This commit is contained in:
tterrag 2019-04-13 21:42:42 -04:00
parent a56f894e39
commit 8515b9dd10

View file

@ -35,6 +35,7 @@ import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.WorldServer;
import net.minecraft.world.dimension.DimensionType;
import net.minecraftforge.fml.server.ServerLifecycleHooks;
//Preliminary, simple Fake Player class
public class FakePlayer extends EntityPlayerMP
@ -55,5 +56,5 @@ public class FakePlayer extends EntityPlayerMP
@Override public void tick(){ return; }
@Override public Entity changeDimension(DimensionType dim, ITeleporter teleporter){ return this; }
@Override public void handleClientSettings(CPacketClientSettings pkt){ return; }
@Override @Nullable public MinecraftServer getServer() { return FMLCommonHandler.instance().getMinecraftServerInstance(); }
@Override @Nullable public MinecraftServer getServer() { return ServerLifecycleHooks.getCurrentServer(); }
}