clue scroll plugin: correct usage of getImpostor
This commit is contained in:
@@ -608,7 +608,7 @@ public class ClueScrollPlugin extends Plugin
|
|||||||
|
|
||||||
// Check impostors
|
// Check impostors
|
||||||
final ObjectComposition comp = client.getObjectDefinition(object.getId());
|
final ObjectComposition comp = client.getObjectDefinition(object.getId());
|
||||||
final ObjectComposition impostor = comp.getImpostor();
|
final ObjectComposition impostor = comp.getImpostorIds() != null ? comp.getImpostor() : comp;
|
||||||
|
|
||||||
if (impostor != null && impostor.getId() == id)
|
if (impostor != null && impostor.getId() == id)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user