final TurnNotifier turnNotifier = SingletonRepository.getTurnNotifier();
if (open) {
setResistance(0);
if (autoCloseDelay != 0) {
turnNotifier.notifyInSeconds(autoCloseDelay, this);
}
} else {
// Closing the gate - check there's nobody on the way
if (getZone() != null) {
for (Entity entity : getZone().getEntitiesAt(getX(), getY())) {