forked from LogBlock/LogBlock
Corrected very broken Actor equality check
This commit is contained in:
@@ -28,10 +28,7 @@ public class Actor {
|
||||
return false;
|
||||
}
|
||||
final Actor other = (Actor) obj;
|
||||
if ((this.UUID == null) ? (other.UUID != null) : !this.UUID.equals(other.UUID)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return ((this.UUID == null && other.UUID == null) || this.UUID.equals(other.UUID));
|
||||
}
|
||||
|
||||
final String name;
|
||||
@@ -71,7 +68,6 @@ public class Actor {
|
||||
return new Actor(entity.getName());
|
||||
}
|
||||
|
||||
|
||||
public static Actor actorFromProjectileSource(ProjectileSource psource) {
|
||||
if (psource instanceof Player) {
|
||||
Player player = ((Player) psource).getPlayer();
|
||||
|
Reference in New Issue
Block a user