Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 13:00: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};
|
return new int[]{0};
|
||||||
}
|
}
|
||||||
MaterialData data = (MaterialData) obj;
|
MaterialData data = (MaterialData) obj;
|
||||||
IBlockData nms = CraftMagicNumbers.getBlock(data.getItemType()).fromLegacyData(data.getData());
|
return new int[]{data.getItemTypeId() + ((int)(data.getData()) << 12)};
|
||||||
return new int[]{Block.REGISTRY_ID.getId(nms)};
|
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException(particle.getDataType().toString());
|
throw new IllegalArgumentException(particle.getDataType().toString());
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren