Fix the protocol lib integration. Thanks @aadnk

This commit is contained in:
Olof Larsson 2013-07-02 21:37:13 +02:00
parent 5c24a6a2da
commit 504b479d31

View File

@ -64,7 +64,7 @@ public class EntityPotionColorPacketAdapter extends PacketAdapter
for (WrappedWatchableObject watchable : metadata) for (WrappedWatchableObject watchable : metadata)
{ {
// If the watchable is about potion effect color ... // If the watchable is about potion effect color ...
if (watchable.getIndex() != 8) continue; if (watchable.getIndex() != 7) continue;
// ... run our custom async event to allow changing it ... // ... run our custom async event to allow changing it ...
int oldColor = (Integer) watchable.getValue(); int oldColor = (Integer) watchable.getValue();