Disable fireworks for consoles (Addresses
Not ideal, but there isn't a whole lot we can do as this is a game bug within console versions.
@@ -40,6 +40,7 @@ import org.geysermc.connector.entity.type.EntityType;
import org.geysermc.connector.network.session.GeyserSession;
import org.geysermc.connector.utils.FireworkColor;
import org.geysermc.connector.utils.MathUtils;
+import org.geysermc.floodgate.util.DeviceOS;
import java.util.ArrayList;
import java.util.List;
@@ -64,6 +65,12 @@ public class FireworkEntity extends Entity {
return;
}
+ // TODO: Remove once Mojang fixes bugs with fireworks crashing clients on these specific devices.
+ // https://bugs.mojang.com/browse/MCPE-89115
+ if (session.getClientData().getDeviceOS() == DeviceOS.XBOX_ONE || session.getClientData().getDeviceOS() == DeviceOS.ORBIS) {
+ return;
+ }
+
CompoundTag fireworks = tag.get("Fireworks");
NbtMapBuilder fireworksBuilder = NbtMap.builder();
