13
0
geforkt von Mirrors/Paper

SPIGOT-1640: Fix spawning particles that use MaterialData

By: Thinkofdeath <thinkofdeath@spigotmc.org>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2016-03-02 14:51:50 +00:00
Ursprung 90729b1eda
Commit 6a24b56032

Datei anzeigen

@ -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());
} }