mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Update to 1.16.2
This commit is contained in:
parent
bf6f6fddb2
commit
d37113388b
2 changed files with 5 additions and 5 deletions
|
@ -36,7 +36,7 @@ import org.geysermc.connector.network.BedrockProtocol;
|
||||||
import org.geysermc.connector.network.session.GeyserSession;
|
import org.geysermc.connector.network.session.GeyserSession;
|
||||||
import org.geysermc.connector.utils.DockerCheck;
|
import org.geysermc.connector.utils.DockerCheck;
|
||||||
import org.geysermc.connector.utils.FileUtils;
|
import org.geysermc.connector.utils.FileUtils;
|
||||||
import org.geysermc.floodgate.util.DeviceOS;
|
import org.geysermc.floodgate.util.DeviceOs;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
|
@ -54,7 +54,7 @@ public class DumpInfo {
|
||||||
private final DumpInfo.VersionInfo versionInfo;
|
private final DumpInfo.VersionInfo versionInfo;
|
||||||
private Properties gitInfo;
|
private Properties gitInfo;
|
||||||
private final GeyserConfiguration config;
|
private final GeyserConfiguration config;
|
||||||
private Object2IntMap<DeviceOS> userPlatforms;
|
private Object2IntMap<DeviceOs> userPlatforms;
|
||||||
private RamInfo ramInfo;
|
private RamInfo ramInfo;
|
||||||
private final BootstrapDumpInfo bootstrapInfo;
|
private final BootstrapDumpInfo bootstrapInfo;
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ public class DumpInfo {
|
||||||
|
|
||||||
this.userPlatforms = new Object2IntOpenHashMap();
|
this.userPlatforms = new Object2IntOpenHashMap();
|
||||||
for (GeyserSession session : GeyserConnector.getInstance().getPlayers()) {
|
for (GeyserSession session : GeyserConnector.getInstance().getPlayers()) {
|
||||||
DeviceOS device = session.getClientData().getDeviceOS();
|
DeviceOs device = session.getClientData().getDeviceOS();
|
||||||
userPlatforms.put(device, userPlatforms.getOrDefault(device, 0) + 1);
|
userPlatforms.put(device, userPlatforms.getOrDefault(device, 0) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ import org.geysermc.connector.entity.type.EntityType;
|
||||||
import org.geysermc.connector.network.session.GeyserSession;
|
import org.geysermc.connector.network.session.GeyserSession;
|
||||||
import org.geysermc.connector.utils.FireworkColor;
|
import org.geysermc.connector.utils.FireworkColor;
|
||||||
import org.geysermc.connector.utils.MathUtils;
|
import org.geysermc.connector.utils.MathUtils;
|
||||||
import org.geysermc.floodgate.util.DeviceOS;
|
import org.geysermc.floodgate.util.DeviceOs;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -67,7 +67,7 @@ public class FireworkEntity extends Entity {
|
||||||
|
|
||||||
// TODO: Remove once Mojang fixes bugs with fireworks crashing clients on these specific devices.
|
// TODO: Remove once Mojang fixes bugs with fireworks crashing clients on these specific devices.
|
||||||
// https://bugs.mojang.com/browse/MCPE-89115
|
// https://bugs.mojang.com/browse/MCPE-89115
|
||||||
if (session.getClientData().getDeviceOS() == DeviceOS.XBOX_ONE || session.getClientData().getDeviceOS() == DeviceOS.ORBIS) {
|
if (session.getClientData().getDeviceOS() == DeviceOs.XBOX_ONE || session.getClientData().getDeviceOS() == DeviceOs.ORBIS) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue