mirror of
https://github.com/GeyserMC/Geyser.git
synced 2026-01-06 15:41:50 +00:00
Firework shapes
This commit is contained in:
@@ -92,10 +92,7 @@ public class FireworkRocketItem extends Item {
|
||||
static NbtMap translateExplosionToBedrock(Fireworks.FireworkExplosion explosion) {
|
||||
NbtMapBuilder newExplosionData = NbtMap.builder();
|
||||
|
||||
// if (explosion.get("Type") != null) {
|
||||
// newExplosionData.put(new ByteTag("FireworkType", MathUtils.getNbtByte(explosion.get("Type").getValue())));
|
||||
// }
|
||||
//newExplosionData.putByte("FireworkType", explosion.get) //TODO???
|
||||
newExplosionData.putByte("FireworkType", (byte) explosion.getShapeId());
|
||||
|
||||
int[] oldColors = explosion.getColors();
|
||||
byte[] colors = new byte[oldColors.length];
|
||||
|
||||
Reference in New Issue
Block a user