@Override
	void btick() {
		if(!state){
			BlockDoorClosed block = new BlockDoorClosed(level);
			block.x = x;
			block.y = y;
			if(this.getClass().isInstance(level.blocksForeground[x/width][(y/height+1)])){
				BlockDoorOpen bl = (BlockDoorOpen) level.blocksForeground[x/width][(y/height+1)];
				bl.activate();
			} else if(this.getClass().isInstance(level.blocksForeground[x/width][y/height-1])){
				BlockDoorOpen bl = (BlockDoorOpen) level.blocksForeground[x/width][y/height-1];
				bl.activate();
			}
			level.blocksForeground[x/width][y/height] = block;
		}
		setCollidable(!state);
	}