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