Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-1640: Fix spawning particles that use MaterialData
Dieser Commit ist enthalten in:
Ursprung
a5d4a933bc
Commit
09b4549a29
@ -34,8 +34,7 @@ public class CraftParticle {
|
||||
return new int[]{0};
|
||||
}
|
||||
MaterialData data = (MaterialData) obj;
|
||||
IBlockData nms = CraftMagicNumbers.getBlock(data.getItemType()).fromLegacyData(data.getData());
|
||||
return new int[]{Block.REGISTRY_ID.getId(nms)};
|
||||
return new int[]{data.getItemTypeId() + ((int)(data.getData()) << 12)};
|
||||
}
|
||||
throw new IllegalArgumentException(particle.getDataType().toString());
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren