mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:01:32 +01:00
isIntegratedServerRunning bridge
This commit is contained in:
parent
c1eab8a9fb
commit
b2413b8b82
@ -43,4 +43,9 @@ public class MinecraftBridge implements IMinecraft {
|
||||
public ITextureManager getTextureManager() {
|
||||
return textureManager;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isIntegratedServerRunning() {
|
||||
return Minecraft.getMinecraft().isIntegratedServerRunning();
|
||||
}
|
||||
}
|
||||
|
@ -482,7 +482,7 @@ public class Client {
|
||||
return;
|
||||
}
|
||||
|
||||
if(Minecraft.getMinecraft().getCurrentServerData() != null && !Minecraft.getMinecraft().isIntegratedServerRunning()) {
|
||||
if(Minecraft.getMinecraft().getCurrentServerData() != null && !Client.getWrapper().getMinecraft().isIntegratedServerRunning()) {
|
||||
if(nextPing > 0) {
|
||||
nextPing--;
|
||||
}
|
||||
|
@ -13,4 +13,5 @@ public interface IMinecraft {
|
||||
void displayGuiScreen(GuiScreen guiScreen);
|
||||
// Как видишь, TextureManager это класс из net.minecraft, поэтому тебе нужно создать обертку
|
||||
ITextureManager getTextureManager();
|
||||
boolean isIntegratedServerRunning();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user