Break out the logic for whether the place is empty so we can override it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4280 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -462,11 +462,20 @@ public class PlaceManager
|
||||
});
|
||||
|
||||
// if that leaves us with zero occupants, maybe do something
|
||||
if (_plobj.occupants.size() == 0) {
|
||||
if (shouldDeclareEmpty()) {
|
||||
placeBecameEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the location should be marked as empty and potentially
|
||||
* shutdown.
|
||||
*/
|
||||
protected boolean shouldDeclareEmpty ()
|
||||
{
|
||||
return (_plobj.occupants.size() == 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when a body's occupant info is updated.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user