Skip to content

Commit

Permalink
Disable fireworks for consoles (Addresses #1083, #1164)
Browse files Browse the repository at this point in the history
Not ideal, but there isn't a whole lot we can do as this is a game bug within console versions.
  • Loading branch information
Redned235 committed Aug 18, 2020
1 parent 8c514d9 commit 6db56fd
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
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;
Expand All @@ -64,6 +65,12 @@ public void updateBedrockMetadata(EntityMetadata entityMetadata, GeyserSession s
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();
Expand Down

0 comments on commit 6db56fd

Please sign in to comment.