I swear this was generating unchecked type warnings before, but it seems not to
be now. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5596 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -46,8 +46,8 @@ public class CrowdObjectAccess
|
||||
// documentation inherited from interface
|
||||
public boolean allowSubscribe (DObject object, Subscriber<?> sub)
|
||||
{
|
||||
if (ProxySubscriber.class.isInstance(sub)) {
|
||||
ClientObject co = ProxySubscriber.class.cast(sub).getClientObject();
|
||||
if (sub instanceof ProxySubscriber) {
|
||||
ClientObject co = ((ProxySubscriber)sub).getClientObject();
|
||||
return ((PlaceObject)object).occupants.contains(co.getOid());
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user