kumpelblase2 / Remote-Entities

A library that enables you to control entities in minecraft.
Other
31 stars 28 forks source link

Fixes EntityManager returning incorrect RemoteEntity #67

Closed kolinkrewinkel closed 11 years ago

kolinkrewinkel commented 11 years ago

Both @Coestar and @king601 can vouch for this occurring:

When passing this method two distinct LivingEntity's (of the same name, for instance "test" and "test"), this method would return the same RemoteEntity.

This caused adverse behavior, such as one entity getting punched, a fake damage being dispatched, and the wrong RemoteEntity faking the damage (or whatever the action done was.)

In my testing, this worked :100: percent of the time and fixed everything. :sparkles: