mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-16 10:45:15 +01:00
fix server closes #148
This commit is contained in:
parent
dd28200b0f
commit
9e337d45c1
@ -93,6 +93,7 @@ public class ViaFabric implements ModInitializer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void registerGui() {
|
private void registerGui() {
|
||||||
|
if (FabricLoader.getInstance().getEnvironmentType() != EnvType.CLIENT) return;
|
||||||
try {
|
try {
|
||||||
ScreenEvents.AFTER_INIT.register((client, screen, scaledWidth, scaledHeight) -> {
|
ScreenEvents.AFTER_INIT.register((client, screen, scaledWidth, scaledHeight) -> {
|
||||||
if (!(screen instanceof MultiplayerScreen)) return;
|
if (!(screen instanceof MultiplayerScreen)) return;
|
||||||
|
@ -93,6 +93,7 @@ public class ViaFabric implements ModInitializer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void registerGui() {
|
private void registerGui() {
|
||||||
|
if (FabricLoader.getInstance().getEnvironmentType() != EnvType.CLIENT) return;
|
||||||
try {
|
try {
|
||||||
ScreenEvents.AFTER_INIT.register((client, screen, scaledWidth, scaledHeight) -> {
|
ScreenEvents.AFTER_INIT.register((client, screen, scaledWidth, scaledHeight) -> {
|
||||||
if (!(screen instanceof MultiplayerScreen)) return;
|
if (!(screen instanceof MultiplayerScreen)) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user