Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
Firework shapes
Dieser Commit ist enthalten in:
Ursprung
88ae447fc6
Commit
a82a156419
@ -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];
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren