mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
SPIGOT-1640: Fix spawning particles that use MaterialData
This commit is contained in:
parent
a5d4a933bc
commit
09b4549a29
1 changed files with 1 additions and 2 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue